comparison app/views/projects/settings/.svn/text-base/_boards.rhtml.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 <% if @project.boards.any? %>
2 <table class="list">
3 <thead><tr>
4 <th><%= l(:label_board) %></th>
5 <th><%= l(:field_description) %></th>
6 <th></th>
7 <th></th>
8 </tr></thead>
9 <tbody>
10 <% @project.boards.each do |board|
11 next if board.new_record? %>
12 <tr class="<%= cycle 'odd', 'even' %>">
13 <td><%=h board.name %></td>
14 <td><%=h board.description %></td>
15 <td align="center">
16 <% if authorize_for("boards", "edit") %>
17 <%= reorder_links('board', {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}) %>
18 <% end %>
19 </td>
20 <td class="buttons">
21 <%= link_to_if_authorized l(:button_edit), {:controller => 'boards', :action => 'edit', :project_id => @project, :id => board}, :class => 'icon icon-edit' %>
22 <%= link_to_if_authorized l(:button_delete), {:controller => 'boards', :action => 'destroy', :project_id => @project, :id => board}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
23 </td>
24 </tr>
25 <% end %>
26 </tbody>
27 </table>
28 <% else %>
29 <p class="nodata"><%= l(:label_no_data) %></p>
30 <% end %>
31
32 <p><%= link_to_if_authorized l(:label_board_new), {:controller => 'boards', :action => 'new', :project_id => @project} %></p>