aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_bubble.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/_bubble.rhtml')
-rw-r--r--app/views/request/_bubble.rhtml11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/request/_bubble.rhtml b/app/views/request/_bubble.rhtml
index 387ff7657..9ad023aad 100644
--- a/app/views/request/_bubble.rhtml
+++ b/app/views/request/_bubble.rhtml
@@ -2,13 +2,16 @@
<b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b><b class="xb5"></b><b class="xb6"></b><b class="xb7"></b>
<div class="xboxcontent">
<% if not attachments.nil? and attachments.size > 0 %>
- <p>
- <% attachments.each do |a| %>
- Attachment:
+ <p> <% attachments.each do |a| %>
+ <% if ['application/pdf', 'application/msword'].include?(a.content_type) %>
+ <img src="/images/icon_<%=a.content_type.sub('/', '_')%>_large.png" align="absmiddle">
+ <% else %>
+ Attachment:
+ <% end %>
<%= link_to (TMail::Mail.get_part_file_name(a) || "download.bin"), get_attachment_url(:id => incoming_message.info_request_id,
:incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name =>
(TMail::Mail.get_part_file_name(a) || "download.bin")) %>
- (<%= a.content_type %>)
+ <!-- (<%= a.content_type %>) -->
<br>
<% end %>
</p>