annotate app/views/projects/settings/_issue_categories.rhtml @ 350:a1e6dc0e204b feature_123

Show Overview wiki page, if it exists, instead of (almost) entire overview page
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 31 Mar 2011 16:14:38 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 <% if @project.issue_categories.any? %>
Chris@0 2 <table class="list">
Chris@0 3 <thead><tr>
Chris@0 4 <th><%= l(:label_issue_category) %></th>
Chris@0 5 <th><%= l(:field_assigned_to) %></th>
Chris@0 6 <th></th>
Chris@0 7 </tr></thead>
Chris@0 8 <tbody>
Chris@0 9 <% for category in @project.issue_categories %>
Chris@0 10 <% unless category.new_record? %>
Chris@0 11 <tr class="<%= cycle 'odd', 'even' %>">
Chris@0 12 <td><%=h(category.name) %></td>
Chris@0 13 <td><%=h(category.assigned_to.name) if category.assigned_to %></td>
Chris@0 14 <td class="buttons">
Chris@0 15 <%= link_to_if_authorized l(:button_edit), { :controller => 'issue_categories', :action => 'edit', :id => category }, :class => 'icon icon-edit' %>
Chris@0 16 <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => category}, :method => :post, :class => 'icon icon-del' %>
Chris@0 17 </td>
Chris@0 18 </tr>
Chris@0 19 <% end %>
Chris@0 20 <% end %>
Chris@0 21 </tbody>
Chris@0 22 </table>
Chris@0 23 <% else %>
Chris@0 24 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@0 25 <% end %>
Chris@0 26
Chris@0 27 <p><%= link_to_if_authorized l(:label_issue_category_new), :controller => 'issue_categories', :action => 'new', :project_id => @project %></p>