Mercurial > hg > soundsoftware-site
annotate .svn/pristine/ca/caa790576a7a41ad0997dc10006135ba339b93a8.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 <% if @project.issue_categories.any? %> |
Chris@909 | 2 <table class="list"> |
Chris@909 | 3 <thead><tr> |
Chris@909 | 4 <th><%= l(:label_issue_category) %></th> |
Chris@909 | 5 <th><%= l(:field_assigned_to) %></th> |
Chris@909 | 6 <th></th> |
Chris@909 | 7 </tr></thead> |
Chris@909 | 8 <tbody> |
Chris@909 | 9 <% for category in @project.issue_categories %> |
Chris@909 | 10 <% unless category.new_record? %> |
Chris@909 | 11 <tr class="<%= cycle 'odd', 'even' %>"> |
Chris@909 | 12 <td><%=h(category.name) %></td> |
Chris@909 | 13 <td><%=h(category.assigned_to.name) if category.assigned_to %></td> |
Chris@909 | 14 <td class="buttons"> |
Chris@909 | 15 <% if User.current.allowed_to?(:manage_categories, @project) %> |
Chris@909 | 16 <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %> |
Chris@909 | 17 <%= link_to l(:button_delete), issue_category_path(category), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> |
Chris@909 | 18 <% end %> |
Chris@909 | 19 </td> |
Chris@909 | 20 </tr> |
Chris@909 | 21 <% end %> |
Chris@909 | 22 <% end %> |
Chris@909 | 23 </tbody> |
Chris@909 | 24 </table> |
Chris@909 | 25 <% else %> |
Chris@909 | 26 <p class="nodata"><%= l(:label_no_data) %></p> |
Chris@909 | 27 <% end %> |
Chris@909 | 28 |
Chris@909 | 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> |