Closed Bug 161535 Opened 22 years ago Closed 18 years ago

Navigation links should not print

Categories

(Bugzilla :: User Interface, enhancement, P4)

2.16
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 110152

People

(Reporter: 1212mozilla, Assigned: myk)

Details

Attachments

(2 files)

An engineer at our status meeting had printed out several bug reports and bug
lists.  Each of them had the yellow box "This is Bugzilla: the Mozilla bug
system"... at the bottom of the page.  The instructions and navigation options
in that box are fairly useless on paper.

I modified my bugzilla installation (2.16) so that these would not print (using
stylesheets).  Here are the changes:
Create a printable.css file with the contents:
.bugzillaNavigationBox {
  display:none;
}

Reference this stylesheet for printing in each pages header by adding the
following line to template/en/default/global/header.html.tmpl anywhere in the
<head> section.
<link rel="stylesheet" media="print" href="printable.css" type="text/css">

make the things that shouldn't print the bugzillaNavigationBox class:
in template/en/default/global/header.html.tmpl change the outermost table to:
<table border="0" class="bugzillaNavigationBox">

in template/en/default/bug/navigate.html.tmpl add the following div around most
of the content:
<div class="bugzillaNavigationBox">
</div>

in template/en/default/bug/navigate.html.tmpl add the following div around most
of the content:
<div class="bugzillaNavigationBox">
</div>

in template/en/default/list/list.html.tmpl add the following div around the
navigation bar:
<div class="bugzillaNavigationBox">
</div>

The problems that I see with this fix are: 
1. The style sheet is a relative reference, it should probably be absolute.  I
don't know what the template variable for the bugzilla root installation url is.

2. Bugzilla appears to have some other style sheet mechanism.  This patch
shouldn't interterfere with it, but it might be possible to integrate the two. 
If that were done, problem one would be moot because the style sheets would be
inline rather than files.

I don't know how to create patch files.  If somebody could point me in the right
direction, I would be glad to do so.
Patches are created with cvs diff -u for a CVS directory and diff -u oldfile
newfile or diff -ru olddir newdir for non-CVS directories.
Priority: -- → P4
Target Milestone: --- → Future
Attachment #97751 - Attachment description: style sheet used in patch when printing. → style sheet used in patch when printing, it should be named printable.css and it goes in the bugzilla root directory.
The User Interface component now belongs to Gerv.  Reassigning all UNCONFIRMED
and NEW (but not ASSIGNED) bugs currently owned by Myk (the previous component
owner) to Gerv.
Assignee: myk → gerv
Reassigning back to Myk.  That stuff about Gerv taking over the User Interface
component turned out to be short-lived.  Please pardon our confusion, and I'm
very sorry about the spam.
Assignee: gerv → myk
OS: Linux → All
Hardware: PC → All
Severity: normal → enhancement
Target Milestone: Future → Bugzilla 2.20
Bugzilla 2.20 feature set is now frozen as of 15 Sept 2004.  Anything flagged
enhancement that hasn't already landed is being pushed out.  If this bug is
otherwise ready to land, we'll handle it on a case-by-case basis, please set the
blocking2.20 flag to '?' if you think it qualifies.
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
QA Contact: mattyt-bugzilla → default-qa
Target Milestone: Bugzilla 2.22 → ---
Depends on: 330600
Whiteboard: [blocker fill fix]

*** This bug has been marked as a duplicate of 110152 ***
Status: NEW → RESOLVED
Closed: 18 years ago
No longer depends on: 330600
Resolution: --- → DUPLICATE
Whiteboard: [blocker fill fix]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: