26555-list_html_erb-for-r16971.diff

Go MAEDA, 2018-01-28 02:35

Download (1.55 KB)

View differences:

app/views/issues/_list.html.erb
14 14
      <% query.inline_columns.each do |column| %>
15 15
        <%= column_header(query, column, query_options) %>
16 16
      <% end %>
17
      <th></th>
17 18
    </tr>
18 19
  </thead>
19 20
  <tbody>
......
21 22
  <% if group_name %>
22 23
    <% reset_cycle %>
23 24
    <tr class="group open">
24
      <td colspan="<%= query.inline_columns.size + 1 %>">
25
      <td colspan="<%= query.inline_columns.size + 2 %>">
25 26
        <span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
26 27
        <span class="name"><%= group_name %></span> <span class="count"><%= group_count %></span> <span class="totals"><%= group_totals %></span>
27 28
        <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}",
......
34 35
    <% query.inline_columns.each do |column| %>
35 36
    <%= content_tag('td', column_content(column, issue), :class => column.css_classes) %>
36 37
    <% end %>
38
    <td class="buttons"><%= link_to_context_menu %></td>
37 39
  </tr>
38 40
  <% query.block_columns.each do |column|
39 41
       if (text = column_content(column, issue)) && text.present? -%>
40 42
  <tr class="<%= current_cycle %>">
41
    <td colspan="<%= query.inline_columns.size + 1 %>" class="<%= column.css_classes %>">
43
    <td colspan="<%= query.inline_columns.size + 2 %>" class="<%= column.css_classes %>">
42 44
      <% if query.block_columns.count > 1 %>
43 45
        <span><%= column.caption %></span>
44 46
      <% end %>