diff options
author | mkanat%bugzilla.org <> | 2009-04-18 00:27:38 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-04-18 00:27:38 +0200 |
commit | 14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12 (patch) | |
tree | 9b6002f391a0bba98262272367ddd567793d1576 /template/en/default/bug | |
parent | 27d919b36377e25b74a5c46e8c5eec218c58be39 (diff) | |
download | bugzilla-14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12.tar.gz bugzilla-14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12.tar.xz |
Bug 482584: Add a parameter to hide the "See Also" field
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=dkl, a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 16 | ||||
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 20 |
2 files changed, 21 insertions, 15 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index c59771eab..de89f1b8e 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -908,13 +908,15 @@ [%# Block for See Also #%] [%############################################################################%] [% BLOCK section_see_also %] - <tr> - [% INCLUDE bug/field.html.tmpl - field = bug_fields.see_also - value = bug.see_also - editable = bug.check_can_change_field('see_also', 0, 1) - %] - </tr> + [% IF Param('use_see_also') || bug.see_also.size %] + <tr> + [% INCLUDE bug/field.html.tmpl + field = bug_fields.see_also + value = bug.see_also + editable = bug.check_can_change_field('see_also', 0, 1) + %] + </tr> + [% END %] [% END %] [%############################################################################%] diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index bdfdd099e..7a514e888 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -174,18 +174,22 @@ [% FOREACH url = value %] <li> <a href="[% url FILTER html %]">[% url FILTER html %]</a> - <label><input type="checkbox" value="[% url FILTER html %]" - name="remove_[% field.name FILTER html %]"> - Remove</label> + [% IF editable %] + <label><input type="checkbox" value="[% url FILTER html %]" + name="remove_[% field.name FILTER html %]"> + Remove</label> + [% END %] </li> [% END %] [% '</ul>' IF value.size %] - <label for="[% field.name FILTER html %]"> - <strong>Add [% terms.Bug %] URLs:</strong> - </label><br> - <input type="text" id="[% field.name FILTER html %]" - class="text_input" name="[% field.name FILTER html %]" size="40"> + [% IF editable && Param('use_see_also') %] + <label for="[% field.name FILTER html %]"> + <strong>Add [% terms.Bug %] URLs:</strong> + </label><br> + <input type="text" id="[% field.name FILTER html %]" size="40" + class="text_input" name="[% field.name FILTER html %]"> + [% END %] [% END %] [% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %] <div class="uneditable_textarea">[% value FILTER wrap_comment(60) |