diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-27 16:39:07 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-09-30 10:35:15 +0100 |
commit | 3dd92d72d04748bcf4547d4d403a6f64889eea30 (patch) | |
tree | 8efaa44e89364ae101849e560ce604884c82a7c8 | |
parent | 8f692be541a09f0748673aa275bce96720cdf5d1 (diff) |
Fix links to icons for attachments
-rw-r--r-- | app/views/request/_bubble.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/request/_bubble.html.erb b/app/views/request/_bubble.html.erb index 94498612a..8827d114d 100644 --- a/app/views/request/_bubble.html.erb +++ b/app/views/request/_bubble.html.erb @@ -13,11 +13,11 @@ :file_name => a.display_filename + '.html') %> <% img_filename = "icon_" + a.content_type.sub('/', '_') + "_large.png" - full_filename = File.expand_path(File.join(File.dirname(__FILE__), "../../../public/images", img_filename)) + full_filename = File.expand_path(File.join(File.dirname(__FILE__), "../../assets/images", img_filename)) if File.exist?(full_filename) %> - <a href="<%=attachment_path%>"><img class="attachment_image" alt="Attachment" src="/images/<%=img_filename%>"></a> + <%= link_to image_tag(img_filename, :class => "attachment_image", :alt => "Attachment"), attachment_path %> <% else %> - <a href="<%=attachment_path%>"><img class="attachment_image" alt="Attachment" src="/images/icon_unknown.png"></a> + <%= link_to image_tag("icon_unknown.png", :class => "attachment_image", :alt => "Attachment"), attachment_path %> <% end %> <strong><%= h a.display_filename %></strong> <br> |