Mercurial > hg > soundsoftware-site
annotate .svn/pristine/29/29dc17e6511b552f9bb4332f96e34e10ad2b4a77.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@1464 | 1 <% if @project.boards.any? %> |
Chris@1464 | 2 <table class="list"> |
Chris@1464 | 3 <thead><tr> |
Chris@1464 | 4 <th><%= l(:label_board) %></th> |
Chris@1464 | 5 <th><%= l(:field_description) %></th> |
Chris@1464 | 6 <th></th> |
Chris@1464 | 7 <th></th> |
Chris@1464 | 8 </tr></thead> |
Chris@1464 | 9 <tbody> |
Chris@1464 | 10 <% Board.board_tree(@project.boards) do |board, level| |
Chris@1464 | 11 next if board.new_record? %> |
Chris@1464 | 12 <tr class="<%= cycle 'odd', 'even' %>"> |
Chris@1464 | 13 <td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td> |
Chris@1464 | 14 <td class="description"><%=h board.description %></td> |
Chris@1464 | 15 <td class="reorder"> |
Chris@1464 | 16 <% if authorize_for("boards", "edit") %> |
Chris@1464 | 17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %> |
Chris@1464 | 18 <% end %> |
Chris@1464 | 19 </td> |
Chris@1464 | 20 <td class="buttons"> |
Chris@1464 | 21 <% if User.current.allowed_to?(:manage_boards, @project) %> |
Chris@1464 | 22 <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %> |
Chris@1464 | 23 <%= delete_link project_board_path(@project, board) %> |
Chris@1464 | 24 <% end %> |
Chris@1464 | 25 </td> |
Chris@1464 | 26 </tr> |
Chris@1464 | 27 <% end %> |
Chris@1464 | 28 </tbody> |
Chris@1464 | 29 </table> |
Chris@1464 | 30 <% else %> |
Chris@1464 | 31 <p class="nodata"><%= l(:label_no_data) %></p> |
Chris@1464 | 32 <% end %> |
Chris@1464 | 33 |
Chris@1464 | 34 <% if User.current.allowed_to?(:manage_boards, @project) %> |
Chris@1464 | 35 <p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p> |
Chris@1464 | 36 <% end %> |