settings: Add "View file" option over file name.

The "View file" option will open the file in a new window if it
is a filetype that can open in the browser and if not, it will just
trigger a download or whatever the browser's settings are.
This commit is contained in:
Brock Whittaker 2017-09-28 11:32:32 -07:00 committed by Tim Abbott
parent a5d94dea26
commit 57283b3861
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
{{#with attachment}}
<tr class="uploaded_file_row" id="{{name}}">
<td>{{ name }}</td>
<td>
<a type="submit" href="/user_uploads/{{path_id}}" target="_blank" title="{{t 'View file' }}">
{{ name }}
</a>
</td>
<td>{{ create_time }}</td>
<td>
{{#if messages }}