Debian Codegraph @

nfsometerlib/html/table.html

raw
1 <%doc>
2 Copyright 2012 NetApp, Inc. All Rights Reserved,
3 contribution by Weston Andros Adamson <[email protected]>
4
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; either version 2 of the License, or (at your option) any later
8 version.
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 </%doc>
13
14 <div class="dataset_table">
15 <table class="${table.classes()}">
16
17 % if len(table.keys) > 1 and not table.noheader:
18 <tr>
19 % if not table.nolabels:
20 <th></th>
21 % endif
22
23 % for k in table.keys:
24 <th class="label">${table.formatted_keys[k]}</th>
25 % endfor
26 </tr>
27 % endif
28
29 % for g in table.groups:
30 <tr>
31 % if not table.nolabels:
32 <td class="label">
33 ${table.formatted_groups[g]}
34 </td>
35 % endif
36
37 % for k in table.keys:
38 ${table.formatted_cells[(g, k)]}
39 % endfor
40
41 </tr>
42 % endfor
43 </table>
44 </div>