]> source.dussan.org Git - redmine.git/commitdiff
Attachments can be displayed inline in Documents
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 May 2007 12:15:19 +0000 (12:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 May 2007 12:15:19 +0000 (12:15 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@552 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/documents/show.rhtml

index 74b8f343d1c5105bec6c6a6e600df89c0a6dd95c..4bf09f3dd5e150e77308c95e44272b33772e1c1d 100644 (file)
@@ -7,7 +7,7 @@
 
 <p><em><%= @document.category.name %><br />
 <%= format_date @document.created_on %></em></p>
-<%= textilizable @document.description %>
+<%= textilizable @document.description, :attachments => @document.attachments %>
 <br />
 
 <h3><%= l(:label_attachment_plural) %></h3>