Commit 240dec40 authored by Ed Morley's avatar Ed Morley Committed by David Lawrence

Bug 1102364: Add microdata to HTML bugmail so GMail can display a "View bug" button

r=dkl,a=sgreen
parent a5009261
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
[% Hook.process('start') %] [% Hook.process('start') %]
[% PROCESS generate_diffs %] [% PROCESS generate_diffs %]
<p> <p>
[% SET comment_anchor = '' %]
[% FOREACH comment = new_comments.reverse %] [% FOREACH comment = new_comments.reverse %]
<div> <div>
[% IF comment.count %] [% IF comment.count %]
[% comment_anchor = "#c$comment.count" %]
<b>[% "Comment # ${comment.count}" FILTER bug_link(bug, <b>[% "Comment # ${comment.count}" FILTER bug_link(bug,
{comment_num => comment.count, full_url => 1, user => to_user}) FILTER none %] {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 %] on [% "$terms.bug $bug.id" FILTER bug_link(bug, { full_url => 1, user => to_user }) FILTER none %]
...@@ -61,6 +63,13 @@ ...@@ -61,6 +63,13 @@
[% END %] [% END %]
[% END %] [% END %]
</ul> </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> </body>
</html> </html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment