Feature #29435 » list_boards_as_a_table_in_project_settings_tab.diff
| app/views/projects/settings/_boards.html.erb | ||
|---|---|---|
|
<% end %>
|
||
|
<% if @project.boards.any? %>
|
||
|
<div class="table-list boards">
|
||
|
<div class="table-list-header">
|
||
|
<div class="table-list-cell"><%= l(:label_board) %></div>
|
||
|
</div>
|
||
|
<table class="list forums">
|
||
|
<thead>
|
||
|
<th><%= l(:label_board) %></th>
|
||
|
<th><%= l(:field_description) %></th>
|
||
|
<th></th>
|
||
|
</thead>
|
||
|
<tbody class="sort-level">
|
||
|
<%= render_boards_tree(@project.boards) do |board, level| %>
|
||
|
<div class="table-list-row">
|
||
|
<div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
|
||
|
<tr>
|
||
|
<td class="name">
|
||
|
<%= 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">
|
||
|
</td>
|
||
|
<td><%= board.description %></td>
|
||
|
<td class="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>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<%= javascript_tag do %>
|
||
|
$(function() { $("div.sort-level").positionedItems(); });
|
||
|
$(function() { $("tbody.sort-level").positionedItems(); });
|
||
|
<% end %>
|
||
|
<% else %>
|
||