diff --git a/app/views/issue_statuses/index.html.erb b/app/views/issue_statuses/index.html.erb index f5e6538c2..b4802c241 100644 --- a/app/views/issue_statuses/index.html.erb +++ b/app/views/issue_statuses/index.html.erb @@ -13,6 +13,7 @@ <% end %> <%=l(:field_is_closed)%> + <% for status in @issue_statuses %> @@ -22,6 +23,13 @@ <%= status.default_done_ratio %> <% end %> <%= checked_image status.is_closed? %> + + <% unless WorkflowTransition.where('old_status_id = ? OR new_status_id = ?', status.id, status.id).exists? %> + + <%= l(:text_status_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:used_statuses_only => 0) %>) + + <% end %> + <%= reorder_handle(status) %> <%= delete_link issue_status_path(status) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 994ab5315..43d3524ee 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1131,6 +1131,7 @@ en: text_length_between: "Length between %{min} and %{max} characters." text_tracker_no_workflow: No workflow defined for this tracker text_role_no_workflow: No workflow defined for this role + text_status_no_workflow: No tracker uses this status in the workflows text_unallowed_characters: Unallowed characters text_comma_separated: Multiple values allowed (comma separated). text_line_separated: Multiple values allowed (one line for each value).