2017-09-17 01:20:11 +02:00
|
|
|
{{#with attachment}}
|
2018-05-05 00:40:28 +02:00
|
|
|
<tr class="uploaded_file_row" id="{{name}}" data-attachment-id="{{id}}">
|
2017-12-08 14:24:32 +01:00
|
|
|
<td>
|
2017-09-28 20:32:32 +02:00
|
|
|
<a type="submit" href="/user_uploads/{{path_id}}" target="_blank" title="{{t 'View file' }}">
|
|
|
|
{{ name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
2017-12-08 14:24:32 +01:00
|
|
|
<td>{{ create_time_str }}</td>
|
2017-09-17 01:20:11 +02:00
|
|
|
<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>
|
2017-12-08 14:24:32 +01:00
|
|
|
<td>{{ size_str }}</td>
|
2019-08-22 10:33:44 +02:00
|
|
|
<td class="actions">
|
2017-09-17 01:20:11 +02:00
|
|
|
<span class="edit-attachment-buttons">
|
|
|
|
<button type="submit"
|
2018-04-05 08:38:46 +02:00
|
|
|
class="button small no-style remove-attachment"
|
|
|
|
title="{{t 'Delete file' }}" data-attachment="{{id}}">
|
2018-07-04 00:31:58 +02:00
|
|
|
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
2017-09-17 01:20:11 +02:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
<span class="edit-attachment-buttons">
|
2017-09-28 20:27:31 +02:00
|
|
|
<a type="submit" href="/user_uploads/{{path_id}}" class="btn no-style" title="{{t 'Download file' }}" id="download_attachment" download>
|
2018-07-04 00:31:58 +02:00
|
|
|
<i class="fa fa-download sea-green" aria-hidden="true"></i>
|
2017-09-17 01:20:11 +02:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/with}}
|