diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-11-17 22:42:21 +0000 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-11-17 22:42:21 +0000 |
commit | 9d051a63165ca505017e9d02f572d2be985d4aa1 (patch) | |
tree | ae9158292a472b05440992d114694397a6164703 | |
parent | f202ed1c57d5a727dbcc6d10d6a669d363639ab3 (diff) |
Card #30 - shows attachment icon on mails list
-rw-r--r-- | web-ui/app/js/mail_list/ui/mail_items/mail_item.js | 1 | ||||
-rw-r--r-- | web-ui/app/templates/mails/single.hbs | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_items/mail_item.js b/web-ui/app/js/mail_list/ui/mail_items/mail_item.js index 51ace714..24c7b043 100644 --- a/web-ui/app/js/mail_list/ui/mail_items/mail_item.js +++ b/web-ui/app/js/mail_list/ui/mail_items/mail_item.js @@ -64,6 +64,7 @@ define( this.attr.ident = mail.ident; this.attr.statuses = viewHelper.formatStatusClasses(mail.status); this.attr.tags = mail.tags; + this.attr.attachments = mail.attachments; this.attr.mailbox = mail.mailbox; this.attr.header.formattedDate = this.formattedDate(mail.header.date); }; diff --git a/web-ui/app/templates/mails/single.hbs b/web-ui/app/templates/mails/single.hbs index baf6251c..0242f72d 100644 --- a/web-ui/app/templates/mails/single.hbs +++ b/web-ui/app/templates/mails/single.hbs @@ -4,7 +4,11 @@ <span> <a href="/#/{{ tag }}/mail/{{ ident }}"> <span class="received-date">{{ header.formattedDate }}</span> - + {{#if attachments}} + <div class="attachment-indicator"> + <i class="fa fa-paperclip"></i>lalala + </div> + {{/if}} <div class="from">{{#if header.from }}{{ header.from }}{{else}}{{t "you"}}{{/if}}</div> <div class="subject-and-tags"> {{ header.subject }} |