From 41732933eeb2f25abdd479e5a024cd258c502fd3 Mon Sep 17 00:00:00 2001 From: "db48x%yahoo.com" <> Date: Tue, 27 Feb 2007 04:05:22 +0000 Subject: bug 369429: bug reports should contain microformat markup in order to make the information in them more useable. r=LpSolit --- template/en/default/bug/comments.html.tmpl | 7 ++++-- template/en/default/bug/edit.html.tmpl | 35 +++++++++++++++++++----------- 2 files changed, 27 insertions(+), 15 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 5add6d54f..9d05ba4ac 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -113,8 +113,11 @@ ------- Comment #[% count %] From - - [% comment.name FILTER html %] + + + [%+ comment.time FILTER time %] [% IF mode == "edit" %] 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 @@ Reporter: - - [% bug.reporter.identity FILTER html %] + [% INCLUDE user_identity user => bug.reporter %] @@ -683,8 +682,7 @@ Assigned To: - - [% bug.assigned_to.identity FILTER html %] + [% INCLUDE user_identity user => bug.assigned_to %] @@ -705,15 +703,7 @@ [% ELSE %] - - [% IF bug.qa_contact.login && bug.qa_contact.login.length > 30 %] - - [% bug.qa_contact.identity FILTER truncate(30) FILTER html %] - - [% ELSE %] - [% bug.qa_contact.identity FILTER html %] - [% END %] - + [% INCLUDE user_identity user => bug.qa_contact %] [% END %] @@ -837,3 +827,22 @@ [% size = 0 %] [% value = undef %] [% END %] + +[%############################################################################%] +[%# Block for user identities. Wraps the information inside of an hCard. #%] +[%############################################################################%] + +[% BLOCK user_identity %] + + [% IF user.name %] + + [% user.name FILTER html %] + <[% user.email FILTER html %]> + + [% ELSE %] + + [% user.email FILTER html %] + + [% END %] + +[% END %] -- cgit v1.2.3-24-g4f1b