spee.ch/views/partials/contentListItem.handlebars
2017-09-11 11:09:38 -07:00

19 lines
777 B
Handlebars

<div class='content-list-card'>
<a href="{{this.showUrlLong}}"><span class='content-list-card-link'></span></a>
{{#ifConditional this.contentType '===' 'video/mp4'}}
{{#ifConditional this.thumbnail '===' ''}}
<img class="content-list-asset" src="/assets/img/content-freedom-large.png"/>
{{else}}
<img class="content-list-asset" src="{{this.thumbnail}}"/>
{{/ifConditional}}
{{else}}
<img class="content-list-asset" src="{{this.directUrlLong}}" />
{{/ifConditional}}
<div class="content-list-details">
<ul>
<li class="content-list-title">{{this.title}}</li>
<li><a href="{{this.directUrlShort}}">spee.ch{{this.directUrlShort}}</a></li>
</ul>
</div>
</div>