Project

General

Profile

Patch #42794 » 0004-Hide-wiki-status-and-other-formats-when-printing.patch

Hide wiki status and other formats when printing - Luc Luc, 2025-05-31 09:44

View differences:

app/helpers/application_helper.rb
782 782
  end
783 783

  
784 784
  def other_formats_links(&)
785
    concat('<p class="other-formats">'.html_safe + l(:label_export_to))
785
    concat('<p class="other-formats hide-when-print">'.html_safe + l(:label_export_to))
786 786
    yield Redmine::Views::OtherFormatsBuilder.new(self)
787 787
    concat('</p>'.html_safe)
788 788
  end
app/views/wiki/show.html.erb
85 85
</div>
86 86
</fieldset>
87 87

  
88
<p class="wiki-update-info">
88
<p class="wiki-update-info hide-when-print">
89 89
  <% if User.current.allowed_to?(:view_wiki_edits, @project) %>
90 90
    <%= wiki_content_update_info(@content) %>
91 91
    · <%= link_to l(:label_x_revisions, :count => @page.content.versions.size), {:action => 'history', :id => @page.title} %>
(4-4/4)