Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
88628a5c
Commit
88628a5c
authored
May 05, 2015
by
Albert Ting
Committed by
Byron Jones
May 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1119336: Add css classes to html emails, such as the comment block
r=glob,a=glob
parent
7b85e3b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
bugmail.html.tmpl
template/en/default/email/bugmail.html.tmpl
+25
-8
No files found.
template/en/default/email/bugmail.html.tmpl
View file @
88628a5c
...
...
@@ -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 %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment