Mercurial > hg > soundsoftware-site
view .svn/pristine/b3/b3902028311a1823b90c19ebd8dcafd42f37a54f.svn-base @ 1625:808a40a7cac7 live
Have a go at fixing #570 Can't delete downloadable file from version in project with no issue tracker
author | Chris Cannam |
---|---|
date | Thu, 07 Feb 2019 13:48:00 +0000 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
<% if @project.issue_categories.any? %> <table class="list"> <thead><tr> <th><%= l(:label_issue_category) %></th> <th><%= l(:field_assigned_to) %></th> <th></th> </tr></thead> <tbody> <% for category in @project.issue_categories %> <% unless category.new_record? %> <tr class="<%= cycle 'odd', 'even' %>"> <td class="name"><%=h(category.name) %></td> <td><%=h(category.assigned_to.name) if category.assigned_to %></td> <td class="buttons"> <% if User.current.allowed_to?(:manage_categories, @project) %> <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %> <%= delete_link issue_category_path(category) %> <% end %> </td> </tr> <% end %> <% end %> </tbody> </table> <% else %> <p class="nodata"><%= l(:label_no_data) %></p> <% end %> <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>