To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / settings / _issue_categories.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.08 KB)
| 1 | 0:513646585e45 | Chris | <% if @project.issue_categories.any? %>
|
|---|---|---|---|
| 2 | <table class="list"> |
||
| 3 | 909:cbb26bc654de | Chris | <thead><tr> |
| 4 | <th><%= l(:label_issue_category) %></th> |
||
| 5 | <th><%= l(:field_assigned_to) %></th> |
||
| 6 | <th></th> |
||
| 7 | </tr></thead> |
||
| 8 | <tbody>
|
||
| 9 | 0:513646585e45 | Chris | <% for category in @project.issue_categories %>
|
| 10 | 909:cbb26bc654de | Chris | <% unless category.new_record? %>
|
| 11 | <tr class="<%= cycle 'odd', 'even' %>"> |
||
| 12 | 0:513646585e45 | Chris | <td><%=h(category.name) %></td> |
| 13 | <td><%=h(category.assigned_to.name) if category.assigned_to %></td> |
||
| 14 | <td class="buttons"> |
||
| 15 | 909:cbb26bc654de | Chris | <% if User.current.allowed_to?(:manage_categories, @project) %>
|
| 16 | <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
|
||
| 17 | <%= link_to l(:button_delete), issue_category_path(category), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
|
||
| 18 | <% end %>
|
||
| 19 | 0:513646585e45 | Chris | </td>
|
| 20 | 909:cbb26bc654de | Chris | </tr>
|
| 21 | <% end %>
|
||
| 22 | 0:513646585e45 | Chris | <% end %>
|
| 23 | </tbody>
|
||
| 24 | </table>
|
||
| 25 | <% else %>
|
||
| 26 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 27 | <% end %>
|
||
| 28 | |||
| 29 | 909:cbb26bc654de | Chris | <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> |