mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
git-svn-id: http://svn.redmine.org/redmine/trunk@15337 e93f8b46-1217-0410-a6f0-8f06a7374b81
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
<% if @project.boards.any? %>
|
|
<div class="table-list boards">
|
|
<div class="table-list-header">
|
|
<div class="table-list-cell"><%= l(:label_board) %></div>
|
|
</div>
|
|
<%= render_boards_tree(@project.boards) do |board, level| %>
|
|
<div class="table-list-row <%= cycle 'odd', 'even' %>">
|
|
<div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
|
|
<%= link_to board.name, project_board_path(@project, board) %>
|
|
</div>
|
|
<div class="table-list-cell description"><%= board.description %></div>
|
|
<div class="table-list-cell buttons">
|
|
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
|
<%= reorder_handle(board) %>
|
|
<%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
|
|
<%= delete_link project_board_path(@project, board) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= javascript_tag do %>
|
|
$(function() { $("div.sort-level").positionedItems(); });
|
|
<% end %>
|
|
|
|
<% else %>
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
<% end %>
|
|
|
|
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
|
<p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
|
|
<% end %>
|