[%# 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" %]
Tracking
Status
[% 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 == "---";
%]
[% row.name FILTER html %]
[% IF type == "tracking" %]
[% tracking_value FILTER html %]
[% END %]
[% status_value FILTER html %]
[% END %]
[% END %]
[%# edit %]
[% IF type == "tracking" %]
Tracking
Status
[% END %]
[% FOREACH row IN tracking_flags_table %]
[% NEXT UNLESS row.type == type %]
[% row.name FILTER html %]
[% IF type == "tracking" %]
[% INCLUDE tf_select flag=row.tracking %]
[% END %]
[% INCLUDE tf_select flag=row.status %]
[% END %]
[% BLOCK tf_select %]
[% RETURN UNLESS flag %]
[% END %]