summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-11 15:46:45 +0200
committerByron Jones <glob@mozilla.com>2015-05-11 15:46:45 +0200
commit1ad9a822d2aef528dd41605e4f36c044ce083d50 (patch)
tree44b2518d145b0f8f64caf57d4615a7e1ffe4a0d1 /extensions/ProductDashboard/template
parentf7515b34de496db83c3be9a8ff607b1e1fa9ca03 (diff)
downloadbugzilla-1ad9a822d2aef528dd41605e4f36c044ce083d50.tar.gz
bugzilla-1ad9a822d2aef528dd41605e4f36c044ce083d50.tar.xz
Bug 1163575: Intermittent error prevents ProductDashboard from working
Diffstat (limited to 'extensions/ProductDashboard/template')
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl25
1 files changed, 12 insertions, 13 deletions
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
index c8d3111fa..3a01f879f 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl
@@ -30,17 +30,7 @@
[% javascript_urls.push("extensions/ProductDashboard/web/js/roadmap.js") %]
[% END %]
-[% filtered_product = product.name FILTER html %]
-[% PROCESS global/header.html.tmpl
- title = "Product Dashboard: $filtered_product"
- generate_api_token = 1
- style_urls = [ "skins/standard/buglist.css",
- "js/yui/assets/skins/sam/paginator.css",
- "extensions/ProductDashboard/web/styles/productdashboard.css" ]
-%]
-
-<script type="text/javascript">
-<!--
+[% js = BLOCK %]
PD = {};
[%# Set up severities list for proper sorting %]
PD.severities = new Array();
@@ -49,8 +39,17 @@
PD.severities['[% s FILTER js %]'] = [% sort_count FILTER js %];
[% sort_count = sort_count + 1 %]
[% END %]
--->
-</script>
+[% END %]
+
+[% filtered_product = product.name FILTER html %]
+[% PROCESS global/header.html.tmpl
+ title = "Product Dashboard: $filtered_product"
+ generate_api_token = 1
+ javascript = js
+ style_urls = [ "skins/standard/buglist.css",
+ "js/yui/assets/skins/sam/paginator.css",
+ "extensions/ProductDashboard/web/styles/productdashboard.css" ]
+%]
[% url_filtered_product = product.name FILTER uri %]
[% url_filtered_status = bug_status FILTER uri %]