summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormozilla%colinogilvie.co.uk <>2006-09-07 04:28:47 +0200
committermozilla%colinogilvie.co.uk <>2006-09-07 04:28:47 +0200
commit707f26646c78879d73639abfc29e8b9eb1f8f0f1 (patch)
tree1e813d8a1f3f8f97b1bd867fa097db3c3080ef75
parent8e808ffbf7b7b28a1cdfda3d188cc156a2e879d9 (diff)
downloadbugzilla-707f26646c78879d73639abfc29e8b9eb1f8f0f1.tar.gz
bugzilla-707f26646c78879d73639abfc29e8b9eb1f8f0f1.tar.xz
Bug 340001: Bug XML should include real names
Patch by Colin Ogilvie <colin.ogilvie@gmail.com>; r=LpSolit; a=myk
-rw-r--r--template/en/default/bug/show.xml.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index a54202675..02b271081 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -69,7 +69,7 @@
[% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %]
<long_desc isprivate="[% c.isprivate FILTER xml %]">
- <who>[% c.email FILTER xml %]</who>
+ <who name="[% c.name FILTER xml %]">[% c.email FILTER xml %]</who>
<bug_when>[% c.time FILTER time FILTER xml %]</bug_when>
[% IF user.in_group(Param('timetrackinggroup')) && (c.work_time - 0 != 0) %]
<work_time>[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]</work_time>
@@ -119,12 +119,16 @@
[%# We need to handle some fields differently. This should become
# nicer once we have custfields, and a type attribute for the fields
#%]
+ [% name = '' %]
[% IF field == 'reporter' OR field == 'assigned_to' OR
field == 'qa_contact' %]
+ [% name = val.name %]
[% val = val.email %]
[% ELSIF field == 'creation_ts' OR field == 'delta_ts' %]
[% val = val FILTER time %]
[% END %]
- <[% field %]>[% val FILTER xml %]</[% field %]>
+ <[% field %]
+ [% IF name != '' %]name="[% name FILTER xml %]"[% END %]
+ >[% val FILTER xml %]</[% field %]>
[% END %]
[% END %]