diff options
Diffstat (limited to 'template/en/default/bug/field.html.tmpl')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 04443579e..3ae7302c6 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -30,6 +30,10 @@ # the field value. # no_tds: boolean; if true, don't display the label <th> or the # wrapping <td> for the field. + # desc_url: string; Normally the label of a non-custom field links to + # fields.html. If you want it to link elsewhere, specify the + # relative URL you want to link to, here. Remember to call + # url_quote on any query string arguments. # bug (optional): The current Bugzilla::Bug being displayed, or a hash # with default field values being displayed on a page. #%] @@ -49,13 +53,13 @@ [% IF editable %] <label for="[% field.name FILTER html %]"> [% END %] - [% IF !field.custom %] + [% IF desc_url %] + <a href="[% desc_url FILTER html %]"> + [% ELSIF !field.custom %] <a href="page.cgi?id=fields.html#[% field.name FILTER url_quote %]"> [% END -%] [% field_descs.${field.name} FILTER html %]: - [%- IF !field.custom %] - </a> - [% END %] + [%- '</a>' IF (!field.custom || desc_url) %] [% '</label>' IF editable %] </th> [% END %] |