blob: e4f2befc46d0832f90f6ac7c6a5cafe162945927 (
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
|
<% from urllib.parse import quote %>
<% base = pctxt.context['base'] %>
<tr>\
% for col in columns:
<% data = col['data'] %>\
<%
if data in ['yes']:
style = "class=\"alert-success pagination-centered\""
data = 'yes<br /><img src="%scss/check.png" alt="yes" title="yes" />' % base
elif data in ['no']:
style = "class=\"alert-error pagination-centered\""
data = 'no<br /><img src="%scss/cross.png" alt="no" title="no" />' % base
elif data in ['X']:
style = "class=\"pagination-centered\""
data = '<img src="%scss/check.png" alt="X" title="yes" />' % base
elif data in ['-']:
style = "class=\"pagination-centered\""
data = ' '
elif data in ['*']:
style = "class=\"pagination-centered\""
else:
style = None
%>\
<td ${style}>\
% if "keyword" in col:
<a href="#${quote("%s-%s" % (col['toplevel'], col['keyword']))}">\
% for extra in col['extra']:
<span class="pull-right">${extra}</span>\
% endfor
${data}</a>\
% else:
${data}\
% endif
</td>\
% endfor
</tr>
|