diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-25 13:54:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-25 13:54:34 +0000 |
commit | dbe05a000ab0072529d95eddd89e33cbd5fa97ec (patch) | |
tree | 71e72c8f4bd1b1fed47a6ebbf2392b875ff5fe2a /app/views/admin/projects.html.erb | |
parent | b778c51e9049ca2c0d745a699db6d93d53b71175 (diff) | |
download | redmine-dbe05a000ab0072529d95eddd89e33cbd5fa97ec.tar.gz redmine-dbe05a000ab0072529d95eddd89e33cbd5fa97ec.zip |
Use named routes.
git-svn-id: http://svn.redmine.org/redmine/trunk@14044 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/admin/projects.html.erb')
-rw-r--r-- | app/views/admin/projects.html.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/admin/projects.html.erb b/app/views/admin/projects.html.erb index 0de7040a4..0437f9e28 100644 --- a/app/views/admin/projects.html.erb +++ b/app/views/admin/projects.html.erb @@ -1,5 +1,5 @@ <div class="contextual"> -<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %> +<%= link_to l(:label_project_new), new_project_path, :class => 'icon icon-add' %> </div> <%= title l(:label_project_plural) %> @@ -11,7 +11,7 @@ <label for='name'><%= l(:label_project) %>:</label> <%= text_field_tag 'name', params[:name], :size => 30 %> <%= submit_tag l(:button_apply), :class => "small", :name => nil %> -<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %> +<%= link_to l(:button_clear), admin_projects_path, :class => 'icon icon-reload' %> </fieldset> <% end %> @@ -31,9 +31,9 @@ <td><%= checked_image project.is_public? %></td> <td><%= format_date(project.created_on) %></td> <td class="buttons"> - <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> - <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> - <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %> + <%= link_to(l(:button_archive), archive_project_path(project, :status => params[:status]), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> + <%= link_to(l(:button_unarchive), unarchive_project_path(project, :status => params[:status]), :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> + <%= link_to(l(:button_copy), copy_project_path(project), :class => 'icon icon-copy') %> <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> </td> </tr> |