PageRenderTime 36ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/change_list_results.html

https://code.google.com/p/mango-py/
HTML | 43 lines | 30 code | 13 blank | 0 comment | 0 complexity | fde3c22065785e4922061c775dcd9ae0 MD5 | raw file
 1<%def name="change_list_results(cl, result_headers, results)" >
 2
 3% if results:
 4
 5<table cellspacing="0" id="results_list">
 6<thead>
 7<tr>
 8
 9% for header in result_headers:
10<th${header['class_attrib'] if 'class_attrib' in header else ''}>
11
12% if 'sortable' in header and header['sortable']:
13<a href="${header['url']}">
14% endif
15
16${header['text']|capfirst}
17
18% if 'sortable' in header and header['sortable']:
19</a>
20% endif
21</th>
22% endfor
23
24</tr>
25</thead>
26<tbody>
27
28% for num,result in enumerate(results):
29
30<tr class="${'row2' if num%2 else 'row1'}">
31% for item in result:
32${item}
33% endfor
34</tr>
35
36% endfor
37
38</tbody>
39</table>
40
41% endif
42
43</%def>