-
Notifications
You must be signed in to change notification settings - Fork 3
/
belarus_report.html
83 lines (81 loc) · 3.34 KB
/
belarus_report.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
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OSM Belarus Report</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin="anonymous">
<style>
</style>
</head>
<body>
<nav class="navbar navbar-expand-xl sticky-top navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">OSM Belarus Lang Stat</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav" role="tablist">
{% for tag in groups.keys() %}
<li class="nav-item" role="presentation">
<a
class="nav-link{% if loop.index == 1 %} active{% endif %}"
id="tabs-{{ loop.index }}"
data-bs-toggle="tab"
data-bs-target="#tabs-{{ loop.index }}-pane"
type="button"
role="tab"
aria-controls="tabs-{{ loop.index }}-pane"
aria-selected="{% if loop.index == 1 %}true{% else %}false{% endif %}"
>{{ tag }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>
<div class="tab-content">
{% for tag, tables in groups.items() %}
<div
class="tab-pane fade{% if loop.index == 1 %} show active{% endif %}"
id="tabs-{{ loop.index }}-pane"
role="tabpanel"
aria-labelledby="tabs-{{ loop.index }}"
tabindex="0"
>
<div class="container text-center" style="font-size: 0.75rem;">
<h2>{{ tag }} progress</h2>
{{ tables['progress'] }}
</div>
<div class="container text-center" style="font-size: 0.75rem;">
<h2>{{ tag }} statistic</h2>
{{ tables['statistic'] }}
</div>
{% if 'dependant_progress' in tables %}
<div class="container text-center" style="font-size: 0.75rem;">
<h2>{{ tag }} dependants progress</h2>
{{ tables['dependant_progress'] }}
</div>
{% endif %}
{% if 'dependant_statistic' in tables %}
<div class="container text-center" style="font-size: 0.75rem;">
<h2>{{ tag }} dependants statistic</h2>
{{ tables['dependant_statistic'] }}
</div>
{% endif %}
</div>
{% endfor %}
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2"
crossorigin="anonymous"></script>
<script>
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
</script>
</body>
</html>