spee.ch/views/partials/asset.handlebars

13 lines
438 B
Handlebars
Raw Normal View History

<div class="panel">
<div id="asset-placeholder">
2017-07-09 00:17:40 +02:00
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset" autoplay loop controls>
2017-07-09 00:17:40 +02:00
<source src="/api/streamFile/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
2017-07-09 00:31:55 +02:00
<img class="show-asset" src="/api/streamFile/{{fileInfo.fileName}}" />
2017-07-09 00:17:40 +02:00
{{/ifConditional}}
2017-07-05 22:51:25 +02:00
</div>
2017-07-09 00:17:40 +02:00
</div>