Bug 137751: Linkify bug numbers in dependency fields on show_activity.cgi - Patch by David D. Kilzer (ddk) <ddkilzer@kilzer.net> and timeless <timeless@bemail.org> r=wicked a=justdave

This commit is contained in:
lpsolit%gmail.com 2006-05-14 19:47:35 +00:00
parent f5902d63f6
commit 0021a1c916
2 changed files with 13 additions and 0 deletions

View File

@ -642,6 +642,12 @@ sub create {
1 1
], ],
bug_list_link => sub
{
my $buglist = shift;
return join(", ", map(get_bug_link($_, $_), split(/ *, */, $buglist)));
},
# In CSV, quotes are doubled, and any value containing a quote or a # In CSV, quotes are doubled, and any value containing a quote or a
# comma is enclosed in quotes. # comma is enclosed in quotes.
csv => sub csv => sub

View File

@ -17,6 +17,7 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# David D. Kilzer <ddkilzer@kilzer.net>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
@ -85,6 +86,9 @@
[% status_descs.${change.removed} FILTER html %] [% status_descs.${change.removed} FILTER html %]
[% ELSIF change.fieldname == 'resolution' %] [% ELSIF change.fieldname == 'resolution' %]
[% resolution_descs.${change.removed} FILTER html %] [% resolution_descs.${change.removed} FILTER html %]
[% ELSIF change.fieldname == 'blocked' ||
change.fieldname == 'dependson' %]
[% change.removed FILTER bug_list_link FILTER none %]
[% ELSE %] [% ELSE %]
[% change.removed FILTER html %] [% change.removed FILTER html %]
[% END %] [% END %]
@ -102,6 +106,9 @@
[% status_descs.${change.added} FILTER html %] [% status_descs.${change.added} FILTER html %]
[% ELSIF change.fieldname == 'resolution' %] [% ELSIF change.fieldname == 'resolution' %]
[% resolution_descs.${change.added} FILTER html %] [% resolution_descs.${change.added} FILTER html %]
[% ELSIF change.fieldname == 'blocked' ||
change.fieldname == 'dependson' %]
[% change.added FILTER bug_list_link FILTER none %]
[% ELSE %] [% ELSE %]
[% change.added FILTER html %] [% change.added FILTER html %]
[% END %] [% END %]