2007-09-22 17:17:49 +04:00
|
|
|
<% if @project.issue_categories.any? %>
|
2007-09-14 15:34:08 +04:00
|
|
|
<table class="list">
|
2011-09-18 06:02:29 +04:00
|
|
|
<thead><tr>
|
|
|
|
<th><%= l(:label_issue_category) %></th>
|
|
|
|
<th><%= l(:field_assigned_to) %></th>
|
|
|
|
<th></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% for category in @project.issue_categories %>
|
2011-09-18 06:02:29 +04:00
|
|
|
<% unless category.new_record? %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
2007-09-14 15:34:08 +04:00
|
|
|
<td><%=h(category.name) %></td>
|
|
|
|
<td><%=h(category.assigned_to.name) if category.assigned_to %></td>
|
2009-11-27 23:57:35 +03:00
|
|
|
<td class="buttons">
|
2011-11-20 19:55:19 +04:00
|
|
|
<% if User.current.allowed_to?(:manage_categories, @project) %>
|
|
|
|
<%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
|
|
|
|
<%= link_to l(:button_delete), issue_category_path(category), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
|
|
|
|
<% end %>
|
2009-11-27 23:57:35 +03:00
|
|
|
</td>
|
2011-09-18 06:02:29 +04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|
|
|
|
|
2011-11-26 18:49:29 +04:00
|
|
|
<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>
|