mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
fix(videos list): show video window on click
This commit is contained in:
parent
0596452ef4
commit
ba2d929183
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block preview}
|
{block preview}
|
||||||
<div class="video-preview" data-id="{$x->getId()}">
|
<div class="video-preview" id="videoOpen" data-id="{$x->getPrettyId()}">
|
||||||
<img src="{$x->getThumbnailURL()}"
|
<img src="{$x->getThumbnailURL()}"
|
||||||
alt="{$x->getName()}"
|
alt="{$x->getName()}"
|
||||||
style="max-width: 170px; max-height: 127px; margin: auto;" />
|
style="max-width: 170px; max-height: 127px; margin: auto;" />
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block name}
|
{block name}
|
||||||
<span data-id="{$x->getId()}" style="color:unset;">{$x->getName()}</span>
|
<span id="videoOpen" data-id="{$x->getPrettyId()}" style="color:unset;">{$x->getName()}</span>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block description}
|
{block description}
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
<span style="color: grey;">{_video_uploaded} {$x->getPublicationTime()}</span><br/>
|
<span style="color: grey;">{_video_uploaded} {$x->getPublicationTime()}</span><br/>
|
||||||
<span style="color: grey;">{_video_updated} {$x->getEditTime() ?? $x->getPublicationTime()}</span>
|
<span style="color: grey;">{_video_updated} {$x->getEditTime() ?? $x->getPublicationTime()}</span>
|
||||||
<p>
|
<p>
|
||||||
<a href="/video{$x->getPrettyId()}" data-id="{$x->getId()}">{_view_video}</a>
|
<a href="/video{$x->getPrettyId()}" data-id="{$x->getPrettyId()}">{_view_video}</a>
|
||||||
{if $x->getCommentsCount() > 0}| <a href="/video{$x->getPrettyId()}#comments">{_comments} ({$x->getCommentsCount()})</a>{/if}
|
{if $x->getCommentsCount() > 0}| <a href="/video{$x->getPrettyId()}#comments">{_comments} ({$x->getCommentsCount()})</a>{/if}
|
||||||
</p>
|
</p>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<span style="color: grey;">{_video_uploaded} {$video->getPublicationTime()}</span><br/>
|
<span style="color: grey;">{_video_uploaded} {$video->getPublicationTime()}</span><br/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="/video{$video->getPrettyId()}" id='videoOpen' data-id="{$video->getPrettyId()}">{_view_video}</a>
|
<a href="/video{$video->getPrettyId()}" data-id="{$video->getPrettyId()}">{_view_video}</a>
|
||||||
{if $video->getCommentsCount() > 0}| <a href="/video{$video->getPrettyId()}#comments">{_comments} ({$video->getCommentsCount()})</a>{/if}
|
{if $video->getCommentsCount() > 0}| <a href="/video{$video->getPrettyId()}#comments">{_comments} ({$video->getCommentsCount()})</a>{/if}
|
||||||
</p>
|
</p>
|
||||||
{/ifset}
|
{/ifset}
|
||||||
|
|
Loading…
Reference in a new issue