spee.ch/views/partials/gridItem.handlebars

13 lines
625 B
Handlebars
Raw Normal View History

2017-10-25 20:22:15 +02:00
<div class="grid-item" id="grid-item-{{this.name}}-{{this.claimId}}" onmouseenter="showAssetDetails(event)" onmouseleave="hideAssetDetails(event)">
{{#ifConditional this.contentType '===' 'video/mp4'}}
<img class="grid-item-image" src="{{this.thumbnail}}"/>
{{else}}
2017-12-07 18:28:44 +01:00
<img class="grid-item-image" src="{{this.claimId}}/{{this.name}}.{{this.fileExt}}" />
2017-10-25 20:22:15 +02:00
{{/ifConditional}}
2017-12-07 18:28:44 +01:00
<div class="hidden" onclick="window.location='{{this.claimId}}/{{this.name}}'">
2017-10-25 20:22:15 +02:00
<p class="grid-item-details-text">{{this.name}}</p>
</div>
2017-12-07 18:28:44 +01:00
</div>