spee.ch/views/partials/asset.handlebars

23 lines
788 B
Handlebars
Raw Normal View History

2017-09-27 00:12:47 +02:00
<div class="row">
<div id="asset-placeholder">
<a href="/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}">
2017-07-09 00:17:40 +02:00
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
{{#ifConditional fileInfo.fileExt '===' 'gifv'}}
<video class="show-asset" autoplay loop muted>
<source src="/media/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
<video class="show-asset" autoplay controls>
<source src="/media/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{/ifConditional}}
2017-07-09 00:17:40 +02:00
{{else}}
<img class="show-asset" src="/media/{{fileInfo.fileName}}" />
2017-07-09 00:17:40 +02:00
{{/ifConditional}}
</a>
2017-07-05 22:51:25 +02:00
</div>
2017-07-09 00:17:40 +02:00
</div>