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.

_issue_categories.html.erb 992B

1234567891011121314151617181920212223242526272829
  1. <p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p>
  2. <% if @project.issue_categories.any? %>
  3. <table class="list">
  4. <thead><tr>
  5. <th><%= l(:label_issue_category) %></th>
  6. <th><%= l(:field_assigned_to) %></th>
  7. <th></th>
  8. </tr></thead>
  9. <tbody>
  10. <% for category in @project.issue_categories %>
  11. <% unless category.new_record? %>
  12. <tr>
  13. <td class="name"><%= category.name %></td>
  14. <td><%= category.assigned_to.name if category.assigned_to %></td>
  15. <td class="buttons">
  16. <% if User.current.allowed_to?(:manage_categories, @project) %>
  17. <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
  18. <%= delete_link issue_category_path(category) %>
  19. <% end %>
  20. </td>
  21. </tr>
  22. <% end %>
  23. <% end %>
  24. </tbody>
  25. </table>
  26. <% else %>
  27. <p class="nodata"><%= l(:label_no_data) %></p>
  28. <% end %>