diff .svn/pristine/58/58549b3a041016c433eee9a2dcd21e1765215d6e.svn-base @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/58/58549b3a041016c433eee9a2dcd21e1765215d6e.svn-base	Fri Jun 14 09:05:06 2013 +0100
@@ -0,0 +1,29 @@
+<% 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><%=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>