summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-27 15:47:45 +0200
committerDylan William Hardison <dylan@hardison.net>2017-03-27 15:47:45 +0200
commit6de88ace5172e926b0aa2479c6368a20c3843226 (patch)
tree1a37c3b53488fe621f55b7233f6c726a596b7c37 /extensions/BugModal/template
parent0abf244f409fd91120d35beb65ee4f3a03139a44 (diff)
downloadbugzilla-6de88ace5172e926b0aa2479c6368a20c3843226.tar.gz
bugzilla-6de88ace5172e926b0aa2479c6368a20c3843226.tar.xz
Bug 1350096 - Once you've set a single Thunderbird tracking flag, the "Firefox Tracking Flags" section changes name to "Thunderbird Tracking Flags"
Diffstat (limited to 'extensions/BugModal/template')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl12
1 files changed, 10 insertions, 2 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 a5508a83c..5ece78805 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -96,6 +96,7 @@
# build firefox flags subtitle
firefox_flags = [];
firefox_fixed_versions = [];
+ scores = {firefox => 0, thunderbird => 0, seamonkey => 0};
tracking_flags_title = "Firefox Tracking Flags";
# project flags
FOREACH row IN tracking_flags_table;
@@ -131,11 +132,18 @@
END;
firefox_flags.push(blurb);
IF row.name.search("^thunderbird");
- tracking_flags_title = "Thunderbird Tracking Flags";
+ scores.thunderbird = scores.thunderbird + 1;
ELSIF row.name.search("^seamonkey");
- tracking_flags_title = "SeaMonkey Tracking Flags";
+ scores.seamonkey = scores.seamonkey + 1;
+ ELSE;
+ scores.firefox = scores.firefox + 1;
END;
END;
+ IF scores.thunderbird AND NOT scores.firefox;
+ tracking_flags_title = "Thunderbird Tracking Flags";
+ ELSIF scores.seamonkey AND NOT scores.firefox;
+ tracking_flags_title = "SeaMonkey Tracking Flags";
+ END;
firefox_fixed_version = firefox_fixed_versions.join(", ");
IF firefox_flags.size;
firefox_flags_subtitle = firefox_flags.join(", ");