summaryrefslogtreecommitdiffstats
path: root/app/views/news/show.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-29 22:39:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-29 22:39:06 +0000
commit24138187eb130b15d5b2b9f7bd6f701b2be6c00a (patch)
tree472ca1d96d538420fc537b743c5ac3b925723044 /app/views/news/show.html.erb
parent992aebf6dfe9ca92d43e1022102f5c888631a6f4 (diff)
downloadredmine-24138187eb130b15d5b2b9f7bd6f701b2be6c00a.tar.gz
redmine-24138187eb130b15d5b2b9f7bd6f701b2be6c00a.zip
Allows attachments on news (#1972).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8728 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news/show.html.erb')
-rw-r--r--app/views/news/show.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 2ffed80e0..72c18d9a6 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -17,7 +17,7 @@
<% if authorize_for('news', 'edit') %>
<div id="edit-news" style="display:none;">
<% labelled_form_for :news, @news, :url => news_path(@news),
- :html => { :id => 'news-form', :method => :put } do |f| %>
+ :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<%= link_to_remote l(:label_preview),
@@ -35,8 +35,9 @@
<p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
<span class="author"><%= authoring @news.created_on, @news.author %></span></p>
<div class="wiki">
-<%= textilizable(@news.description) %>
+<%= textilizable(@news, :description) %>
</div>
+<%= link_to_attachments @news %>
<br />
<div id="comments" style="margin-bottom:16px;">