diff options
author | olav%bkor.dhs.org <> | 2006-12-12 01:51:47 +0100 |
---|---|---|
committer | olav%bkor.dhs.org <> | 2006-12-12 01:51:47 +0100 |
commit | 36540893adb1efd1a1fce5f2e115754f93442ca5 (patch) | |
tree | 7877d7789691af3bb1ef98178e7aead88a38f702 /template/en/default | |
parent | 769a7f2372c77d9175f6101ca42f214f12924f1d (diff) | |
download | bugzilla-36540893adb1efd1a1fce5f2e115754f93442ca5.tar.gz bugzilla-36540893adb1efd1a1fce5f2e115754f93442ca5.tar.xz |
Bug 181239: Do not show flag table's header when all flags are disabled
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index a896bd682..ed220bb69 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -257,33 +257,43 @@ <legend>People</legend> [% PROCESS section_people %] </fieldset> + [%# *** Flags *** %] - <fieldset> - <legend>Flags</legend> - <table cellspacing="1" cellpadding="1"> - <tr> - <td colspan="2" valign="top"> - [% IF user.id %] - [% IF bug.flag_types.size > 0 %] - [% PROCESS "flag/list.html.tmpl" flag_no_header = 1 - flag_types = bug.flag_types - any_flags_requesteeble = bug.any_flags_requesteeble %] - [% END %] - [% ELSE %] - [% FOREACH type = bug.flag_types %] - [% FOREACH flag = type.flags %] - [% flag.setter.nick FILTER html %]: - [%+ type.name FILTER html FILTER no_break %][% flag.status %] - [%+ IF flag.requestee %] - ([% flag.requestee.nick FILTER html %]) - [% END %]<br> + [% show_bug_flags = 0 %] + [% FOREACH type = bug.flag_types %] + [% IF (type.flags && type.flags.size > 0) || (user.id && type.is_active) %] + [% show_bug_flags = 1 %] + [% LAST %] + [% END %] + [% END %] + [% IF show_bug_flags %] + <fieldset> + <legend>Flags</legend> + <table cellspacing="1" cellpadding="1"> + <tr> + <td colspan="2" valign="top"> + [% IF user.id %] + [% IF bug.flag_types.size > 0 %] + [% PROCESS "flag/list.html.tmpl" flag_no_header = 1 + flag_types = bug.flag_types + any_flags_requesteeble = bug.any_flags_requesteeble %] + [% END %] + [% ELSE %] + [% FOREACH type = bug.flag_types %] + [% FOREACH flag = type.flags %] + [% flag.setter.nick FILTER html %]: + [%+ type.name FILTER html FILTER no_break %][% flag.status %] + [%+ IF flag.requestee %] + ([% flag.requestee.nick FILTER html %]) + [% END %]<br> + [% END %] [% END %] [% END %] - [% END %] - </td> - </tr> - </table> - </fieldset> + </td> + </tr> + </table> + </fieldset> + [% END %] </td> </tr> </table> |