summaryrefslogtreecommitdiff
path: root/web-ui/app/templates
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-11 17:54:53 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 17:54:53 +0100
commit0c6c8bed304884ab5f3ade69fb0d68d2cbe043e6 (patch)
tree1d95481fe628ac4878bc1c0670c9e4b50a10e9cc /web-ui/app/templates
parent058d14143c179d9923eea433fc63094f4f9059aa (diff)
format attachment size
Issue #573
Diffstat (limited to 'web-ui/app/templates')
-rw-r--r--web-ui/app/templates/compose/compose_box.hbs2
-rw-r--r--web-ui/app/templates/mails/full_view.hbs2
2 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/templates/compose/compose_box.hbs b/web-ui/app/templates/compose/compose_box.hbs
index 902221e0..eb204501 100644
--- a/web-ui/app/templates/compose/compose_box.hbs
+++ b/web-ui/app/templates/compose/compose_box.hbs
@@ -36,7 +36,7 @@
<ul id="attachment-list-item">
{{#each attachments }}
<li>
- <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} ({{ this.size}})
+ <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} ({{ formatSize this.size}})
<i class="fa fa-arrow-down download-icon"></i></a>
</li>
{{/each }}
diff --git a/web-ui/app/templates/mails/full_view.hbs b/web-ui/app/templates/mails/full_view.hbs
index a925fe5d..cf797ce6 100644
--- a/web-ui/app/templates/mails/full_view.hbs
+++ b/web-ui/app/templates/mails/full_view.hbs
@@ -73,7 +73,7 @@
<ul>
{{#each attachments }}
<li>
- <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }}<i class="fa fa-arrow-down download-icon"></i></a>
+ <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} ({{ formatSize this.size}})<i class="fa fa-arrow-down download-icon"></i></a>
</li>
{{/each }}
</ul>