diff options
author | db48x%yahoo.com <> | 2007-02-27 05:05:22 +0100 |
---|---|---|
committer | db48x%yahoo.com <> | 2007-02-27 05:05:22 +0100 |
commit | 41732933eeb2f25abdd479e5a024cd258c502fd3 (patch) | |
tree | 4ee4c6895ed9d25b75aea890a59516bf1ccba3d0 /template/en/default/bug/edit.html.tmpl | |
parent | 4827e4de822cbc33acbf66c1d5b4a392c5a3f90c (diff) | |
download | bugzilla-41732933eeb2f25abdd479e5a024cd258c502fd3.tar.gz bugzilla-41732933eeb2f25abdd479e5a024cd258c502fd3.tar.xz |
bug 369429: bug reports should contain microformat markup in order to make the information in them more useable.
r=LpSolit
Diffstat (limited to 'template/en/default/bug/edit.html.tmpl')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 5389af666..c97077d69 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -673,8 +673,7 @@ <b>Reporter</b>: </td> <td> - <a href="mailto:[% bug.reporter.email FILTER html %]"> - [% bug.reporter.identity FILTER html %]</a> + [% INCLUDE user_identity user => bug.reporter %] </td> </tr> @@ -683,8 +682,7 @@ <b><a href="page.cgi?id=fields.html#assigned_to">Assigned To</a></b>: </td> <td> - <a href="mailto:[% bug.assigned_to.email FILTER html %]"> - [% bug.assigned_to.identity FILTER html %]</a> + [% INCLUDE user_identity user => bug.assigned_to %] </td> </tr> @@ -705,15 +703,7 @@ [% ELSE %] <input type="hidden" name="qa_contact" id="qa_contact" value="[% bug.qa_contact.login FILTER html %]"> - <a href="mailto:[% bug.qa_contact.email FILTER html %]"> - [% IF bug.qa_contact.login && bug.qa_contact.login.length > 30 %] - <span title="[% bug.qa_contact.login FILTER html %]"> - [% bug.qa_contact.identity FILTER truncate(30) FILTER html %] - </span> - [% ELSE %] - [% bug.qa_contact.identity FILTER html %] - [% END %] - </a> + [% INCLUDE user_identity user => bug.qa_contact %] [% END %] </td> </tr> @@ -837,3 +827,22 @@ [% size = 0 %] [% value = undef %] [% END %] + +[%############################################################################%] +[%# Block for user identities. Wraps the information inside of an hCard. #%] +[%############################################################################%] + +[% BLOCK user_identity %] + <span class="vcard"> + [% IF user.name %] + <a class="email" href="mailto:[% user.email FILTER html %]"> + <span class="fn">[% user.name FILTER html %]</span> + <[% user.email FILTER html %]> + </a> + [% ELSE %] + <a class="fn email" href="mailto:[% user.email FILTER html %]"> + [% user.email FILTER html %] + </a> + [% END %] + </span> +[% END %] |