[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# # type: tracking flag type (eg. "project", "tracking") #%] [% flags = []; set_flags = []; FOREACH flag IN tracking_flags; NEXT UNLESS flag.flag_type == type; flags.push(flag); NEXT IF flag.bug_flag(bug.id).value == "---"; set_flags.push(flag); END; RETURN UNLESS flags.size; %] [%# view %] [% IF set_flags.size %]
[% IF type == "tracking" %] [% END %] [% FOREACH row IN tracking_flags_table %] [% NEXT UNLESS row.type == type; tracking_value = row.tracking.bug_flag(bug_id).value || "---"; status_value = row.status.bug_flag(bug_id).value || "---"; NEXT IF tracking_value == "---" && status_value == "---"; %] [% IF type == "tracking" %] [% END %] [% END %]
Tracking Status
[% row.name FILTER html %][% tracking_value FILTER html %][% status_value FILTER html %]
[% END %] [%# edit %] [% BLOCK tf_select %] [% RETURN UNLESS flag %] [% END %]