spee.ch/views/partials/asset.handlebars
2017-07-08 15:17:40 -07:00

13 lines
No EOL
472 B
Handlebars

<div class="panel">
<div id="asset-placeholder" data-filename="{{{fileInfo.fileName}}}">
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<video class="show-asset" autoplay controls>
<source src="/api/streamFile/{{fileInfo.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
<img class="show-asset src="/api/streamFile/{{fileInfo.fileName}}" />
{{/ifConditional}}
</div>
</div>