annotate app/views/projects/settings/_boards.html.erb @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@0 1 <% if @project.boards.any? %>
Chris@0 2 <table class="list">
Chris@909 3 <thead><tr>
Chris@909 4 <th><%= l(:label_board) %></th>
Chris@909 5 <th><%= l(:field_description) %></th>
Chris@909 6 <th></th>
Chris@909 7 <th></th>
Chris@909 8 </tr></thead>
Chris@909 9 <tbody>
Chris@1115 10 <% Board.board_tree(@project.boards) do |board, level|
Chris@909 11 next if board.new_record? %>
Chris@909 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@0 16 <% if authorize_for("boards", "edit") %>
Chris@1115 17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
Chris@0 18 <% end %>
Chris@0 19 </td>
Chris@0 20 <td class="buttons">
Chris@1115 21 <% if User.current.allowed_to?(:manage_boards, @project) %>
Chris@1115 22 <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
Chris@1115 23 <%= delete_link project_board_path(@project, board) %>
Chris@1464 24 <% end %>
Chris@0 25 </td>
Chris@909 26 </tr>
Chris@0 27 <% end %>
Chris@909 28 </tbody>
Chris@0 29 </table>
Chris@0 30 <% else %>
Chris@0 31 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@0 32 <% end %>
Chris@0 33
Chris@1115 34 <% if User.current.allowed_to?(:manage_boards, @project) %>
Chris@1115 35 <p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
Chris@1115 36 <% end %>