Skip to content

Commit

Permalink
Fix #585 - Add support for videos in List and Detail
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jun 24, 2021
1 parent 2233b59 commit 2d253f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Resources/Private/Partials/Event/Detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ <h3 class="state-{index.state}">
<f:if condition="{event.images}">
<div class="images">
<f:for each="{event.images}" as="image" iteration="i">
<f:image src="{image.uid}" treatIdAsReference="1" alt="" maxWidth="300" class="img-rounded"/>
<f:if condition="{image.originalResource.type}==4">
<f:then>
<f:media file="{image}" />
</f:then>
<f:else>
<f:image image="{image}" alt="" maxWidth="300" class="img-rounded"/>
</f:else>
</f:if>
</f:for>
</div>
</f:if>
Expand Down
9 changes: 8 additions & 1 deletion Resources/Private/Partials/Event/ListItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
<f:for each="{event.images}" as="image" iteration="i">
<f:if condition="{i.isFirst}">
<c:link.index index="{index}">
<f:image src="{image.uid}" treatIdAsReference="1" alt="" maxWidth="160" maxHeight="160" class="media-object img-rounded" />
<f:if condition="{image.originalResource.type}==4">
<f:then>
<f:media file="{image}" />
</f:then>
<f:else>
<f:image image="{image}" alt="" maxWidth="160" maxHeight="160" class="media-object img-rounded" />
</f:else>
</f:if>
</c:link.index>
</f:if>
</f:for>
Expand Down

0 comments on commit 2d253f9

Please sign in to comment.