diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 20710402b25..66f5d12b9ad 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -1,5 +1,5 @@
-<%= link_to_if_authorized l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add' %> +<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'files', :action => 'new', :id => @project}, :class => 'icon icon-add' %>

<%=l(:label_attachment_plural)%>

diff --git a/app/views/news/index.rhtml b/app/views/news/index.rhtml index c2a227fe0f6..dbde7bdf87e 100644 --- a/app/views/news/index.rhtml +++ b/app/views/news/index.rhtml @@ -1,6 +1,6 @@
<%= 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 %>
diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 119436d5dd1..873afc896f0 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -1,10 +1,10 @@
<%= 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' %>

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>