summaryrefslogtreecommitdiffstats
path: root/template/en/default/email
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-05-05 07:45:04 +0200
committerByron Jones <glob@mozilla.com>2015-05-05 07:45:04 +0200
commit88628a5ca0c8af56440d08b09bb088fc337b3c56 (patch)
tree19020a8bd0818c1e7ebb20dcbae2aafbe9f89833 /template/en/default/email
parent7b85e3b1d5a14cee8b69e33280a810b6efe71e56 (diff)
downloadbugzilla-88628a5ca0c8af56440d08b09bb088fc337b3c56.tar.gz
bugzilla-88628a5ca0c8af56440d08b09bb088fc337b3c56.tar.xz
Bug 1119336: Add css classes to html emails, such as the comment block
r=glob,a=glob
Diffstat (limited to 'template/en/default/email')
-rw-r--r--template/en/default/email/bugmail.html.tmpl33
1 files changed, 25 insertions, 8 deletions
diff --git a/template/en/default/email/bugmail.html.tmpl b/template/en/default/email/bugmail.html.tmpl
index e3b63f10b..abdae8cf8 100644
--- a/template/en/default/email/bugmail.html.tmpl
+++ b/template/en/default/email/bugmail.html.tmpl
@@ -19,14 +19,30 @@
<p>
[% SET comment_anchor = '' %]
[% FOREACH comment = new_comments.reverse %]
- <div>
+ <div class="bz_comment_block">
[% IF comment.count %]
[% comment_anchor = "#c$comment.count" %]
- <b>[% INCLUDE bug/link.html.tmpl bug = bug, link_text = "Comment # ${comment.count}",
- comment_num = comment.count, full_url = 1, user = to_user %]
- on [% INCLUDE bug/link.html.tmpl bug = bug, link_text = "$terms.bug $bug.id",
- full_url = 1, user = to_user %]
- from [% INCLUDE global/user.html.tmpl user = to_user, who = comment.author %]</b>
+ <b class="bz_comment_head">
+ [% INCLUDE bug/link.html.tmpl
+ bug = bug,
+ link_text = "Comment # ${comment.count}",
+ comment_num = comment.count,
+ full_url = 1,
+ user = to_user
+ %]
+ on
+ [%= INCLUDE bug/link.html.tmpl
+ bug = bug,
+ link_text = "$terms.bug $bug.id",
+ full_url = 1,
+ user = to_user
+ %]
+ from
+ [%= INCLUDE global/user.html.tmpl
+ user = to_user,
+ who = comment.author
+ %]
+ </b>
[% END %]
[% comment_div = comment.is_markdown ? "div" : "pre" %]
[% wrap = comment.is_markdown ? 0 : 1 %]
@@ -81,6 +97,7 @@
[% BLOCK generate_diffs %]
[% SET in_table = 0 %]
+ [% class_name = isnew ? "bz_new_table" : "bz_diff_table" %]
[% last_changer = 0 %]
[% FOREACH change = diffs %]
[% IF !isnew && change.who.id != last_changer %]
@@ -101,7 +118,7 @@
[% END %]
<br>
[% IF in_table == 0 %]
- <table border="1" cellspacing="0" cellpadding="8">
+ <table border="1" cellspacing="0" cellpadding="8" class="[% class_name FILTER none %]">
[% SET in_table = 1 %]
[% END %]
<tr>
@@ -113,7 +130,7 @@
[% PROCESS "email/bugmail-common.txt.tmpl" %]
[% IF in_table == 0 %]
- <table border="1" cellspacing="0" cellpadding="8">
+ <table border="1" cellspacing="0" cellpadding="8" class="[% class_name FILTER none %]">
[% SET in_table = 1 %]
[% END %]
[% IF isnew %]