openvk/Web/Presenters/templates/Videos/List.xml

58 lines
1.5 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@listView.xml"}
{var iterator = $videos}
{var count = $paginatorConf->count}
{var page = $paginatorConf->page}
{block title}{_"videos"} {$user->getCanonicalName()}{/block}
{block header}
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
» {_"videos"}
{/block}
{block size}
<div style="padding-bottom: 0px; padding-top: 0;" class="summaryBar">
<div class="summary">
{tr("videos", $count)}
<span n:if="isset($thisUser) && $thisUser->getId() == $user->getId()">
&nbsp;|&nbsp;
<a href="/videos/upload">{_upload_video}</a>
</span>
</div>
2020-06-07 19:04:43 +03:00
</div>
{/block}
{block actions}
{/block}
{* BEGIN ELEMENTS DESCRIPTION *}
{block link|strip|stripHtml}
/video{$x->getPrettyId()}
{/block}
{block preview}
2022-02-22 13:44:13 +03:00
<div class="video-preview">
<img src="{$x->getThumbnailURL()}"
alt="{$x->getName()}"
style="max-width: 170px; max-height: 127px; margin: auto;" />
</div>
2020-06-07 19:04:43 +03:00
{/block}
{block name}
{$x->getName()}
{/block}
{block description}
2022-02-22 13:44:13 +03:00
<p>
<span>{$x->getDescription() ?? ""}</span>
</p>
2020-06-07 19:04:43 +03:00
<span style="color: grey;">{_"video_uploaded"} {$x->getPublicationTime()}</span><br/>
<span style="color: grey;">{_"video_updated"} {$x->getEditTime() ?? $x->getPublicationTime()}</span>
2022-02-22 13:44:13 +03:00
<p>
<a href="/video{$x->getPrettyId()}">{_view_video}</a>
{if $x->getCommentsCount() > 0}| <a href="/video{$x->getPrettyId()}#comments">{_"comments"} ({$x->getCommentsCount()})</a>{/if}
</p>
2020-06-07 19:04:43 +03:00
{/block}