From 06b9a3ec0c8c396b083d754797e9d81b5c469e9d Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Sun, 22 Feb 2015 22:27:05 +0000 Subject: Bug 1102364: Add microdata to HTML bugmail so GMail can display a "View bug" button --- extensions/BMO/template/en/default/email/bugmail.html.tmpl | 10 +++++++++- template/en/default/email/bugmail.html.tmpl | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/extensions/BMO/template/en/default/email/bugmail.html.tmpl b/extensions/BMO/template/en/default/email/bugmail.html.tmpl index 7a628ec7f..f66fee30c 100644 --- a/extensions/BMO/template/en/default/email/bugmail.html.tmpl +++ b/extensions/BMO/template/en/default/email/bugmail.html.tmpl @@ -35,11 +35,13 @@ [% PROCESS generate_diffs %] [% END %] + [% SET comment_anchor = '' %] [% IF new_comments.size %]
[% FOREACH comment = new_comments.reverse %]
[% IF comment.count %] + [% comment_anchor = "#c$comment.count" %] [% "Comment # ${comment.count}" FILTER bug_link(bug, { comment_num => comment.count, full_url => 1 }) FILTER none %] @@ -110,7 +112,13 @@ [% END %]
- +
+
+ + +
+ +
@@body-headers@@ diff --git a/template/en/default/email/bugmail.html.tmpl b/template/en/default/email/bugmail.html.tmpl index 2cd9318c1..65b449232 100644 --- a/template/en/default/email/bugmail.html.tmpl +++ b/template/en/default/email/bugmail.html.tmpl @@ -28,9 +28,11 @@ [% PROCESS generate_diffs %]

+ [% SET comment_anchor = '' %] [% FOREACH comment = new_comments.reverse %]

[% IF comment.count %] + [% comment_anchor = "#c$comment.count" %] [% "Comment # ${comment.count}" FILTER bug_link(bug, {comment_num => comment.count, full_url => 1, user => to_user}) FILTER none %] on [% "$terms.bug $bug.id" FILTER bug_link(bug, { full_url => 1, user => to_user }) FILTER none %] @@ -70,6 +72,13 @@ [% END %] [% END %] +
+
+ + +
+ +
-- cgit v1.2.3-24-g4f1b