mirror of https://github.com/zulip/zulip.git
33 lines
1.1 KiB
Handlebars
33 lines
1.1 KiB
Handlebars
|
{{#with attachment}}
|
||
|
<tr class="uploaded_file_row" id="{{name}}">
|
||
|
<td>{{ name }}</td>
|
||
|
<td>{{ create_time }}</td>
|
||
|
<td>
|
||
|
{{#if messages }}
|
||
|
<div class="attachment-messages">
|
||
|
{{#each messages}}
|
||
|
<a class="ind-message" href="/#narrow/id/{{ this.id }}">
|
||
|
#{{ this.id }}
|
||
|
</a>
|
||
|
{{/each}}
|
||
|
</div>
|
||
|
{{/if}}
|
||
|
</td>
|
||
|
<td>{{ size }}</td>
|
||
|
<td>
|
||
|
<span class="edit-attachment-buttons">
|
||
|
<button type="submit"
|
||
|
class="button small no-style remove-attachment"
|
||
|
title="{{t 'Delete file' }}" data-attachment="{{id}}">
|
||
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
||
|
</button>
|
||
|
</span>
|
||
|
<span class="edit-attachment-buttons">
|
||
|
<a type="submit" href="/user_uploads/{{path_id}}" class="btn no-style" title="{{t 'View file' }}" id="download_attachment" download>
|
||
|
<i class="icon-vector-download-alt sea-green"></i>
|
||
|
</a>
|
||
|
</span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{{/with}}
|