OSDN Git Service

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 74b8f34..4bf09f3 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>