##// END OF EJS Templates
Add links to forums....
Jean-Philippe Lang -
r9941:9ef719f15e91
parent child
Show More
@@ -1,36 +1,36
1 <% if @project.boards.any? %>
1 <% if @project.boards.any? %>
2 <table class="list">
2 <table class="list">
3 <thead><tr>
3 <thead><tr>
4 <th><%= l(:label_board) %></th>
4 <th><%= l(:label_board) %></th>
5 <th><%= l(:field_description) %></th>
5 <th><%= l(:field_description) %></th>
6 <th></th>
6 <th></th>
7 <th></th>
7 <th></th>
8 </tr></thead>
8 </tr></thead>
9 <tbody>
9 <tbody>
10 <% @project.boards.each do |board|
10 <% @project.boards.each do |board|
11 next if board.new_record? %>
11 next if board.new_record? %>
12 <tr class="<%= cycle 'odd', 'even' %>">
12 <tr class="<%= cycle 'odd', 'even' %>">
13 <td><%=h board.name %></td>
13 <td><%= link_to board.name, project_board_path(@project, board) %></td>
14 <td><%=h board.description %></td>
14 <td><%=h board.description %></td>
15 <td align="center">
15 <td align="center">
16 <% if authorize_for("boards", "edit") %>
16 <% if authorize_for("boards", "edit") %>
17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
18 <% end %>
18 <% end %>
19 </td>
19 </td>
20 <td class="buttons">
20 <td class="buttons">
21 <% if User.current.allowed_to?(:manage_boards, @project) %>
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' %>
22 <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
23 <%= delete_link project_board_path(@project, board) %>
23 <%= delete_link project_board_path(@project, board) %>
24 <% end %>
24 <% end %>
25 </td>
25 </td>
26 </tr>
26 </tr>
27 <% end %>
27 <% end %>
28 </tbody>
28 </tbody>
29 </table>
29 </table>
30 <% else %>
30 <% else %>
31 <p class="nodata"><%= l(:label_no_data) %></p>
31 <p class="nodata"><%= l(:label_no_data) %></p>
32 <% end %>
32 <% end %>
33
33
34 <% if User.current.allowed_to?(:manage_boards, @project) %>
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>
35 <p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
36 <% end %>
36 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now