Skip to content

Commit

Permalink
missing from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Oct 18, 2014
1 parent 0ee5e74 commit e87c7cf
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions static/default/html/partials/compose.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,18 @@
<div id="compose-attachments-{{mid}}" class="compose-attachments" data-mid="{{mid}}">
<ul id="compose-attachments-files-{{mid}}" class="horizontal">
{% if editing_strings.attachments %}
{% for aid, filename in editing_strings.attachments.iteritems() %}
{% for attachment in attachments %}
<li class="compose-attachment">
<a href="#" data-mid="{{ mid }}" data-aid="{{ aid }}" class="compose-attachment-remove"><span class="icon-circle-x"></span></a>
<img src="/message/download/preview/={{ mid }}/{{ aid }}/">
<div class="compose-attachment-filename">{{filename}}</div>
<a href="#" data-mid="{{mid}}" data-aid="{{attachment.aid}}" class="compose-attachment-remove"><span class="icon-circle-x"></span></a>
<div class="preview">
{% set atype = attachment_type(attachment.mimetype) %}
{% if atype == 'image-visible' %}
<img src="/message/download/preview/={{mid}}/{{attachment.aid}}/">
{% else %}
<span class="icon icon-{{atype}}"></span>
{% endif %}
</div>
<div class="compose-attachment-filename">{{attachment.filename}}</div>
</li>
{% endfor %}
{% endif %}
Expand Down

0 comments on commit e87c7cf

Please sign in to comment.