You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <div class="contextual">
  2. <%= link_to l(:label_issue_status_new), new_issue_status_path, :class => 'icon icon-add' %>
  3. <%= link_to(l(:label_update_issue_done_ratios), update_issue_done_ratio_issue_statuses_path, :class => 'icon icon-multiple', :method => 'post', :data => {:confirm => l(:text_are_you_sure)}) if Issue.use_status_for_done_ratio? %>
  4. </div>
  5. <h2><%=l(:label_issue_status_plural)%></h2>
  6. <table class="list issue_statuses">
  7. <thead><tr>
  8. <th><%=l(:field_status)%></th>
  9. <% if Issue.use_status_for_done_ratio? %>
  10. <th><%=l(:field_done_ratio)%></th>
  11. <% end %>
  12. <th><%=l(:field_is_closed)%></th>
  13. <th></th>
  14. <th></th>
  15. </tr></thead>
  16. <tbody>
  17. <% for status in @issue_statuses %>
  18. <tr>
  19. <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td>
  20. <% if Issue.use_status_for_done_ratio? %>
  21. <td><%= status.default_done_ratio %></td>
  22. <% end %>
  23. <td><%= checked_image status.is_closed? %></td>
  24. <td>
  25. <% unless WorkflowTransition.where('old_status_id = ? OR new_status_id = ?', status.id, status.id).exists? %>
  26. <span class="icon icon-warning">
  27. <%= l(:text_status_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:used_statuses_only => 0) %>)
  28. </span>
  29. <% end %>
  30. </td>
  31. <td class="buttons">
  32. <%= reorder_handle(status) %>
  33. <%= delete_link issue_status_path(status) %>
  34. </td>
  35. </tr>
  36. <% end %>
  37. </tbody>
  38. </table>
  39. <% html_title(l(:label_issue_status_plural)) -%>
  40. <%= javascript_tag do %>
  41. $(function() { $("table.issue_statuses tbody").positionedItems(); });
  42. <% end %>