mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix broken layout on video view page
This commit is contained in:
parent
62f9467179
commit
7d8947eaeb
1 changed files with 58 additions and 58 deletions
|
@ -1,62 +1,62 @@
|
||||||
{extends "../@layout.xml"}
|
{extends "../@layout.xml"}
|
||||||
|
|
||||||
{block title}Видеозапись{/block}
|
{block title}Видеозапись{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a>
|
||||||
»
|
»
|
||||||
<a href="/videos{$user->getId()}">{_"videos"}</a>
|
<a href="/videos{$user->getId()}">{_"videos"}</a>
|
||||||
»
|
»
|
||||||
{_"video"}
|
{_"video"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
<center style="margin-bottom: 8pt;">
|
<center style="margin-bottom: 8pt;">
|
||||||
{if $video->getType() === 0}
|
{if $video->getType() === 0}
|
||||||
<video width="610" src="{$video->getURL()}" controls></video>
|
<video width="610" src="{$video->getURL()}" controls></video>
|
||||||
{else}
|
{else}
|
||||||
{var driver = $video->getVideoDriver()}
|
{var driver = $video->getVideoDriver()}
|
||||||
{if !$driver}
|
{if !$driver}
|
||||||
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
||||||
{else}
|
{else}
|
||||||
{$driver->getEmbed()|noescape}
|
{$driver->getEmbed()|noescape}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<div style="width: 100%; min-height: 100px;">
|
<div style="width: 100%; min-height: 100px;">
|
||||||
<div style="float: left; min-height: 100px; width: 70%;">
|
<div style="float: left; min-height: 100px; width: 70%;">
|
||||||
{include "../components/comments.xml",
|
{include "../components/comments.xml",
|
||||||
comments => $comments,
|
comments => $comments,
|
||||||
count => $cCount,
|
count => $cCount,
|
||||||
page => $cPage,
|
page => $cPage,
|
||||||
model => "videos",
|
model => "videos",
|
||||||
parent => $video}
|
parent => $video}
|
||||||
</div>
|
</div>
|
||||||
<div style="float: left; min-height: 100px; width: 30%;">
|
<div style="float: left; min-height: 100px; width: 30%;">
|
||||||
<div>
|
<div>
|
||||||
<h4>{_"information"}</h4>
|
<h4>{_"information"}</h4>
|
||||||
<span style="color: grey;">{_"video_name"}:</span>
|
<span style="color: grey;">{_"video_name"}:</span>
|
||||||
{$video->getName()}<br/>
|
{$video->getName()}<br/>
|
||||||
<span style="color: grey;">{_"video_description"}:</span>
|
<span style="color: grey;">{_"video_description"}:</span>
|
||||||
{$video->getDescription() ?? "(отсутствует)"}<br/>
|
{$video->getDescription() ?? "(отсутствует)"}<br/>
|
||||||
<span style="color: grey;">{_"video_uploaded_by"}:</span>
|
<span style="color: grey;">{_"video_uploaded_by"}:</span>
|
||||||
<a href="{$user->getURL()}">{$user->getFullName()}</a><br/>
|
<a href="{$user->getURL()}">{$user->getFullName()}</a><br/>
|
||||||
<span style="color: grey;">{_"video_upload_date"}:</span>
|
<span style="color: grey;">{_"video_upload_date"}:</span>
|
||||||
{$video->getPublicationTime()}
|
{$video->getPublicationTime()}
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div n:if="isset($thisUser) && $thisUser->getId() === $user->getId()">
|
<div n:if="isset($thisUser) && $thisUser->getId() === $user->getId()">
|
||||||
<h4>{_actions}</h4>
|
<h4>{_actions}</h4>
|
||||||
<a href="/video{$video->getPrettyId()}/edit" class="profile_link" style="display:block;width:96%;">
|
<a href="/video{$video->getPrettyId()}/edit" class="profile_link" style="display:block;width:96%;">
|
||||||
{_edit}
|
{_edit}
|
||||||
</a>
|
</a>
|
||||||
<a href="/video{$video->getPrettyId()}/remove" class="profile_link" style="display:block;width:96%;">
|
<a href="/video{$video->getPrettyId()}/remove" class="profile_link" style="display:block;width:96%;">
|
||||||
{_delete}
|
{_delete}
|
||||||
</a>
|
</a>
|
||||||
<div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
Loading…
Reference in a new issue