summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 14:36:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 14:36:49 +0000
commit7b40767428ac5c04ba80d95c7c90b049c73c7f36 (patch)
tree641733a4a56afead53aba5da5faba801d84c2c13 /app/views/news
parent56666a41b82d98a773d93dd8fa903a4d702b07ec (diff)
downloadredmine-7b40767428ac5c04ba80d95c7c90b049c73c7f36.tar.gz
redmine-7b40767428ac5c04ba80d95c7c90b049c73c7f36.zip
Deprecated :confirm => 'Text' option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9937 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/show.html.erb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index cb332f88c..fba61835d 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -5,11 +5,7 @@
:class => 'icon icon-edit',
:accesskey => accesskey(:edit),
:onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %>
-<%= link_to(l(:button_delete),
- news_path(@news),
- :confirm => l(:text_are_you_sure),
- :method => :delete,
- :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>
+<%= delete_link news_path(@news) if User.current.allowed_to?(:manage_news, @project) %>
</div>
<h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
@@ -46,7 +42,7 @@
<% next if comment.new_record? %>
<div class="contextual">
<%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
- :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %>
+ :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
</div>
<h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4>
<%= textilizable(comment.comments) %>