Closed Bug 235061 Opened 21 years ago Closed 21 years ago

process_bug.cgi should get all show_bug.cgi css stylings

Categories

(Bugzilla :: Attachments & Requests, defect)

2.17.6
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: cso, Assigned: Wurblzap)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 When you make a change to a bug, and process_bug.cgi moves you on to the next bug, obsolete attachments are not struck through. This is because the CSS file is not included in the page headers, so it does not apply. Reproducible: Always Steps to Reproduce: 1. Change a bug, where when you submit the next bug will have an obsolete patch. 2. Check the Source - no CSS file is included and obsolete patches are not struckthrough. Actual Results: Obsolete patches not struck through Expected Results: Obsolete patches should be struck through
Version: unspecified → 2.17.6
Example html is at http://lj.crschmidt.net/process_bug.html, which is an example of a page on http://zilla.livejournal.org, using a very slightly modified version of 2.17.6 CVS.
I noted the missing css because the comment headers weren't styled correctly in process_bug.cgi pages. This patch puts the css/edit_bug.css in, which corrects both effects.
Attachment #156411 - Flags: review?
Assignee: myk → marcschum
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking2.18+
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.18
Comment on attachment 156411 [details] [diff] [review] Use css/edit_bug.css for process_bug.cgi pages, like show_bug.cgi does This does fix the problem
Attachment #156411 - Flags: review? → review+
This patch does seem weird at first because we're using "somebody else's CSS file". This is caused because we put content-specific CSS rules in page-specific CSS files -- it induces us into consistency errors like this one. The CSS filename should be content-specific. Checking with Myk if he thinks it's time to solve this, and requesting approval as I move.
Status: NEW → ASSIGNED
Flags: approval?
Flags: approval2.18?
Stuff that applies across multiple pages should be put into global.css.
Moving styles relevant to this bug from edit_bug.css to global.css leaves edit_bug.css empty, so I removed it.
Attachment #156411 - Attachment is obsolete: true
Attachment #156802 - Flags: review?
Uhm. Wait a minute. Aren't obsolete attachments styled via bz_obsolete, which already lives in global.css today? Also, why are you moving the table changes out? I do think they are page-specific..
Flags: approval?
Flags: approval2.18?
(In reply to comment #7) > Uhm. Wait a minute. Aren't obsolete attachments styled via bz_obsolete, which > already lives in global.css today? You're right; morphing. 2.17.6 had no global.css (bz_obsolete was in edit_bug.css), but this bug should have been marked WORKSFORME when global.css was introduced and took bz_obsolete. I didn't notice because I focused on bz_comment. > Also, why are you moving the table changes out? I do think they are > page-specific.. The table stylings are for the flags array below the CC list, so they are needed for show_bug as well as for process_bug.
Summary: Obsolete patches not struckthrough on process_bug.cgi after changing a bug before this one → process_bug.cgi should get all show_bug.cgi css stylings
Comment on attachment 156802 [details] [diff] [review] Moving to global.css In that case, okay.
Attachment #156802 - Flags: review? → review+
Flags: approval?
Flags: approval2.18?
Remember to CVS remove edit_bug.css in conjunction with this patch.
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Removing css/edit_bug.css; /cvsroot/mozilla/webtools/bugzilla/css/edit_bug.css,v <-- edit_bug.css new revision: delete; previous revision: 1.7 done Checking in css/global.css; /cvsroot/mozilla/webtools/bugzilla/css/global.css,v <-- global.css new revision: 1.5; previous revision: 1.4 done Checking in template/en/default/bug/show.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show.html.tmpl,v <-- show.html.tmpl new revision: 1.7; previous revision: 1.6 done Removing css/edit_bug.css; /cvsroot/mozilla/webtools/bugzilla/css/Attic/edit_bug.css,v <-- edit_bug.css new revision: delete; previous revision: 1.7 done Checking in css/global.css; /cvsroot/mozilla/webtools/bugzilla/css/global.css,v <-- global.css new revision: 1.4.2.1; previous revision: 1.4 done Checking in template/en/default/bug/show.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show.html.tmpl,v <-- show.html.tmpl new revision: 1.6.2.1; previous revision: 1.6 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 259650 has been marked as a duplicate of this bug. ***
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: