Project

General

Profile

Feature #29435 » list_boards_as_a_table_in_project_settings_tab.diff

Patch to update the partial - Bernhard Rohloff, 2018-08-24 14:56

View differences:

app/views/projects/settings/_boards.html.erb
3 3
<% end %>
4 4

  
5 5
<% if @project.boards.any? %>
6
<div class="table-list boards">
7
  <div class="table-list-header">
8
    <div class="table-list-cell"><%= l(:label_board) %></div>
9
  </div>
6
<table class="list forums">
7
  <thead>
8
    <th><%= l(:label_board) %></th>
9
    <th><%= l(:field_description) %></th>
10
    <th></th>
11
  </thead>
12
  <tbody class="sort-level">
10 13
  <%= render_boards_tree(@project.boards) do |board, level| %>
11
  <div class="table-list-row">
12
    <div class="table-list-cell name" style="padding-left: <%= 2 + level * 16 %>px">
14
  <tr>
15
    <td class="name">
13 16
      <%= link_to board.name, project_board_path(@project, board) %>
14
    </div>
15
    <div class="table-list-cell description"><%= board.description %></div>
16
    <div class="table-list-cell buttons">
17
    </td>
18
    <td><%= board.description %></td>
19
    <td class="buttons">
17 20
    <% if User.current.allowed_to?(:manage_boards, @project) %>
18 21
      <%= reorder_handle(board) %>
19 22
      <%= link_to l(:button_edit), edit_project_board_path(@project, board), :class => 'icon icon-edit' %>
20 23
      <%= delete_link project_board_path(@project, board) %>
21 24
    <% end %>
22
    </div>
23
  </div>
25
    </td>
26
  </tr>
24 27
  <% end %>
25
</div>
28
  </tbody>
29
</table>
26 30

  
27 31
<%= javascript_tag do %>
28
  $(function() { $("div.sort-level").positionedItems(); });
32
  $(function() { $("tbody.sort-level").positionedItems(); });
29 33
<% end %>
30 34

  
31 35
<% else %>
(1-1/3)