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)

3.4.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: reed, Assigned: reed)

References

Details

(Whiteboard: [wanted-bmo])

Attachments

(1 file, 3 obsolete files)

Attached patch patch - v1 (obsolete) — Splinter Review
To make styling easier, patches in the attachments table should have the 'bz_patch' class.
Attachment #412541 - Flags: review?(LpSolit)
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
Attached patch patch - v2 (obsolete) — Splinter Review
Untested.
Attachment #412541 - Attachment is obsolete: true
Attachment #412545 - Flags: review?(LpSolit)
Attachment #412541 - Flags: review?(LpSolit)
Comment on attachment 412545 [details] [diff] [review] patch - v2 it's live on bugzilla-stage-tip, and will be in production sometime soon.
No longer blocks: bmo-regressions-0911
Severity: normal → enhancement
Target Milestone: Bugzilla 3.4 → Bugzilla 3.6
Attachment #412545 - Flags: review?(LpSolit) → review+
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+.
Attached patch wrong patch (obsolete) — Splinter Review
Attachment #412545 - Attachment is obsolete: true
Attachment #412604 - Flags: review+
Attached patch patch - v3Splinter Review
The real v3.
Attachment #412604 - Attachment is obsolete: true
Attachment #412605 - Flags: review+
Attachment #412604 - Attachment description: patch - v3 → wrong patch
Attachment #412604 - Flags: review+
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+
Flags: approval+
Attachment #412605 - Flags: review+
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]
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?
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).
OK, so let's take it for 3.6 only.
Flags: approval3.4? → approval3.4-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: