{script} {literal} document.flag = function(type, id, title, url, langKey){ if(typeof(document.addRoleStorage) === 'undefined'){ document.storage = []; } $.post( '{/literal}{url_for for="BASE_CTRL_Flag:form"}{literal}', {type: type, id: id, title: title, url: url, langKey: langKey}, function(json){ if( typeof(json.isFlagged) != 'undefined' ){ OW.warning("{/literal}{text key="base+flag_already_flagged"}{literal}"); return; } document.storage['flag-panel'] = { fb: new OW_FloatBox({$title: '{/literal}{text key='base+flag_as'}{literal}', $contents: json['markup'], width: '315px'}) } OW.addCss(json.css); OW.addScriptFiles(json['include_js'], function(){ OW.addScript(json['js']); }); }, 'json'); } {/literal} {/script} {if !$auth_msg}
{block_decorator name='box' type='empty' addClass='ow_video_player ow_stdmargin' toolbar=$toolbar} {component class='VIDEO_CMP_VideoPlayer' id=$clip->id} {/block_decorator}
{$clip->description}
{$comments}
{block_decorator name='box_cap' iconClass='ow_ic_video' langLabel='video+video_info'}{/block_decorator} {block_decorator name='box' addClass='ow_small ow_stdmargin'}
{text key='base+by'} {if $username && $displayName}{user_link username=$username name=$displayName}{else}{$displayName}{/if}
{text key='video+added'} {format_date timestamp=$clip->addDatetime}
{/block_decorator} {component class='VIDEO_CMP_OtherVideoList' exclude=$clip->id itemsNum=3} {$rate} {$tags}
{if $ownerMode || $moderatorMode}
{form name='videoEditForm'}
{label name='title'} {input name='title'}
{error name='title'}
{label name='description'} {input name='description'}
{error name='description'}
{label name='tags'}
{text key='video+tags_desc'}
{input name='tags'}
{submit name='edit' class='ow_ic_save'}
{/form}
{/if} {else}
{$auth_msg}
{/if}