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

63 lines
2.3 KiB
XML
Raw Normal View History

2020-06-25 15:09:55 +03:00
{extends "../@layout.xml"}
{block title}Видеозапись{/block}
2020-06-25 15:09:55 +03:00
{block header}
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
»
2022-08-09 09:37:08 +03:00
<a href="/videos{$user->getId()}">{_videos}</a>
2020-06-25 15:09:55 +03:00
»
2022-08-09 09:37:08 +03:00
{_video}
2020-06-25 15:09:55 +03:00
{/block}
{block content}
<center style="margin-bottom: 8pt;">
{if $video->getType() === 0}
<video width="610" src="{$video->getURL()}" controls></video>
2020-06-25 15:09:55 +03:00
{else}
2022-04-24 08:06:45 +03:00
{var $driver = $video->getVideoDriver()}
2020-06-25 15:09:55 +03:00
{if !$driver}
Эта видеозапись не поддерживается в вашей версии OpenVK.
{else}
{$driver->getEmbed()|noescape}
{/if}
{/if}
</center>
<hr/>
<div style="width: 100%; min-height: 100px;">
<div style="float: left; min-height: 100px; width: 70%;">
2020-06-25 15:09:55 +03:00
{include "../components/comments.xml",
comments => $comments,
count => $cCount,
page => $cPage,
model => "videos",
parent => $video}
</div>
2021-09-14 02:35:46 +03:00
<div style="float: left; min-height: 100px; width: 30%; overflow: hidden; overflow-wrap: break-word;">
2020-06-25 15:09:55 +03:00
<div>
2022-08-09 09:37:08 +03:00
<h4>{_information}</h4>
<span style="color: grey;">{_info_name}:</span>
2020-06-25 15:09:55 +03:00
{$video->getName()}<br/>
2022-08-09 09:37:08 +03:00
<span style="color: grey;">{_info_description}:</span>
{$video->getDescription() ?? "(" . tr("none") . ")"}<br/>
<span style="color: grey;">{_info_uploaded_by}:</span>
2020-06-25 15:09:55 +03:00
<a href="{$user->getURL()}">{$user->getFullName()}</a><br/>
2022-08-09 09:37:08 +03:00
<span style="color: grey;">{_info_upload_date}:</span>
2020-06-25 15:09:55 +03:00
{$video->getPublicationTime()}
</div>
<br/>
<div n:if="isset($thisUser) && $thisUser->getId() === $user->getId()">
<h4>{_actions}</h4>
<a href="/video{$video->getPrettyId()}/edit" class="profile_link" style="display:block;width:96%;">
{_edit}
</a>
<a href="/video{$video->getPrettyId()}/remove" class="profile_link" style="display:block;width:96%;">
{_delete}
</a>
2020-06-25 15:09:55 +03:00
</div>
</div>
</div>
{/block}