Project

General

Profile

Actions

QA #1308

open

フッタ表示部分を印刷対象にしたい

Added by 奈良 裕記 about 2 years ago. Updated about 2 years ago.

Status:
問合せ中
Priority:
通常
Assignee:
-
Category:
UI
Target version:
-
Start date:
10/19/2021
Due date:
% Done:

0%

Estimated time:

Description

■現象/要望

Redmineのチケット印刷時、フッタ部分は印刷されない。
しかし、フッタ部分に著作権表示などを設定している場合、印刷時に抜けるのは困る。
画面表示だけでなく、印刷にもフッタ部分を含められないか。

■解決策

印刷時にフッタ部分が含まれないのは、application.css にて、footerなどに、media printの場合に display:none が設定されているからである。
このフッタ指定を抜かすか、後からCSSで display:none を打ち消せばよい。

  1. application.cssを修正する場合の対応

/var/lib/redmine/public/stylesheets/application.css
下記の 「#footer ,」 部分を削除し、Redmineを再起動する。
これにより、右側の display:none の対象から除外され、印刷時にフッタが含まれるようになる。

/***** Media print specific styles *****/
@media print {
  #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
  1. view customizeによる設定

display:noneを打ち消す処理をCSS上で定義する。

■対応状況

ソース修正 or ciewvustomizeの設定にて対応可能

■補足

フッタ部分の書換は #1304 を参照


Related issues 1 (1 open0 closed)

Related to Unofficial Redmine Cooking - QA #1304: フッタ表示内容を変更したい回答済奈良 裕記10/16/2021

Actions
Actions #1

Updated by 奈良 裕記 about 2 years ago

  • Related to QA #1304: フッタ表示内容を変更したい added
Actions #2

Updated by 奈良 裕記 about 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF