From 1f5e0cc2cff6bfc6795720997209752d0672a64c Mon Sep 17 00:00:00 2001
From: Luc <iq2luc@gmail.com>
Date: Fri, 30 May 2025 13:58:20 +0300
Subject: [PATCH 4/4] Hide wiki status and other formats when printing

---
 app/helpers/application_helper.rb | 2 +-
 app/views/wiki/show.html.erb      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 588979fc6..173d2fa26 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -782,7 +782,7 @@ module ApplicationHelper
   end
 
   def other_formats_links(&)
-    concat('<p class="other-formats">'.html_safe + l(:label_export_to))
+    concat('<p class="other-formats hide-when-print">'.html_safe + l(:label_export_to))
     yield Redmine::Views::OtherFormatsBuilder.new(self)
     concat('</p>'.html_safe)
   end
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 4b222ef4b..930d3a8c4 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -85,7 +85,7 @@
 </div>
 </fieldset>
 
-<p class="wiki-update-info">
+<p class="wiki-update-info hide-when-print">
   <% if User.current.allowed_to?(:view_wiki_edits, @project) %>
     <%= wiki_content_update_info(@content) %>
     · <%= link_to l(:label_x_revisions, :count => @page.content.versions.size), {:action => 'history', :id => @page.title} %>
-- 
2.47.2

