Commit 36540893 authored by olav%bkor.dhs.org's avatar olav%bkor.dhs.org

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
parent 769a7f23
...@@ -257,7 +257,16 @@ ...@@ -257,7 +257,16 @@
<legend>People</legend> <legend>People</legend>
[% PROCESS section_people %] [% PROCESS section_people %]
</fieldset> </fieldset>
[%# *** Flags *** %] [%# *** Flags *** %]
[% 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> <fieldset>
<legend>Flags</legend> <legend>Flags</legend>
<table cellspacing="1" cellpadding="1"> <table cellspacing="1" cellpadding="1">
...@@ -284,6 +293,7 @@ ...@@ -284,6 +293,7 @@
</tr> </tr>
</table> </table>
</fieldset> </fieldset>
[% END %]
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment