File: row.tpl

package info (click to toggle)
haproxy 1.5.8-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 7,732 kB
  • sloc: ansic: 62,860; xml: 1,754; python: 925; makefile: 551; perl: 550; sh: 491
file content (35 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (3)
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
<% from urllib import quote %>
<tr>\
% for col in columns:
<% data = col['data'] %>\
<%
    if data in ['yes']:
        style = "class=\"alert-success pagination-centered\""
        data = 'yes<br /><img src="css/check.png" alt="yes" title="yes" />'
    elif data in ['no']:
        style = "class=\"alert-error pagination-centered\""
        data = 'no<br /><img src="css/cross.png" alt="no" title="no" />'
    elif data in ['X']:
        style = "class=\"pagination-centered\""
        data = '<img src="css/check.png" alt="X" title="yes" />'
    elif data in ['-']:
        style = "class=\"pagination-centered\""
        data = '&nbsp;'
    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>