diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-27 16:39:07 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-11-19 17:31:37 +0000 |
commit | 1ea2aef295d9ec5be7041e42feb412561f5f730b (patch) | |
tree | 67c3b269b63d6188f080c3c00618175a460b52a4 | |
parent | 26d652dc89dc0b66f6aa206c0756afcc697b3fd5 (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> |