annotate .svn/pristine/a8/a8b00183ca19aefa144aaaa16c35a73416e33f9f.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

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