spee.ch/views/showLite.handlebars

14 lines
479 B
Handlebars
Raw Normal View History

<div id="asset-placeholder">
<a href="/{{fileInfo.name}}/{{fileInfo.claimId}}">
2017-07-09 00:17:40 +02:00
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset-lite" autoplay loop controls>
<source src="/media/{{fileInfo.fileName}}">
2017-07-09 00:17:40 +02:00
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
2017-07-09 00:17:40 +02:00
{{else}}
<img class="show-asset-lite" src="/media/{{fileInfo.fileName}}" alt="{{fileInfo.fileName}}"/>
2017-07-09 00:17:40 +02:00
{{/ifConditional}}
2017-07-17 22:59:21 +02:00
</a>
2017-07-09 00:17:40 +02:00
</div>