forked from OpenDataScotland/the_od_bods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
72 lines (56 loc) · 2.09 KB
/
table.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html>
<head>
<title>od_mods</title>
<link rel="stylesheet" href="css/styles.css" />
<script href="js/od_bods.js"></script>
</head>
<body>
<main id="main">
<h2>OD Bods</h2>
<div id="progress">
<div class="meter">
<span style="width: {{ data|length / 48 }}%">{{ "%.2f"|format(data|length / 48) }}%</span>
</div>
<p>We've catalogued {{ data|length }} datasets so far. With a
(conservative) estimate that each council would have 150
datasets there should be around 4800 for the 32 Scottish
councils, so {{ 4800 - data|length }} are still MIA...</p>
<p> See the analysis of <a href="analytics.html">what we've catalogued so far.</a> <!-- ' -->
</p>
</div>
<!-- table -->
<article id="article">
<h2>Datasets</h2>
{% for d in data %}
<div class="dataset">
<a href="{{ d.page_url }}"><h3>{{ d.title }}</h3></a>
<div class="description">{{ d.description | markdown }}</div>
<div class="metadata">
{% if d.license %}<p class="license">License: {{ d.license }}</p>{% endif %}
<p class="dates">Created: {{ d.date_created }}{% if d.date_updated %}, Updated: {{ d.date_updated }}
{% endif %}</p>
{% if d.num_record %}<p class="numRecords">{{ d.num_records }} records.</p>{% endif %}
<p>{% for tag in d.maual_tags %}{{ tag }} {% endfor %}
{% for tag in d.original_tags %}{{ tag }} {% endfor %}
</p>
<p class="fileLinks">
{% for f in d.files %}
{% if f.file_type %}
{% if f.url %}
<a href="{{ f.url }}">{{ f.file_type }} </a>
{% else %}
{{ f.file_type }}
{% endif %}
{% endif %}
{% if f.file_size %}({{ f.file_size }} {{ f.size_unit }}){% endif %}
{% endfor %}
</p>
<p>From: {{ d.owner }}</p>
</div>
</div>
{% endfor %}
</article>
</main>
</body>
</html>