From e52faa4e689aa0caf45f620efb5a2488e1d05b84 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Mon, 16 Nov 2009 16:33:12 +0000 Subject: [PATCH] Bug 528872 - "Attachments in attachments table should have CSS classes to help with styling" [p=reed r=LpSolit a=LpSolit] git-svn-id: svn://10.0.0.236/trunk@258997 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Util.pm | 4 ++-- .../bugzilla/template/en/default/attachment/list.html.tmpl | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Util.pm b/mozilla/webtools/bugzilla/Bugzilla/Util.pm index d1a52a5fc35..b5e99bf691d 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Util.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Util.pm @@ -214,7 +214,7 @@ sub url_quote { sub css_class_quote { my ($toencode) = (@_); - $toencode =~ s/ /_/g; + $toencode =~ s#[ /]#_#g; $toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("&#x%x;",ord($1))/eg; return $toencode; } @@ -733,7 +733,7 @@ Quotes characters so that they may be included as part of a url. =item C Quotes characters so that they may be used as CSS class names. Spaces -are replaced by underscores. +and forward slashes are replaced by underscores. =item C diff --git a/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl index bd597e48b58..6453b4e685a 100644 --- a/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/attachment/list.html.tmpl @@ -65,7 +65,11 @@ function toggle_display(link) { [% IF attachment.isobsolete %] [% obsolete_attachments = obsolete_attachments + 1 %] [% END %] -