summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-01-26 01:25:38 +0100
committerDavid Lawrence <dkl@mozilla.com>2017-01-26 01:25:38 +0100
commit3c1d21ede18e5cc55c4c094a1c5db8bf5e85e1ef (patch)
treee5717b6f8f962f081c17423f4637d41caf1fdf1e /extensions
parent6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5 (diff)
downloadbugzilla-3c1d21ede18e5cc55c4c094a1c5db8bf5e85e1ef.tar.gz
bugzilla-3c1d21ede18e5cc55c4c094a1c5db8bf5e85e1ef.tar.xz
Bug 1333525 - Blocking type tracking flags are not visible from the modal UI
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl28
1 files changed, 25 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
index acdd55ee2..d81fb9e92 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -64,11 +64,13 @@
LAST;
END;
- # count set project/tracking flags
+ # count set project/tracking/blocking flags
tracking_flags_has = 0;
tracking_flags_set = 0;
project_flags_has = 0;
project_flags_set = 0;
+ blocking_flags_has = 0;
+ blocking_flags_set = 0;
FOREACH flag IN tracking_flags;
is_set = flag.bug_flag(bug.id).value != "---";
IF flag.flag_type == "tracking";
@@ -83,6 +85,12 @@
project_flags_set = 1;
END;
END;
+ IF flag.flag_type == 'blocking';
+ blocking_flags_has = 1;
+ IF is_set;
+ blocking_flags_set = 1;
+ END;
+ END;
END;
# build firefox flags subtitle
@@ -704,7 +712,8 @@
&& bug.target_milestone == "---"
&& !has_bug_flags
&& !project_flags_set
- && !tracking_flags_set;
+ && !tracking_flags_set
+ && !blocking_flags_set;
sub = [];
open_deps = bug.depends_on_obj.only("resolution", "").size;
IF open_deps;
@@ -893,7 +902,7 @@
%]
[% WRAPPER fields_lhs %]
- [% UNLESS tracking_flags_set || project_flags_set %]
+ [% UNLESS tracking_flags_set || project_flags_set || blocking_flags_set %]
<p class="edit-hide">
This [% terms.bug %] is not currently tracked.
</p>
@@ -915,6 +924,19 @@
[% END %]
[% WRAPPER fields_rhs %]
+ [% IF blocking_flags_has %]
+ [%# blocking flags %]
+ [% WRAPPER bug_modal/field.html.tmpl
+ container = 1
+ label = "Blocking Flags"
+ hide_on_view = !blocking_flags_set
+ %]
+ [% INCLUDE bug_modal/tracking_flags.html.tmpl
+ type = "blocking"
+ %]
+ [% END %]
+ [% END %]
+
[% IF project_flags_has %]
[%# project flags %]
[% WRAPPER bug_modal/field.html.tmpl