summaryrefslogtreecommitdiff
path: root/web-ui/app/templates/compose
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-02-04 11:35:53 +0100
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-02-04 11:35:53 +0100
commit97dbf261bd8ca9708673fc1c569b3b26ad8cf67c (patch)
tree425c6d92cd0a062f9ec67827446bec0a15a88a1a /web-ui/app/templates/compose
parent54932685e98f772041044f5a3181646e4f61a38f (diff)
Issue #551 - Show attachment name during upload
Diffstat (limited to 'web-ui/app/templates/compose')
-rw-r--r--web-ui/app/templates/compose/attachment_upload_item.hbs4
-rw-r--r--web-ui/app/templates/compose/attachments_list.hbs9
2 files changed, 5 insertions, 8 deletions
diff --git a/web-ui/app/templates/compose/attachment_upload_item.hbs b/web-ui/app/templates/compose/attachment_upload_item.hbs
new file mode 100644
index 00000000..ff783267
--- /dev/null
+++ b/web-ui/app/templates/compose/attachment_upload_item.hbs
@@ -0,0 +1,4 @@
+<li>
+ <div id="attachment-upload-item-progress" class="progress"><div class="progress-bar progress-bar-success"></div></div>
+ <a>{{ this.name }} <span class="attachment-size">({{ formatSize this.size}})</span><i id="attachment-upload-item-abort" class="fa fa-close remove-icon"></i></a>
+</li>
diff --git a/web-ui/app/templates/compose/attachments_list.hbs b/web-ui/app/templates/compose/attachments_list.hbs
index 0091583d..4d3f1cac 100644
--- a/web-ui/app/templates/compose/attachments_list.hbs
+++ b/web-ui/app/templates/compose/attachments_list.hbs
@@ -12,14 +12,7 @@
{{> attachment_item this }}
{{/each }}
</ul>
- <ul id="attachment-upload-item">
- <li>
- <div id="attachment-upload-item-progress" class="progress">
- <div class="progress-bar"></div>
- </div>
- <a>Uploading... <i id="attachment-upload-item-abort" class="fa fa-close remove-icon"></i></a>
- </li>
- </ul>
+ <ul id="attachment-upload-item"></ul>
</div>
</div>