channels use standard thumbnail for videos

This commit is contained in:
bill bittner 2017-08-24 14:43:02 -07:00
parent d1f4f2ddaf
commit 722bf055a0

View file

@ -5,22 +5,19 @@
<p>Below are all the free claims in this channel.</p> <p>Below are all the free claims in this channel.</p>
{{#each channelContents}} {{#each channelContents}}
<div class="all-claims-item"> <div class="all-claims-item">
<a href="/{{this.channelName}}:{{this.shortChannelId}}/{{this.name}}.{{this.fileExtension}}">
{{#ifConditional this.contentType '===' 'video/mp4'}} {{#ifConditional this.contentType '===' 'video/mp4'}}
<video class="all-claims-asset" controls> <img class="all-claims-asset" src="/assets/img/content-freedom-large.png"/>
<source src="/{{this.claimId}}/{{this.name}}.{{this.fileExtension}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}} {{else}}
<img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.{{this.fileExtension}}" /> <img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.{{this.fileExtension}}" />
{{/ifConditional}} {{/ifConditional}}
</a>
<div class="all-claims-details"> <div class="all-claims-details">
<ul style="list-style-type:none"> <ul style="list-style-type:none">
<li>Title: {{this.title}}</li> <li><strong>{{this.title}}</strong></li>
<li>Description: {{this.description}}</li> <li><i> {{this.description}}</i></li>
<li><a href="/{{this.channelName}}:{{this.shortChannelId}}/{{this.name}}.{{this.fileExtension}}">spee.ch/{{this.channelName}}:{{this.shortChannelId}}/{{this.name}}.{{this.fileExtension}}</a></li>
<li>License: {{this.license}}</li> <li>License: {{this.license}}</li>
<li>Link: <a href="/{{this.channelName}}:{{this.shortChannelId}}/{{this.name}}.{{this.fileExtension}}">spee.ch/{{this.channelName}}:{{this.shortChannelId}}/{{this.name}}.{{this.fileExtension}}</a></li>
<li>Claim: {{this.name}}</li> <li>Claim: {{this.name}}</li>
<li>Claim Id: {{this.claimId}}</li> <li>Claim Id: {{this.claimId}}</li>
</ul> </ul>