diff options
Diffstat (limited to 'web-ui/app/templates')
-rw-r--r-- | web-ui/app/templates/compose/attachment_item.hbs | 8 | ||||
-rw-r--r-- | web-ui/app/templates/compose/attachments_list.hbs | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/web-ui/app/templates/compose/attachment_item.hbs b/web-ui/app/templates/compose/attachment_item.hbs new file mode 100644 index 00000000..a69f209e --- /dev/null +++ b/web-ui/app/templates/compose/attachment_item.hbs @@ -0,0 +1,8 @@ +<li> + <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}"> + {{ this.name }} <span class="attachment-size">({{ formatSize this.size}})</span> + {{#if received}} + <i class="fa fa-arrow-down download-icon"></i> + {{/if}} + </a> +</li> diff --git a/web-ui/app/templates/compose/attachments_list.hbs b/web-ui/app/templates/compose/attachments_list.hbs index e21e311f..73113023 100644 --- a/web-ui/app/templates/compose/attachments_list.hbs +++ b/web-ui/app/templates/compose/attachments_list.hbs @@ -13,10 +13,7 @@ <div class="attachmentsArea column large-12"> <ul id="attachment-list-item"> {{#each attachments }} - <li> - <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} <span class="attachment-size">({{ formatSize this.size}})</span> - <i class="fa fa-arrow-down download-icon"></i></a> - </li> + {{> attachment_item this }} {{/each }} </ul> </div> |