? 369429-10.diff ? 369429-7.diff ? 369429-8.diff ? 369429-9.diff ? charset.cgi ? out Index: Bugzilla/Bug.pm =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v retrieving revision 1.171 diff -u -r1.171 Bug.pm --- Bugzilla/Bug.pm 28 Jan 2007 21:19:12 -0000 1.171 +++ Bugzilla/Bug.pm 26 Feb 2007 19:48:27 -0000 @@ -1475,7 +1475,6 @@ my %comment = %$comment_ref; $comment{'email'} .= Bugzilla->params->{'emailsuffix'}; - $comment{'name'} = $comment{'name'} || $comment{'email'}; # If raw data is requested, do not format 'special' comments. $comment{'body'} = format_comment(\%comment) unless $raw; Index: Bugzilla/BugMail.pm =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm,v retrieving revision 1.104 diff -u -r1.104 BugMail.pm --- Bugzilla/BugMail.pm 6 Feb 2007 22:02:21 -0000 1.104 +++ Bugzilla/BugMail.pm 26 Feb 2007 19:48:27 -0000 @@ -704,11 +704,11 @@ foreach my $comment (@$raw_comments) { if ($count) { $result .= "\n\n--- Comment #$count from "; - if ($comment->{'name'} eq $comment->{'email'}) { - $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'}; - } else { + if ($comment->{'name'}) { $result .= $comment->{'name'} . " <" . $comment->{'email'} . Bugzilla->params->{'emailsuffix'} . ">"; + } else { + $result .= $comment->{'email'} . Bugzilla->params->{'emailsuffix'}; } $result .= " " . format_time($comment->{'time'}) . " ---\n"; } Index: template/en/default/bug/comments.html.tmpl =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/comments.html.tmpl,v retrieving revision 1.28 diff -u -r1.28 comments.html.tmpl --- template/en/default/bug/comments.html.tmpl 17 Oct 2006 19:58:37 -0000 1.28 +++ template/en/default/bug/comments.html.tmpl 26 Feb 2007 19:48:27 -0000 @@ -113,8 +113,11 @@ ------- Comment #[% count %] From - - [% comment.name FILTER html %] + + + [%+ comment.time FILTER time %] [% IF mode == "edit" %] Index: template/en/default/bug/edit.html.tmpl =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v retrieving revision 1.97 diff -u -r1.97 edit.html.tmpl --- template/en/default/bug/edit.html.tmpl 27 Dec 2006 00:55:23 -0000 1.97 +++ template/en/default/bug/edit.html.tmpl 26 Feb 2007 19:48:27 -0000 @@ -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 %]