added nsfw filter on trending

This commit is contained in:
bill bittner 2017-07-11 18:27:27 -07:00
parent 709db8e741
commit 1fb396c660

View file

@ -1,17 +1,4 @@
<div class="wrapper">
{{> topBar}}
<div class="full">
<h2>Trending Images </h2>
{{#each trendingAssets}}
{{#ifConditional this.fileType '===' 'video/mp4'}}
<video class="asset-small" controls>
<source src="/api/streamFile/{{this.fileName}}">
{{!--fallback--}}
Your browser does not support the <code>video</code> element.
</video>
{{else}}
<img class="asset-small" src="/api/streamFile/{{this.fileName}}" />
{{/ifConditional}}
{{/each}}
</div>
{{> trending}}
</div>