Show a message when no preview rendered

This commit is contained in:
Basti 2017-11-27 22:02:07 +01:00
parent 59de8a4151
commit 0d2d356e93

View File

@ -1,6 +1,10 @@
{{#if fileLoaded}} {{#if fileLoaded}}
{{#if isImage}} {{#if isBinary}}
<img src={{objectURL}} alt={{metaData.name}}> {{#if isImage}}
<img src={{objectURL}} alt={{metaData.name}}>
{{else}}
<p>No preview available for this content type.</p>
{{/if}}
{{/if}} {{/if}}
{{#if isText}} {{#if isText}}