-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathflexlm.mako
More file actions
51 lines (45 loc) · 1.04 KB
/
flexlm.mako
File metadata and controls
51 lines (45 loc) · 1.04 KB
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
<html>
<head>
<title>License Report</title>
<link rel="stylesheet" href="flexlm.css" />
</head>
<body>
% for server in data:
<h1>${server}</h1>
% for feature in data[server]:
${show_licenses(feature, data[server][feature])}
% endfor
% endfor
</body>
</html>
<%def name="show_licenses(feature, licenses)">
% if len(licenses):
<h2>${feature}</h2>
<table>
<thead>
<tr>
<th style="width: 15%%;">User</th>
<th style="width: 15%%;">Computer</th>
<th style="width: 15%%;">Checkout Computer</th>
<th style="width: 10%%;">Version</th>
<th style="width: 20%%;">Connection</th>
<th style="width: 25%%;">Start</th>
</tr>
</thead>
<tbody>
% for license in licenses:
<tr>
<td>${license['user']}</td>
<td>${license['computer']}</td>
<td>${license['computer2']}</td>
<td>${license['version']}</td>
<td>${license['connection']}</td>
<td>${license['start']}</td>
</tr>
% endfor
</tbody>
</table>
% else:
<h2 class="none">${feature}</h2>
% endif
</%def>