summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-01-03 23:24:56 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-01-03 23:24:56 +0100
commite3b051b686c16ead5f8b63206940b885532e1c95 (patch)
tree1bb8f6bb49c872528f1d5dc53334a66c426db088 /extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
parenta29bc8846fac5d7bcbe37ed306eb612bfc74acee (diff)
downloadbugzilla-e3b051b686c16ead5f8b63206940b885532e1c95.tar.gz
bugzilla-e3b051b686c16ead5f8b63206940b885532e1c95.tar.xz
More ProductDashboard work
Diffstat (limited to 'extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl')
-rw-r--r--extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl52
1 files changed, 11 insertions, 41 deletions
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 1597b7a36..48f96499d 100644
--- a/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
+++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
@@ -8,50 +8,20 @@
<script type="text/javascript">
<!--
-PD.column_defs = [
- { key:"milestone", label:"Milestone", sortable:true },
- { key:"percentage complete", label:"Percentage Complete", sortable:false },
- { key:"links", label:"Links", sortable:false },
-];
-PD.fields = [
- { key:"milestone" },
- { key:"percentage complete" },
- { key:"links" }
-];
-PD.addStatListener("bug_milestones", "bug_milestones_table",
- PD.column_defs, PD.fields,
- { paginator: new YAHOO.widget.Paginator({ rowsPerPage: 25, alwaysVisible: false }) });
+ PD.roadmap = [
+ [% FOREACH milestone = by_roadmap %]
+ {
+ name: '[% milestone.name FILTER js %]',
+ percentage: '[% milestone.percentage FILTER js %]',
+ link: '<a href="[% milestone.link_closed FILTER html %]">[% milestone.closed_bugs FILTER html %]</a> of <a href="[% milestone.link_total FILTER html %]"> [% milestone.total_bugs FILTER html %]</a> bugs have been closed',
+ },
+ [% END %]
+ ];
-->
</script>
<h3>Percentage of [% terms.bug %] closure per milestone</h3>
-<div class="yui-skin-sam">
-<div id="bug_milestones">
- <table id="bug_milestones_table" border="0" cellspacing="3" cellpadding="0">
- <thead>
- <tr>
- <th>Milestone</th>
- <th>Percentage Complete</th>
- <th>Links</th>
- </tr>
- </thead>
- <tbody>
- [% FOREACH milestone = by_roadmap %]
- <tr>
- <td>[% milestone.name FILTER html %]</td>
- <td width="70%">
- [% INCLUDE bar_graph count = milestone.closed_bugs full_bug_count = milestone.total_bugs %]
- </td>
- <td>
- <a href="[% milestone.link_closed FILTER html %]">
- [% milestone.closed_bugs FILTER html %]</a>&nbsp;of&nbsp;
- <a href="[% milestone.link_total FILTER html %]">
- [% milestone.total_bugs FILTER html %]</a>&nbsp;bugs have been closed
- </td>
- </tr>
- [% END %]
- </tbody>
- </table>
- </div>
+<div class="yui3-skin-sam">
+ <div id="bug_milestones"></div>
</div>