spee.ch/views/partials/asset.handlebars

19 lines
799 B
Handlebars
Raw Normal View History

2017-09-30 00:56:13 +02:00
<a href="/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}">
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
{{#ifConditional fileInfo.fileExt '===' 'gifv'}}
2017-10-10 19:14:43 +02:00
<video class="gifv-show" autoplay loop muted>
2017-09-30 00:56:13 +02:00
<source src="/media/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
2017-10-10 19:14:43 +02:00
<video class="video-show" controls poster="{{fileInfo.thumbnail}}">
2017-09-30 00:56:13 +02:00
<source src="/media/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{/ifConditional}}
{{else}}
2017-10-10 19:14:43 +02:00
<img class="image-show" src="/media/{{fileInfo.fileName}}" />
2017-09-30 00:56:13 +02:00
{{/ifConditional}}
</a>