##// END OF EJS Templates
Fixed: links to edit/delete a news broken by r4214 (#6944)....
Jean-Philippe Lang -
r4298:0f55adf31af6
parent child
Show More
@@ -1,10 +1,14
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to_if_authorized l(:button_edit),
2 <%= link_to(l(:button_edit),
3 edit_news_path(@news),
3 edit_news_path(@news),
4 :class => 'icon icon-edit',
4 :class => 'icon icon-edit',
5 :accesskey => accesskey(:edit),
5 :accesskey => accesskey(:edit),
6 :onclick => 'Element.show("edit-news"); return false;' %>
6 :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %>
7 <%= link_to_if_authorized l(:button_delete), news_path(@news), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
7 <%= link_to(l(:button_delete),
8 news_path(@news),
9 :confirm => l(:text_are_you_sure),
10 :method => :delete,
11 :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>
8 </div>
12 </div>
9
13
10 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
14 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
General Comments 0
You need to be logged in to leave comments. Login now