annotate .svn/pristine/58/58549b3a041016c433eee9a2dcd21e1765215d6e.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <% if @project.issue_categories.any? %>
Chris@1295 2 <table class="list">
Chris@1295 3 <thead><tr>
Chris@1295 4 <th><%= l(:label_issue_category) %></th>
Chris@1295 5 <th><%= l(:field_assigned_to) %></th>
Chris@1295 6 <th></th>
Chris@1295 7 </tr></thead>
Chris@1295 8 <tbody>
Chris@1295 9 <% for category in @project.issue_categories %>
Chris@1295 10 <% unless category.new_record? %>
Chris@1295 11 <tr class="<%= cycle 'odd', 'even' %>">
Chris@1295 12 <td><%=h(category.name) %></td>
Chris@1295 13 <td><%=h(category.assigned_to.name) if category.assigned_to %></td>
Chris@1295 14 <td class="buttons">
Chris@1295 15 <% if User.current.allowed_to?(:manage_categories, @project) %>
Chris@1295 16 <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
Chris@1295 17 <%= delete_link issue_category_path(category) %>
Chris@1295 18 <% end %>
Chris@1295 19 </td>
Chris@1295 20 </tr>
Chris@1295 21 <% end %>
Chris@1295 22 <% end %>
Chris@1295 23 </tbody>
Chris@1295 24 </table>
Chris@1295 25 <% else %>
Chris@1295 26 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@1295 27 <% end %>
Chris@1295 28
Chris@1295 29 <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>