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
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
app/views/wiki/show.html.erb
</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} %>
(4-4/4)