To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / a8 / a8b00183ca19aefa144aaaa16c35a73416e33f9f.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.23 KB)

1 1296:038ba2d95de8 Chris
<% 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 style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
14
    <td><%=h board.description %></td>
15
    <td align="center">
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 %>