summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2006-02-22 07:18:35 +0100
committerjocuri%softhome.net <>2006-02-22 07:18:35 +0100
commit631d910c3dbce389638550c66ab2e6d847703687 (patch)
tree5b8950e2b992728b0b9e94f848d3c8d4344db098
parent34159623742cea3107168167ff47b395b41c8e26 (diff)
downloadbugzilla-631d910c3dbce389638550c66ab2e6d847703687.tar.gz
bugzilla-631d910c3dbce389638550c66ab2e6d847703687.tar.xz
Patch for bug 313045: Display quoted text in a different color; patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org>, r=LpSolit, a=justdave.
-rw-r--r--globals.pl4
-rw-r--r--skins/standard/global.css4
2 files changed, 8 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 68299378b..9979008d1 100644
--- a/globals.pl
+++ b/globals.pl
@@ -529,6 +529,10 @@ sub quoteUrls {
$text = html_quote($text);
+ # Color quoted text
+ $text =~ s~^(&gt;.+)$~<span class="quote">$1</span >~mg;
+ $text =~ s~</span >\n<span class="quote">~\n~g;
+
# mailto:
# Use |<nothing> so that $1 is defined regardless
$text =~ s~\b(mailto:|)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b
diff --git a/skins/standard/global.css b/skins/standard/global.css
index 5570c6f2c..cddfc96f9 100644
--- a/skins/standard/global.css
+++ b/skins/standard/global.css
@@ -336,4 +336,8 @@ td.tab.spacer
background: white;
}
+span.quote {
+ color: #65379c;
+}
+
table#flags th, table#flags td { vertical-align: baseline; text-align: left; }