Project

General

Profile

Patch #42794 » 0001-Hide-buttons-column-in-time-table-when-printing.patch

Hide buttons column in time table when printing - Luc Luc, 2025-05-31 09:44

View differences:

app/views/timelog/_list.html.erb
11 11
    <% @query.inline_columns.each do |column| %>
12 12
      <%= column_header(@query, column) %>
13 13
    <% end %>
14
    <th></th>
14
    <th class="hide-when-print"></th>
15 15
  </tr>
16 16
</thead>
17 17
<tbody>
......
36 36
    <% @query.inline_columns.each do |column| %>
37 37
    <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
38 38
    <% end %>
39
    <td class="buttons">
39
    <td class="buttons hide-when-print">
40 40
    <% if entry.editable_by?(User.current) -%>
41 41
        <%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(entry),
42 42
                    :title => l(:button_edit),
(1-1/4)