summaryrefslogtreecommitdiffstats
path: root/template/en/default/email
diff options
context:
space:
mode:
authorEd Morley <emorley@mozilla.com>2015-02-22 22:59:56 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-02-22 22:59:56 +0100
commit240dec401db61e0a7db14c9fef1e4dec8c2fbedc (patch)
tree0949601e9bcbff18c3f1f66567d7484602730e2e /template/en/default/email
parenta500926139233fb1e0f137c4fc8a4f9977ee418b (diff)
downloadbugzilla-240dec401db61e0a7db14c9fef1e4dec8c2fbedc.tar.gz
bugzilla-240dec401db61e0a7db14c9fef1e4dec8c2fbedc.tar.xz
Bug 1102364: Add microdata to HTML bugmail so GMail can display a "View bug" button
r=dkl,a=sgreen
Diffstat (limited to 'template/en/default/email')
-rw-r--r--template/en/default/email/bugmail.html.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/template/en/default/email/bugmail.html.tmpl b/template/en/default/email/bugmail.html.tmpl
index b0f4efb45..458c1a6a4 100644
--- a/template/en/default/email/bugmail.html.tmpl
+++ b/template/en/default/email/bugmail.html.tmpl
@@ -17,9 +17,11 @@
[% Hook.process('start') %]
[% 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 %]
@@ -61,6 +63,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>