Closed
Bug 528872
Opened 16 years ago
Closed 16 years ago
Attachments in attachments table should have CSS classes to help with styling
Categories
(Bugzilla :: User Interface, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: reed, Assigned: reed)
References
Details
(Whiteboard: [wanted-bmo])
Attachments
(1 file, 3 obsolete files)
3.05 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
To make styling easier, patches in the attachments table should have the 'bz_patch' class.
Attachment #412541 -
Flags: review?(LpSolit)
Assignee | ||
Updated•16 years ago
|
Blocks: bmo-regressions-0911
Assignee | ||
Comment 1•16 years ago
|
||
Actually, justdave and timeless had a good idea to add some more CSS styles. New patch coming.
Summary: Patches in attachments table should have 'bz_patch' class → Attachments in attachments table should have CSS classes to help with styling
Assignee | ||
Comment 2•16 years ago
|
||
Untested.
Attachment #412541 -
Attachment is obsolete: true
Attachment #412545 -
Flags: review?(LpSolit)
Attachment #412541 -
Flags: review?(LpSolit)
Comment 3•16 years ago
|
||
Comment on attachment 412545 [details] [diff] [review]
patch - v2
it's live on bugzilla-stage-tip, and will be in production sometime soon.
Updated•16 years ago
|
No longer blocks: bmo-regressions-0911
![]() |
||
Updated•16 years ago
|
Severity: normal → enhancement
Target Milestone: Bugzilla 3.4 → Bugzilla 3.6
![]() |
||
Updated•16 years ago
|
Attachment #412545 -
Flags: review?(LpSolit) → review+
![]() |
||
Comment 4•16 years ago
|
||
Comment on attachment 412545 [details] [diff] [review]
patch - v2
>+ <tr class="[% "bz_contenttype_" _ attachment.contenttype
>+ FILTER css_class_quote UNLESS attachment.isurl %]
The W3C CSS validator accepts .bz_contenttype_image\/png as a valid class name, so this is technically acceptable, but replacing / by _ is probably a good idea.
r=LpSolit with attachment.contenttype.replace('/', '_') instead of attachment.contenttype alone. Attach a new patch and carry forward my r+.
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #412545 -
Attachment is obsolete: true
Attachment #412604 -
Flags: review+
Assignee | ||
Comment 6•16 years ago
|
||
The real v3.
Attachment #412604 -
Attachment is obsolete: true
Attachment #412605 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Attachment #412604 -
Attachment description: patch - v3 → wrong patch
Attachment #412604 -
Flags: review+
![]() |
||
Comment 7•16 years ago
|
||
Comment on attachment 412605 [details] [diff] [review]
patch - v3
Per reed's suggestion on IRC, fixing css_class_quote directly is indeed a better place. r=LpSolit
Attachment #412605 -
Flags: review+
![]() |
||
Updated•16 years ago
|
Flags: approval+
Assignee | ||
Updated•16 years ago
|
Attachment #412605 -
Flags: review+
Assignee | ||
Comment 8•16 years ago
|
||
tip:
Checking in Bugzilla/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Util.pm,v <-- Util.pm
new revision: 1.96; previous revision: 1.95
done
Checking in template/en/default/attachment/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl,v <-- list.html.tmpl
new revision: 1.43; previous revision: 1.42
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [wanted-bmo]
Assignee | ||
Comment 9•16 years ago
|
||
Similar to bug 516635 (same reason), I would like to have this on 3.4, too, especially since bmo is using it.
Flags: approval3.4?
Comment 10•16 years ago
|
||
The changes to css_class_quote shouldn't go to 3.4. The additional CSS classes aren't a huge deal, I suppose.
One reason that I'm slightly loathe to approve seemingly harmless template changes on stable branches is that they can wreak havoc with local customizations, sometimes, and during stable point-release upgrades, you don't expect havoc (even minor havoc).
You need to log in
before you can comment on or make changes to this bug.
Description
•