diff options
author | Giovane <giovaneliberato@gmail.com> | 2016-01-27 15:44:17 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2016-01-27 16:06:26 -0200 |
commit | ec80088330eff5f44e8cc8eaab04c83c259b9098 (patch) | |
tree | 4aa75950bff5fd6efb8b79b4f9484dd1ac0e64c6 /web-ui/app/templates | |
parent | 0881d95faba366946a1942bf03eec2cb18318aaa (diff) |
Keep attachments when forwarding a mail #509
- Extract the attachment file box to a partial
- Adds logic to show/hide the download arrow icon
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> |