From 019fd7a817889ed538f74471ec04e179749c7033 Mon Sep 17 00:00:00 2001
From: Luc <iq2luc@gmail.com>
Date: Fri, 30 May 2025 13:53:56 +0300
Subject: [PATCH 3/4] Hide buttons column in version tables when printing

---
 app/views/versions/index.html.erb | 2 +-
 app/views/versions/show.html.erb  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb
index 6c3d518bc..45b254a7d 100644
--- a/app/views/versions/index.html.erb
+++ b/app/views/versions/index.html.erb
@@ -40,7 +40,7 @@
             <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
             <td class="assigned_to"><%= assignee_avatar(issue.assigned_to, :size => 16) %></td>
             <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
-            <td class="buttons"><%= link_to_context_menu %></td>
+            <td class="buttons hide-when-print"><%= link_to_context_menu %></td>
           </tr>
         <% end -%>
         </table>
diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb
index f83aff80d..cdd2b3029 100644
--- a/app/views/versions/show.html.erb
+++ b/app/views/versions/show.html.erb
@@ -54,7 +54,7 @@
       <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
       <td class="assigned_to"><%= assignee_avatar(issue.assigned_to, :size => 16) %></td>
       <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
-      <td class="buttons"><%= link_to_context_menu %></td>
+      <td class="buttons hide-when-print"><%= link_to_context_menu %></td>
     </tr>
   <% end %>
   </table>
-- 
2.47.2

