summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.html.tmpl10
-rw-r--r--template/en/default/email/bugmail.html.tmpl9
2 files changed, 18 insertions, 1 deletions
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 %]
<div id="comments">
[% FOREACH comment = new_comments.reverse %]
<div>
[% IF comment.count %]
+ [% comment_anchor = "#c$comment.count" %]
<b>
[% "Comment # ${comment.count}"
FILTER bug_link(bug, { comment_num => comment.count, full_url => 1 }) FILTER none %]
@@ -110,7 +112,13 @@
[% END %]
</ul>
</div>
-
+ <div itemscope itemtype="http://schema.org/EmailMessage">
+ <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
+ <link itemprop="url" href="[% urlbase FILTER html %]show_bug.cgi?id=[% "$bug.id$comment_anchor" FILTER uri %]"/>
+ <meta itemprop="name" content="View [% terms.bug %]"/>
+ </div>
+ <meta itemprop="description" content="[% terms.Bugzilla %] [%+ terms.bug %] update notification"/>
+ </div>
@@body-headers@@
</body>
</html>
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 @@
<body>
[% PROCESS generate_diffs %]
<p>
+ [% SET comment_anchor = '' %]
[% FOREACH comment = new_comments.reverse %]
<div>
[% IF comment.count %]
+ [% comment_anchor = "#c$comment.count" %]
<b>[% "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 %]
</ul>
+ <div itemscope itemtype="http://schema.org/EmailMessage">
+ <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
+ <link itemprop="url" href="[% urlbase FILTER html %]show_bug.cgi?id=[% "$bug.id$comment_anchor" FILTER uri %]"/>
+ <meta itemprop="name" content="View [% terms.bug %]"/>
+ </div>
+ <meta itemprop="description" content="[% terms.Bugzilla %] [%+ terms.bug %] update notification"/>
+ </div>
</body>
</html>