-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_t.html
47 lines (47 loc) · 1.64 KB
/
index_t.html
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
<!DOCTYPE html>
<html>
<head>
<!--
== http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/webtemplates.html
== http://kagerato.net/articles/software/libraries/jinja-quickstart.html
== http://jinja.pocoo.org/docs/
== Learned this kung-fu from above locations
-->
<link rel='stylesheet' type='text/css' href='css/flatly.css'>
<title>{{ title }}</title>
<style>
.text-info.small { font-size: smaller; opacity:0.9; color: #666 !important; }
/* ul li .lead {font-style:italic;font-family:serif;font-size:larger;float:left;}
*/
</style>
</head>
<body>
<div class='container'>
<h1>{{ title }}</h1>
<div class='row'>
{% for key in list %}
<div id='{{ key }}' class='col-md-4'>
<h2>{{ key }}</h2>
<ul class='list-unstyled'>
{% for item in list[key] %}
<li><span class='lead'>{{ loop.index }}</span> <span class=lead>{{ item.name }}</span><br>
<a class='btn btn-xs btn-default' href='{{ item.url }}' title='Download {{ item.name|escape }}'>Download <i class='download'></i></a>
<span class='text-muted'>
<table class='table table-striped table-condensed table-bordered'><tbody>
{% for ki in item.info %}
<tr class='text-info small'>
<td><small><strong>{{ ki|capitalize }}:</strong></small></td>
<td><small>{{- item.info[ki] -}}</small></td>
</tr>
{% endfor %}
</tbody></table>
</span>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
</body>
</html>