Skip to content

Commit

Permalink
fix(videos list): show video window on click
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Nov 22, 2024
1 parent 0596452 commit ba2d929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Web/Presenters/templates/Videos/List.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
{/block}

{block preview}
<div class="video-preview" data-id="{$x->getId()}">
<div class="video-preview" id="videoOpen" data-id="{$x->getPrettyId()}">
<img src="{$x->getThumbnailURL()}"
alt="{$x->getName()}"
style="max-width: 170px; max-height: 127px; margin: auto;" />
</div>
{/block}

{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 description}
Expand All @@ -51,7 +51,7 @@
<span style="color: grey;">{_video_uploaded} {$x->getPublicationTime()}</span><br/>
<span style="color: grey;">{_video_updated} {$x->getEditTime() ?? $x->getPublicationTime()}</span>
<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}
</p>
{/block}
2 changes: 1 addition & 1 deletion Web/Presenters/templates/components/video.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<span style="color: grey;">{_video_uploaded} {$video->getPublicationTime()}</span><br/>

<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}
</p>
{/ifset}
Expand Down

0 comments on commit ba2d929

Please sign in to comment.