mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 11:13:06 +00:00
Partly revert r4214. link_to_if_authorized does not support strings anymore.
This commit is contained in:
parent
8e191d7990
commit
b9ef26837c
@ -1,6 +1,6 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized(l(:label_news_new),
|
||||
new_project_news_path(@project),
|
||||
{:controller => 'news', :action => 'new', :project_id => @project},
|
||||
:class => 'icon icon-add',
|
||||
:onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project %>
|
||||
</div>
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:button_edit),
|
||||
edit_news_path(@news),
|
||||
{:controller => 'news', :action => 'edit', :id => @news},
|
||||
:class => 'icon icon-edit',
|
||||
:accesskey => accesskey(:edit),
|
||||
:onclick => 'Element.show("edit-news"); return false;' %>
|
||||
<%= link_to_if_authorized l(:button_delete), news_path(@news), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
|
||||
<%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy', :id => @news}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
|
||||
</div>
|
||||
|
||||
<h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user