Show file content for non-binary files
This commit is contained in:
9
app/components/file-preview/template.hbs
Normal file
9
app/components/file-preview/template.hbs
Normal file
@@ -0,0 +1,9 @@
|
||||
{{#if fileLoaded}}
|
||||
{{#if isImage}}
|
||||
<img src="" alt={{metaData.name}}>
|
||||
{{/if}}
|
||||
|
||||
{{#if isText}}
|
||||
<code>{{fileContent}}</code>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user