summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template/en/default/pages
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-17 00:40:48 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-17 00:40:48 +0200
commitba8c5fd18435d986cc0ac3c44fcc9799b76e8b64 (patch)
tree8eb3b66289c3b898a5acf4ab9fd7ed3180d931d0 /extensions/ProductDashboard/template/en/default/pages
parent328096fd79dae7bfa690323d3e7459897679bd22 (diff)
downloadbugzilla-ba8c5fd18435d986cc0ac3c44fcc9799b76e8b64.tar.gz
bugzilla-ba8c5fd18435d986cc0ac3c44fcc9799b76e8b64.tar.xz
More dashboard tweaks/fixes
Diffstat (limited to 'extensions/ProductDashboard/template/en/default/pages')
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl15
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl8
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl7
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl12
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl7
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl23
6 files changed, 40 insertions, 32 deletions
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl
index 0b8bd34c7..7cf60c245 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl
@@ -118,9 +118,6 @@
<script type="text/javascript">
<!--
- PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
- };
PD.column_defs = [
{ key:"name", label:"Name", sortable:true },
{ key:"count", label:"Count", sortable:true },
@@ -133,9 +130,15 @@
{ key:"percentage" },
{ key:"bug_list" }
];
- PD.addStatListener("component_counts", "component_counts_table", PD.column_defs, PD.fields, PD.options);
- PD.addStatListener("version_counts", "version_counts_table", PD.column_defs, PD.fields, PD.options);
- PD.addStatListener("milestone_counts", "milestone_counts_table", PD.column_defs, PD.fields, PD.options);
+ PD.addStatListener("component_counts", "component_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+ PD.addStatListener("version_counts", "version_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+ PD.addStatListener("milestone_counts", "milestone_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
index 07d93da26..bf1cdaeb1 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl
@@ -12,9 +12,6 @@
<script type="text/javascript">
<!--
-PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
-};
PD.column_defs = [
{ key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction: PD.sortBugIdLinks } },
{ key:"count", label:"Count", sortable:true },
@@ -33,8 +30,9 @@ PD.fields = [
{ key:"bug_severity" },
{ key:"Summary" }
];
-PD.addStatListener("duplicate_counts", "duplicate_counts_table", PD.column_defs, PD.fields, PD.options);
-});
+PD.addStatListener("duplicate_counts", "duplicate_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl
index ad0f8eca4..5ecad3426 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl
@@ -12,9 +12,6 @@
<script type="text/javascript">
<!--
-PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
-};
PD.column_defs = [
{ key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction: PD.sortBugIdLinks } },
{ key:"count", label:"Count", sortable:true },
@@ -33,7 +30,9 @@ PD.fields = [
{ key:"bug_severity" },
{ key:"Summary" }
];
-PD.addStatListener("popularity_counts", "popularity_counts_table", PD.column_defs, PD.fields, PD.options);
+PD.addStatListener("popularity_counts", "popularity_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl
index c08e298c8..919a7da97 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl
@@ -12,9 +12,6 @@
<script type="text/javascript">
<!--
-PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
-};
PD.column_defs = [
{ key:"id", label:"ID", sortable:true, sortOptions:{ sortFunction: PD.sortBugIdLinks } },
{ key:"bug_status", label:"Status", sortable:true },
@@ -31,8 +28,13 @@ PD.fields = [
{ key:"bug_severity" },
{ key:"Summary" }
];
-PD.addStatListener("recently_opened", "recently_opened_table", PD.column_defs, PD.fields, PD.options);
-PD.addStatListener("recently_closed", "recently_closed_table", PD.column_defs, PD.fields, PD.options);
+PD.addStatListener("recently_opened", "recently_opened_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+
+PD.addStatListener("recently_closed", "recently_closed_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
index 565a8b996..1597b7a36 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
@@ -8,9 +8,6 @@
<script type="text/javascript">
<!--
-PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
-};
PD.column_defs = [
{ key:"milestone", label:"Milestone", sortable:true },
{ key:"percentage complete", label:"Percentage Complete", sortable:false },
@@ -21,7 +18,9 @@ PD.fields = [
{ key:"percentage complete" },
{ key:"links" }
];
-PD.addStatListener("bug_milestones", "bug_milestones_table", PD.column_defs, PD.fields, PD.options);
+PD.addStatListener("bug_milestones", "bug_milestones_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>
diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl
index a907d3e5b..a7398c823 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl
@@ -8,9 +8,6 @@
<script type="text/javascript">
<!--
-PD.options = {
- paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false })
-};
PD.column_defs = [
{ key:"name", label:"Name", sortable:true },
{ key:"count", label:"Count", sortable:true },
@@ -21,11 +18,21 @@ PD.fields = [
{ key:"count", parser:"number" },
{ key:"percentage" }
];
-PD.addStatListener("bug_counts", "bug_counts_table", PD.column_defs, PD.fields, PD.options);
-PD.addStatListener("status_counts", "status_counts_table", PD.column_defs, PD.fields, PD.options);
-PD.addStatListener("priority_counts", "priority_counts_table", PD.column_defs, PD.fields, PD.options);
-PD.addStatListener("severity_counts", "severity_counts_table", PD.column_defs, PD.fields, PD.options);
-PD.addStatListener("assignee_counts", "assignee_counts_table", PD.column_defs, PD.fields, PD.options);
+PD.addStatListener("bug_counts", "bug_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+PD.addStatListener("status_counts", "status_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+PD.addStatListener("priority_counts", "priority_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+PD.addStatListener("severity_counts", "severity_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+PD.addStatListener("assignee_counts", "assignee_counts_table",
+ PD.column_defs, PD.fields,
+ { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
-->
</script>