summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-03 00:09:28 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-03 00:09:28 +0000
commit3ce678510e96fa0ce5459e6b7731878347f686b2 (patch)
tree6d556d89e83137e55f382af2377abd8bda0f61fa /app/views/attachments
parentdf1c54146f36e16becb4de7137074238ca496776 (diff)
downloadredmine-3ce678510e96fa0ce5459e6b7731878347f686b2.tar.gz
redmine-3ce678510e96fa0ce5459e6b7731878347f686b2.zip
Render Textile and Markdown attachments on the preview page (#29752).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18584 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/file.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/file.html.erb b/app/views/attachments/file.html.erb
index af5ea78dc..e19b9127e 100644
--- a/app/views/attachments/file.html.erb
+++ b/app/views/attachments/file.html.erb
@@ -1,4 +1,4 @@
<%= render :layout => 'layouts/file' do %>
&nbsp;
- <%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
+ <%= render_file_content(@attachment, @content) %>
<% end %>