spee.ch/views/partials/asset.handlebars

15 lines
504 B
Handlebars
Raw Normal View History

<div class="panel">
<div id="asset-placeholder">
2017-08-05 02:41:06 +02:00
<a href="/{{fileInfo.claimId}}/{{fileInfo.fileName}}{{fileInfo.fileExt}}">
2017-07-09 00:17:40 +02:00
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset" 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>
{{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>