-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
layout.html.j2
174 lines (162 loc) · 5.77 KB
/
layout.html.j2
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
corePlugins: {
preflight: true,
},
}
</script>
{% block head %}{% endblock %}
</head>
<body>
<div>
<!-- Static sidebar for desktop -->
<div class="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-60 lg:flex-col">
<!-- Sidebar component, swap this element with another sidebar if you like -->
<div class="flex flex-col px-6 pb-4 overflow-y-auto bg-gray-300 border-r-2 grow gap-y-5 border-r-cyan-600">
<div class="flex items-center h-24 mt-4 shrink-0">
<div class="text-2xl">
{% for word in config.mesh.name.split() %}
<div class="p-0 m-0">{{ word[0] }}<span class="text-gray-500">{{ word[1:] }}</span></div>
{% endfor %}
</div>
</div>
<div>
{{ config.mesh.description }}
</div>
{% if config.mesh.url %}
<div>
<a href="{{ config.mesh.url }}" class="text-xs text-gray-900">Website</a>
</div>
{% endif %}
<nav class="flex flex-col flex-1">
<h3 class="font-bold">Mesh</h3>
<div class="mb-1">
<a href="chat.html">
<img src="images/icons/chat.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Chat
</a>
</div>
<div class="mb-1">
<a href="graph.html">
<img src="images/icons/map.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Graph
</a>
</div>
<div class="mb-1">
<a href="map.html">
<img src="images/icons/map.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Map
</a>
</div>
<div class="mb-1">
<a href="nodes.html">
<img src="images/icons/node.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Nodes
</a>
</div>
<div class="mb-1">
<a href="neighbors.html">
<img src="images/icons/neighbors.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Node Neighbors
</a>
</div>
<div class="mb-1">
<a href="stats.html">
<img src="images/icons/stats.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Stats
</a>
</div>
<div class="mb-1">
<a href="telemetry.html">
<img src="images/icons/telemetry.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Telemetry
</a>
</div>
<div class="mb-1">
<a href="traceroutes.html">
<img src="images/icons/route2.svg" width="20" height="20" align="middle" class="inline-block" style="vertical-align: middle;">
Traceroutes
</a>
</div>
</nav>
<nav class="flex flex-col flex-1">
<h3 class="font-bold">Logs</h3>
<div class="mb-1">
<a href="mesh_log.html">Mesh Messages</a>
</div>
<div class="mb-1">
<a href="mqtt_log.html">MQTT Messages</a>
</div>
</nav>
{% if config.mesh.tools|count > 0 %}
<nav class="flex flex-col flex-1">
<h3 class="font-bold">Tools</h3>
{% for tool in config.mesh.tools %}
<div class="mb-1">
<a href="{{ tool.url }}" target="_blank">{{ tool.name }}</a>
</div>
{% endfor %}
</nav>
{% endif %}
<nav class="flex flex-col flex-1">
<h3 class="font-bold">Meshtastic Addons</h3>
<div class="mb-1">
<a href="https://github.com/armooo/meshtastic_dopewars" target="_blank">DopeWars</a>
</div>
<div class="mb-1">
<a href="https://github.com/TheCommsChannel/TC2-BBS-mesh" target="_blank">TheCommsChannel BBS</a>
</div>
</nav>
<div class="flex-grow"></div>
<div class="flex flex-col">
<div class="font-bold">Data Updated</div>
<div>{{ timestamp.astimezone(zoneinfo).strftime('%Y-%m-%d %H:%M:%S %z') }}</div>
</div>
<div class="flex-grow"></div>
<div class="flex flex-col">
<h5 class="mb-2">
Powered by MeshInfo
{% if config.server.version_info %}
(<span class="text-xs text-gray-500">{{ config.server.version_info.ref_name }}</span>)
{% endif %}
</h5>
<a href="https://github.com/kevinelliott/meshinfo" class="text-xs text-gray-500">
<img src="https://img.shields.io/github/stars/kevinelliott/meshinfo?style=social" alt="GitHub Stars">
</a>
</div>
</div>
</div>
<div class="lg:pl-60">
<main class="py-1">
<div class="w-full px-4 py-2 sm:px-6 sm:py-2 lg:px-6 lg:py-2">
{% block content %}{% endblock %}
</div>
</main>
</div>
</div>
<style>
body {
font-family: monospace;
font-size: 12px;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #33F;
}
a:visited {
color: #33F;
}
nav a:hover {
color: #000;
}
</style>
</body>
</html>