summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-16 14:18:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-16 14:18:43 +0000
commitca4f2c59b6479ad088aa87e6173bcdd5c7c66629 (patch)
treef3ccfc188a24479cb036057315553a2787ce21a5 /app/views/news
parent2058c66d734c586ef175c6d2f468bbfeae77e5b8 (diff)
downloadredmine-ca4f2c59b6479ad088aa87e6173bcdd5c7c66629.tar.gz
redmine-ca4f2c59b6479ad088aa87e6173bcdd5c7c66629.zip
Attachments should be available to the text formatter when previewing an existing news.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10400 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/edit.html.erb2
-rw-r--r--app/views/news/show.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
index 499451bb7..4e4cf2e2b 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -3,7 +3,7 @@
<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
-<%= preview_link preview_news_path(:project_id => @project), 'news-form' %>
+<%= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %>
<% end %>
<div id="preview" class="wiki"></div>
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 295aecfb2..d4c0bae3e 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -16,7 +16,7 @@
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
-<%= preview_link preview_news_path(:project_id => @project), 'news-form' %> |
+<%= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %> |
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;' %>
<% end %>
<div id="preview" class="wiki"></div>