From e3b051b686c16ead5f8b63206940b885532e1c95 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 3 Jan 2013 17:24:56 -0500 Subject: More ProductDashboard work --- .../pages/productdashboard/components.html.tmpl | 354 +++++++-------------- .../pages/productdashboard/duplicates.html.tmpl | 71 +---- .../pages/productdashboard/popularity.html.tmpl | 67 +--- .../pages/productdashboard/recents.html.tmpl | 112 ++----- .../pages/productdashboard/roadmap.html.tmpl | 52 +-- .../pages/productdashboard/summary.html.tmpl | 253 +++++---------- 6 files changed, 269 insertions(+), 640 deletions(-) (limited to 'extensions/ProductDashboard/template/en/default/pages/productdashboard') 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 0d2ac5e6f..8f3703770 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/components.html.tmpl @@ -8,259 +8,139 @@ [% IF summary.keys %] -

Summary for [% summary.type FILTER html %]: [% summary.value FILTER html %]

+

Summary for [% summary.type FILTER html %]: [% summary.value FILTER html %]

- - - - [% IF user.is_timetracker %] -

- Past Due | - Updated Recently -

+ // Bugs updated recently + PD.updated_recently = [ + [% FOREACH bug = summary.updated_recently %] + { + id: '[% bug.id FILTER js %]', + bug_status: '[% bug.status FILTER js %]', + version: '[% bug.version FILTER js %]', + component: '[% bug.component FILTER js %]', + severity: '[% bug.severity FILTER js %]', + summary: '[% bug.summary FILTER js %]' + }, [% END %] + ]; +--> + + +[% IF user.is_timetracker %] +

+ Past Due | + Updated Recently +

+[% END %] -
+
- [% IF user.is_timetracker %] - - [% summary.past_due.size FILTER html %] Past Due [% terms.Bugs %] (deadline is before today's date) - (full list) -
- - - - [% FOREACH column = [ "ID", "Status", "Version", "Component", "Severity" "Summary" ] %] - - [% END %] - - - - [% FOREACH bug = summary.past_due %] - [% count = loop.count() %] - - - - - - - - - [% END %] - -
[% column FILTER html %]
- [% bug.id FILTER html %][% bug.status FILTER html %][% bug.version FILTER html %][% bug.component FILTER html %][% bug.severity FILTER html %][% bug.summary FILTER html %]
-
-
- [% END %] + [% IF user.is_timetracker %] + + [% summary.past_due.size FILTER html %] Past Due [% terms.Bugs %] (deadline is before today's date) + (full list) +
+
+ [% END %] - - [% summary.updated_recently.size FILTER html %] Most Recently Updated [% terms.Bugs %] - [% IF user.is_timetracker %](back to top)[% END %] - (full list) -
- - - - [% FOREACH column = [ "ID", "Status", "Version", "Component", "Severity" "Summary" ] %] - - [% END %] - - - - [% FOREACH bug = summary.updated_recently %] - [% count = loop.count() %] - - - - - - - - - [% END %] - -
[% column FILTER html %]
- [% bug.id FILTER html %][% bug.status FILTER html %][% bug.version FILTER html %][% bug.component FILTER html %][% bug.severity FILTER html %][% bug.summary FILTER html %]
-
-
+ + [% summary.updated_recently.size FILTER html %] Most Recently Updated [% terms.Bugs %] + [% IF user.is_timetracker %](back to top)[% END %] + (full list) +
+
[% ELSE %] - - - [% 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 a value to show a list of most recently updated [% terms.bugs %].

+ // Version counts + PD.version_counts = [ + [% FOREACH col = by_version %] + { + name: "[% col.0 FILTER js %]", + count: [% col.1 || 0 FILTER js %], + percentage: [% col.2 || 0 FILTER js %], + link: 'Link' + }, + [% END %] + ]; -
- - Component -
- - - - - - - - - - - [% FOREACH col = by_component %] - - - - - - + [% IF Param('usetargetmilestone') %] + // Milestone counts + PD.milestone_counts = [ + [% FOREACH col = by_milestone %] + { + name: "[% col.0 FILTER js %]", + count: [% col.1 || 0 FILTER js %], + percentage: [% col.2 || 0 FILTER js %], + link: 'Link' + }, [% END %] - -
NameCountPercentage[% terms.Bug %] List
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] - - View -
-
+ ]; + [% END %] +--> + + +

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

+ +

+ Component | + Version | + Milestone +

+ +

Click on a value to show a list of most recently updated [% terms.bugs %].

+ +
+ + Component +
+
+ + Version + (back to top) +
+ [% IF Param('usetargetmilestone') %]
- - Version + + Milestone (back to top) -
- - - - - - - - - - - [% FOREACH col = by_version %] - - - - - - - [% END %] - -
NameCountPercentage[% terms.Bug %] List
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] - - View -
-
- - [% IF Param('usetargetmilestone') %] -
- - Milestone - (back to top) -
- - - - - - - - - - - [% FOREACH col = by_milestone %] - - - - - - - [% END %] - -
NameCountPercentage[% terms.Bug %] List
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] - - View -
-
- [% END %] -
+
+ [% END %] +
[% END %] 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 bf1cdaeb1..585cdc829 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/duplicates.html.tmpl @@ -6,69 +6,28 @@ # defined by the Mozilla Public License, v. 2.0. #%] - -

