2007-09-22 13:17:49 +00:00
|
|
|
<% if @project.boards.any? %>
|
2007-05-13 17:09:56 +00:00
|
|
|
<table class="list">
|
2011-09-18 02:02:01 +00:00
|
|
|
<thead><tr>
|
|
|
|
<th><%= l(:label_board) %></th>
|
|
|
|
<th><%= l(:field_description) %></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2012-07-31 17:17:52 +00:00
|
|
|
<% Board.board_tree(@project.boards) do |board, level|
|
2011-09-18 02:02:01 +00:00
|
|
|
next if board.new_record? %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
2013-11-11 21:01:21 +00:00
|
|
|
<td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
|
|
|
|
<td class="description"><%=h board.description %></td>
|
2013-11-10 13:24:07 +00:00
|
|
|
<td class="reorder">
|
2007-05-13 17:09:56 +00:00
|
|
|
<% if authorize_for("boards", "edit") %>
|
2011-12-01 21:14:09 +00:00
|
|
|
<%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
|
2007-05-13 17:09:56 +00:00
|
|
|
<% end %>
|
2009-11-27 20:57:35 +00:00
|
|
|
</td>
|
|
|
|
<td class="buttons">
|
2011-12-01 21:14:09 +00:00
|
|
|
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
|
|
|
<%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
|
2012-07-07 14:36:49 +00:00
|
|
|
<%= delete_link project_board_path(@project, board) %>
|
2013-03-15 14:58:00 +00:00
|
|
|
<% end %>
|
2009-11-27 20:57:35 +00:00
|
|
|
</td>
|
2011-09-18 02:02:01 +00:00
|
|
|
</tr>
|
2007-05-13 17:09:56 +00:00
|
|
|
<% end %>
|
2011-09-18 02:02:01 +00:00
|
|
|
</tbody>
|
2007-05-13 17:09:56 +00:00
|
|
|
</table>
|
2007-09-22 13:17:49 +00:00
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|
|
|
|
|
2011-12-01 21:14:09 +00:00
|
|
|
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
|
|
|
<p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
|
|
|
|
<% end %>
|