Mercurial > hg > soundsoftware-site
comparison .svn/pristine/29/29dc17e6511b552f9bb4332f96e34e10ad2b4a77.svn-base @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1296:038ba2d95de8 | 1464:261b3d9a4903 |
---|---|
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 <% Board.board_tree(@project.boards) do |board, level| | |
11 next if board.new_record? %> | |
12 <tr class="<%= cycle 'odd', 'even' %>"> | |
13 <td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td> | |
14 <td class="description"><%=h board.description %></td> | |
15 <td class="reorder"> | |
16 <% if authorize_for("boards", "edit") %> | |
17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %> | |
18 <% end %> | |
19 </td> | |
20 <td class="buttons"> | |
21 <% if User.current.allowed_to?(:manage_boards, @project) %> | |
22 <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %> | |
23 <%= delete_link project_board_path(@project, board) %> | |
24 <% end %> | |
25 </td> | |
26 </tr> | |
27 <% end %> | |
28 </tbody> | |
29 </table> | |
30 <% else %> | |
31 <p class="nodata"><%= l(:label_no_data) %></p> | |
32 <% end %> | |
33 | |
34 <% if User.current.allowed_to?(:manage_boards, @project) %> | |
35 <p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p> | |
36 <% end %> |