summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard/template/en/default/pages/productdashboard/roadmap.html.tmpl
blob: fad1cafa55640500348d45d1ade295cf79c5fc79 (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
[%# 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">
<!--
var column_defs = [
    { key:"milestone", label:"Milestone", sortable:true },
    { key:"percentage complete", label:"Percentage Complete", sortable:false },
    { key:"links", label:"Links", sortable:false }, 
];
var fields = [
    { key:"milestone" },
    { key:"percentage complete" },
    { key:"links" }
];

addStatListener("bug_milestones", "bug_milestones_table", column_defs, fields, {});
-->
</script>

<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>