annotate .svn/pristine/b3/b3902028311a1823b90c19ebd8dcafd42f37a54f.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

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