Feature #30916 » no-workflow-warning-for-statuses.patch
| app/views/issue_statuses/index.html.erb | ||
|---|---|---|
| 13 | 13 | 
    <% end %>  | 
| 14 | 14 | 
    <th><%=l(:field_is_closed)%></th>  | 
| 15 | 15 | 
    <th></th>  | 
| 16 | 
    <th></th>  | 
|
| 16 | 17 | 
    </tr></thead>  | 
| 17 | 18 | 
    <tbody>  | 
| 18 | 19 | 
    <% for status in @issue_statuses %>  | 
| ... | ... | |
| 21 | 22 | 
    <% if Issue.use_status_for_done_ratio? %>  | 
| 22 | 23 | 
    <td><%= status.default_done_ratio %></td>  | 
| 23 | 24 | 
    <% end %>  | 
| 25 | 
    <td>  | 
|
| 26 | 
        <% unless WorkflowTransition.where('old_status_id = ? OR new_status_id = ?', status.id, status.id).exists? %>
   | 
|
| 27 | 
    <span class="icon icon-warning">  | 
|
| 28 | 
    <%= l(:text_status_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:used_statuses_only => 0) %>)  | 
|
| 29 | 
    </span>  | 
|
| 30 | 
    <% end %>  | 
|
| 31 | 
    </td>  | 
|
| 24 | 32 | 
    <td><%= checked_image status.is_closed? %></td>  | 
| 25 | 33 | 
    <td class="buttons">  | 
| 26 | 34 | 
    <%= reorder_handle(status) %>  | 
| config/locales/en.yml | ||
|---|---|---|
| 1131 | 1131 | 
      text_length_between: "Length between %{min} and %{max} characters."
   | 
| 1132 | 1132 | 
    text_tracker_no_workflow: No workflow defined for this tracker  | 
| 1133 | 1133 | 
    text_role_no_workflow: No workflow defined for this role  | 
| 1134 | 
    text_status_no_workflow: No tracker uses this status in the workflows  | 
|
| 1134 | 1135 | 
    text_unallowed_characters: Unallowed characters  | 
| 1135 | 1136 | 
    text_comma_separated: Multiple values allowed (comma separated).  | 
| 1136 | 1137 | 
    text_line_separated: Multiple values allowed (one line for each value).  |