summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
blob: 1597b7a36d7b566bd84f4df21b700cb45ff8c63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

<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 }) });
-->
</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>