summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-07 06:03:56 +0200
committerByron Jones <glob@mozilla.com>2015-07-07 06:03:56 +0200
commit378c31c02cd5e83c77fcb31b388a172521697a58 (patch)
tree0bfe84548a81a5aa434cea25977bd0791b1b1cb7 /extensions/BugModal
parentb758be1d37cb49ced8cb17fca3d5a4cb2dd2e03e (diff)
downloadbugzilla-378c31c02cd5e83c77fcb31b388a172521697a58.tar.gz
bugzilla-378c31c02cd5e83c77fcb31b388a172521697a58.tar.xz
Bug 1180788: b.m.o modal UI "fixed in" label isn't quite right for B2G
Diffstat (limited to 'extensions/BugModal')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl16
1 files changed, 13 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 7a61057f8..0fd446988 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -85,7 +85,7 @@
# build firefox flags subtitle
firefox_flags = [];
- firefox_fixed_version = "";
+ firefox_fixed_versions = [];
tracking_flags_title = "Firefox Tracking Flags";
# project flags
FOREACH row IN tracking_flags_table;
@@ -106,8 +106,17 @@
END;
IF status_value != "---";
blurb = blurb _ " " _ status_value;
- IF firefox_fixed_version == "" && status_value == "fixed";
- firefox_fixed_version = row.name.ucfirst.replace('^(\D+)(\d)', '$1 $2');
+ IF status_value == "fixed";
+ flag_name = row.name;
+ IF flag_name.substr(0, 7) == "firefox";
+ IF firefox_fixed_versions.0 == "";
+ firefox_fixed_versions.0 = "Firefox " _ flag_name.substr(7);
+ END;
+ ELSIF flag_name.substr(0, 4) == "b2g-";
+ IF firefox_fixed_versions.1 == "";
+ firefox_fixed_versions.1 = "Firefox OS " _ flag_name.substr(4);
+ END;
+ END;
END;
END;
firefox_flags.push(blurb);
@@ -117,6 +126,7 @@
tracking_flags_title = "SeaMonkey Tracking Flags";
END;
END;
+ firefox_fixed_version = firefox_fixed_versions.join(", ");
IF firefox_flags.size;
firefox_flags_subtitle = firefox_flags.join(", ");
ELSE;