diff options
author | Ed Morley <emorley@mozilla.com> | 2015-05-28 19:04:53 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-05-28 19:04:53 +0200 |
commit | 4d201cd2f99693dd48198b08ffe59ec5424f9826 (patch) | |
tree | cd4a0370e3c96d04dd7e4c17274afe36ab7171e4 /template/en/default/email | |
parent | cd263e882459f87cf68b555764869c6bd0a52119 (diff) | |
download | bugzilla-4d201cd2f99693dd48198b08ffe59ec5424f9826.tar.gz bugzilla-4d201cd2f99693dd48198b08ffe59ec5424f9826.tar.xz |
Bug 1100476: Add microdata to flag request bugmail so Gmail can display a "View bug" button
r=dkl,a=glob
Diffstat (limited to 'template/en/default/email')
-rw-r--r-- | template/en/default/email/flagmail.html.tmpl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/template/en/default/email/flagmail.html.tmpl b/template/en/default/email/flagmail.html.tmpl index 152c3420e..1522ca46d 100644 --- a/template/en/default/email/flagmail.html.tmpl +++ b/template/en/default/email/flagmail.html.tmpl @@ -62,9 +62,11 @@ [% Hook.process('after_summary') %] <p> - [% FOREACH comment = new_comments %] + [% 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 =%] @@ -78,5 +80,14 @@ </div> [% END %] </p> + + <div itemscope itemtype="http://schema.org/EmailMessage"> + <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction"> + [%# Filtering of the URL param is not required & would break the URL when the comment anchor is set %] + <link itemprop="url" href="[% urlbase FILTER html %]show_bug.cgi?id=[% "$bug.id$comment_anchor" FILTER none %]"> + <meta itemprop="name" content="View [% terms.bug %]"> + </div> + <meta itemprop="description" content="[% terms.Bugzilla %] [%+ terms.bug %] update notification"> + </div> </body> </html> |