@@ -1,10 +1,14 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 |
<%= link_to |
|
2 | <%= link_to(l(:button_edit), | |
3 |
|
|
3 | edit_news_path(@news), | |
4 |
|
|
4 | :class => 'icon icon-edit', | |
5 |
|
|
5 | :accesskey => accesskey(:edit), | |
6 |
|
|
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