From f5768cc99bcdffbafa588eb68c17cca599eff036 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 11 Jul 2013 19:12:08 +0000 Subject: [PATCH] Useless "edit" link in workflow menu (#12824). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12004 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/workflows/_action_menu.html.erb | 1 - app/views/workflows/copy.html.erb | 4 +--- app/views/workflows/index.html.erb | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/views/workflows/_action_menu.html.erb b/app/views/workflows/_action_menu.html.erb index 577281128..6961b2776 100644 --- a/app/views/workflows/_action_menu.html.erb +++ b/app/views/workflows/_action_menu.html.erb @@ -1,5 +1,4 @@
-<%= link_to l(:button_edit), {:action => 'edit'}, :class => 'icon icon-edit' %> <%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy' %> <%= link_to l(:field_summary), {:action => 'index'}, :class => 'icon icon-summary' %>
diff --git a/app/views/workflows/copy.html.erb b/app/views/workflows/copy.html.erb index 07001817a..62334c962 100644 --- a/app/views/workflows/copy.html.erb +++ b/app/views/workflows/copy.html.erb @@ -1,6 +1,4 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

+

<%= link_to l(:label_workflow), workflows_edit_path %> » <%=l(:button_copy)%>

<%= form_tag({}, :id => 'workflow_copy_form') do %>
diff --git a/app/views/workflows/index.html.erb b/app/views/workflows/index.html.erb index f05386c9b..9ddb71b10 100644 --- a/app/views/workflows/index.html.erb +++ b/app/views/workflows/index.html.erb @@ -1,6 +1,4 @@ -<%= render :partial => 'action_menu' %> - -

<%=l(:label_workflow)%>

+

<%= link_to l(:label_workflow), workflows_edit_path %> » <%=l(:field_summary)%>

<% if @workflow_counts.empty? %>

<%= l(:label_no_data) %>

-- 2.39.5