From 85fa6fb9eef5a063ca84ebe1ca47b16be6c44ccc Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 16 Aug 2012 17:03:11 -0400 Subject: Dashboard improvements --- .../en/default/pages/productdashboard.html.tmpl | 19 ++++++++++--------- .../pages/productdashboard/components.html.tmpl | 8 +++++--- .../pages/productdashboard/duplicates.html.tmpl | 8 +++++--- .../pages/productdashboard/popularity.html.tmpl | 6 ++++-- .../default/pages/productdashboard/recents.html.tmpl | 4 +++- .../default/pages/productdashboard/roadmap.html.tmpl | 2 ++ .../default/pages/productdashboard/summary.html.tmpl | 2 ++ 7 files changed, 31 insertions(+), 18 deletions(-) (limited to 'extensions') diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl index a8096e391..daf0ea6df 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl @@ -55,11 +55,6 @@ label => "Duplicates", link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=duplicates" }, - { - name => "popularity", - label => "Popularity", - link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=popularity" - }, { name => "roadmap", label => "Road Map", @@ -68,6 +63,16 @@ ] %] +[% IF product.votesperuser %] + [% + tabs.push({ + name => "popularity", + label => "Popularity", + link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=popularity" + }) + %] +[% END %] + [% FOREACH tab IN tabs %] [% IF tab.name == current_tab_name %] [% current_tab = tab %] @@ -152,10 +157,6 @@ current_tab = current_tab %] -
- [% current_tab.label FILTER html %] -
- [% IF current_tab.name == 'summary' %] [% PROCESS pages/productdashboard/summary.html.tmpl %] [% END %] 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 0f51f9de2..0b8bd34c7 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl @@ -116,8 +116,6 @@ [% ELSE %] - [% summary_url = "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=components" %] - + [% summary_url = "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=components" %] + +

[% terms.Bug %] counts per component, version and milestone.

+

Component | Version | Milestone

-

Click on value to show additional information

+

Click on a value to show a list of most recently updated bugs.

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 fc3403bc4..07d93da26 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl @@ -37,7 +37,9 @@ PD.addStatListener("duplicate_counts", "duplicate_counts_table", PD.column_defs, }); --> - + +

Most duplicated [% terms.bugs %]

+ [% IF by_duplicate.size %] [% by_duplicate.size FILTER html %] [% terms.Bugs %] Found
@@ -47,7 +49,7 @@ PD.addStatListener("duplicate_counts", "duplicate_counts_table", PD.column_defs, [% FOREACH column = [ "ID", "Dupe Count", "Status", "Version" "Component", "Severity" "Summary" ] %] - + [% column FILTER html %] [% END %] @@ -71,5 +73,5 @@ PD.addStatListener("duplicate_counts", "duplicate_counts_table", PD.column_defs,
[% ELSE %] -

No duplicate [% terms.bugs %] found.

+ No duplicate [% terms.bugs %] found. [% END %] 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 b6b159155..ad0f8eca4 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl @@ -36,7 +36,9 @@ PD.fields = [ PD.addStatListener("popularity_counts", "popularity_counts_table", PD.column_defs, PD.fields, PD.options); --> - + +

Most voted on [% terms.bugs %]

+ [% IF by_popularity.size %] [% by_popularity.size FILTER html %] [% terms.Bugs %] Found
@@ -70,5 +72,5 @@ PD.addStatListener("popularity_counts", "popularity_counts_table", PD.column_def
[% ELSE %] -

No [% terms.bugs %] found.

+ No [% terms.bugs %] found. [% END %] 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 470adef74..c08e298c8 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl @@ -35,7 +35,9 @@ PD.addStatListener("recently_opened", "recently_opened_table", PD.column_defs, P PD.addStatListener("recently_closed", "recently_closed_table", PD.column_defs, PD.fields, PD.options); --> - + +

Most recently opened and closed [% terms.bugs %]

+

Activity within the last 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 26edb03af..565a8b996 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl @@ -25,6 +25,8 @@ PD.addStatListener("bug_milestones", "bug_milestones_table", PD.column_defs, PD. --> +

Percentage of [% terms.bug %] closure per milestone

+
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 6d85b0175..a907d3e5b 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl @@ -29,6 +29,8 @@ PD.addStatListener("assignee_counts", "assignee_counts_table", PD.column_defs, P --> +

Summary of [% terms.bug %] counts

+

Counts | -- cgit v1.2.3-24-g4f1b