2022-12-27 10:29:49 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width; initial-scale=1">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: sans-serif;
|
|
|
|
}
|
2024-08-24 23:07:05 +02:00
|
|
|
th, td {
|
2022-12-27 10:29:49 +01:00
|
|
|
text-align: left;
|
2024-08-24 23:07:05 +02:00
|
|
|
vertical-align: baseline;
|
2022-12-27 10:29:49 +01:00
|
|
|
}
|
|
|
|
main {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 2rem;
|
2022-12-30 20:14:00 +01:00
|
|
|
align-items: end;
|
2022-12-27 10:29:49 +01:00
|
|
|
}
|
|
|
|
.widget {
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
}
|
|
|
|
.value {
|
|
|
|
font-size: 3rem;
|
|
|
|
}
|
|
|
|
.unit {
|
|
|
|
display: block;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
.gauge {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
|
|
|
align-items: end;
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
|
|
|
.gauge-container {
|
|
|
|
width: 20px;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: #CCC;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.gauge-indicator {
|
|
|
|
width: 20px;
|
|
|
|
border-radius: 4px;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2022-12-30 20:14:00 +01:00
|
|
|
.timeseries {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
|
|
|
align-items: end;
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
2022-12-31 17:55:25 +01:00
|
|
|
.extra {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2022-12-27 10:29:49 +01:00
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>{{ dashboard.title }}</h1>
|
|
|
|
<p class="description">
|
|
|
|
{{ dashboard.description }}
|
|
|
|
</p>
|
|
|
|
<main>
|
|
|
|
{% for widget in dashboard.widgets %}
|
|
|
|
{{ widget.as_html() }}
|
|
|
|
{% endfor %}
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|