2017-09-30 00:56:13 +02:00
|
|
|
{{#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-17 19:10:26 +02:00
|
|
|
<video id="video-player" 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-17 19:10:26 +02:00
|
|
|
<a href="/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}">
|
|
|
|
<img class="image-show" src="/media/{{fileInfo.fileName}}" />
|
|
|
|
</a>
|
|
|
|
{{/ifConditional}}
|