Project

General

Profile

Feature #30916 » no-workflow-warning-for-statuses.patch

Go MAEDA, 2019-02-25 04:56

View differences:

app/views/issue_statuses/index.html.erb
<% end %>
<th><%=l(:field_is_closed)%></th>
<th></th>
<th></th>
</tr></thead>
<tbody>
<% for status in @issue_statuses %>
......
<% if Issue.use_status_for_done_ratio? %>
<td><%= status.default_done_ratio %></td>
<% end %>
<td>
<% unless WorkflowTransition.where('old_status_id = ? OR new_status_id = ?', status.id, status.id).exists? %>
<span class="icon icon-warning">
<%= l(:text_status_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:used_statuses_only => 0) %>)
</span>
<% end %>
</td>
<td><%= checked_image status.is_closed? %></td>
<td class="buttons">
<%= reorder_handle(status) %>
config/locales/en.yml
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).
(2-2/5)