mirror of https://github.com/zulip/zulip.git
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:
parent
a5d94dea26
commit
57283b3861
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue