From 81fda44be5ac2ef81bee67c260038740c0096ca1 Mon Sep 17 00:00:00 2001
From: Luc <iq2luc@gmail.com>
Date: Fri, 30 May 2025 13:30:44 +0300
Subject: [PATCH 1/4] Hide buttons column in time table when printing

---
 app/views/timelog/_list.html.erb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb
index 1a82b5f51..6c518161f 100644
--- a/app/views/timelog/_list.html.erb
+++ b/app/views/timelog/_list.html.erb
@@ -11,7 +11,7 @@
     <% @query.inline_columns.each do |column| %>
       <%= column_header(@query, column) %>
     <% end %>
-    <th></th>
+    <th class="hide-when-print"></th>
   </tr>
 </thead>
 <tbody>
@@ -36,7 +36,7 @@
     <% @query.inline_columns.each do |column| %>
     <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
     <% end %>
-    <td class="buttons">
+    <td class="buttons hide-when-print">
     <% if entry.editable_by?(User.current) -%>
         <%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(entry),
                     :title => l(:button_edit),
-- 
2.47.2