Most duplicated [% terms.bugs %]

[% IF by_duplicate.size %] [% by_duplicate.size FILTER html %] [% terms.Bugs %] Found -
-
- - - - [% FOREACH column = [ "ID", "Dupe Count", "Status", "Version" - "Component", "Severity" "Summary" ] %] - - - [% END %] - - - - [% FOREACH bug = by_duplicate %] - [% count = loop.count() %] - - - - - - - - - - [% END %] - -
[% column FILTER html %]
- [% bug.id FILTER html %][% bug.dupe_count FILTER html %][% bug.status FILTER html %][% bug.version FILTER html %][% bug.component FILTER html %][% bug.severity FILTER html %][% bug.summary FILTER html %]
-
+
+
[% ELSE %] No duplicate [% terms.bugs %] found. 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 5ecad3426..933f26c81 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/popularity.html.tmpl @@ -11,64 +11,27 @@

Most voted on [% terms.bugs %]

[% IF by_popularity.size %] [% by_popularity.size FILTER html %] [% terms.Bugs %] Found -
-
- - - - [% FOREACH column = [ "ID", "Count", "Status", "Version" - "Component", "Severity" "Summary" ] %] - - - [% END %] - - - - [% FOREACH bug = by_popularity %] - [% count = loop.count() %] - - - - - - - - - - [% END %] - -
[% column FILTER html %]
- [% bug.id FILTER html %][% bug.votes FILTER html %][% bug.status FILTER html %][% bug.version FILTER html %][% bug.component FILTER html %][% bug.severity FILTER html %][% bug.summary FILTER html %]
-
+
+
[% ELSE %] No [% terms.bugs %] found. 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 919a7da97..18227aec2 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/recents.html.tmpl @@ -6,36 +6,36 @@ # defined by the Mozilla Public License, v. 2.0. #%] - -

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

@@ -50,7 +50,7 @@ PD.addStatListener("recently_closed", "recently_closed_table", to @@ -60,7 +60,7 @@ PD.addStatListener("recently_closed", "recently_closed_table",

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

-
-
- - - - - - - - - - [% FOREACH milestone = by_roadmap %] - - - - - - [% END %] - -
MilestonePercentage CompleteLinks
[% milestone.name FILTER html %] - [% INCLUDE bar_graph count = milestone.closed_bugs full_bug_count = milestone.total_bugs %] - - - [% milestone.closed_bugs FILTER html %] of  - - [% milestone.total_bugs FILTER html %] bugs have been closed -
-
+
+
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 a7398c823..e454ee8e8 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/summary.html.tmpl @@ -6,34 +6,79 @@ # defined by the Mozilla Public License, v. 2.0. #%] -

Summary of [% terms.bug %] counts

@@ -50,168 +95,28 @@ PD.addStatListener("assignee_counts", "assignee_counts_table", Assignee

-
+
[% terms.Bug %] Counts -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NameCountPercentage
Total [% terms.Bugs %][% total_bugs FILTER html %] 
Open [% terms.Bugs %][% total_open_bugs FILTER html %] - [% INCLUDE bar_graph count = total_open_bugs full_bug_count = total_bugs %] -
Closed [% terms.Bugs %][% total_closed_bugs FILTER html %] - [% INCLUDE bar_graph count = total_closed_bugs full_bug_count = total_bugs %] -
-
+

Status (back to top) -
- - - - - - - - - - [% FOREACH col = by_status %] - [% NEXT IF col.0 == 'CLOSED' %] - - - - - - [% END %] - -
NameCountPercentage
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] -
-
+

Priority (back to top) -
- - - - - - - - - - [% FOREACH col = by_priority %] - - - - - - [% END %] - -
NameCountPercentage
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] -
-
+

Severity (back to top) -
- - - - - - - - - - [% FOREACH col = by_severity %] - - - - - - [% END %] - -
NameCountPercentage
- - [% col.0 FILTER html %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] -
-
+

Assignee (back to top) -
- - - - - - - - - - [% FOREACH col = by_assignee %] - - - - - - [% END %] - -
NameCountPercentage
- [% IF user.id %] - - [% col.0.email FILTER html %] - [% ELSE %] - [% col.0.realname || "No Name" FILTER html %] - [% END %] - - [% col.1 FILTER html %] - - [% INCLUDE bar_graph count = col.1 %] -
-
+
-- cgit v1.2.3-24-g4f1b