Chris@1464: <% if @project.boards.any? %> Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: <% Board.board_tree(@project.boards) do |board, level| Chris@1464: next if board.new_record? %> Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: Chris@1464: <% end %> Chris@1464: Chris@1464:
<%= l(:label_board) %><%= l(:field_description) %>
<%= link_to board.name, project_board_path(@project, board) %><%=h board.description %> Chris@1464: <% if authorize_for("boards", "edit") %> Chris@1464: <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %> Chris@1464: <% end %> Chris@1464: Chris@1464: <% if User.current.allowed_to?(:manage_boards, @project) %> Chris@1464: <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %> Chris@1464: <%= delete_link project_board_path(@project, board) %> Chris@1464: <% end %> Chris@1464:
Chris@1464: <% else %> Chris@1464:

<%= l(:label_no_data) %>

Chris@1464: <% end %> Chris@1464: Chris@1464: <% if User.current.allowed_to?(:manage_boards, @project) %> Chris@1464:

<%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %>

Chris@1464: <% end %>