This commit is contained in:
Nicolas Debrigode 2024-01-19 16:51:58 +01:00
parent 8a19610239
commit 773f62371e
2 changed files with 42 additions and 1 deletions

View File

@ -20,3 +20,7 @@
.table-legend-td-brighten {
width: 9px !important;
}
.sticky-top-legend {
top: 5px !important;
}

View File

@ -9,7 +9,44 @@
{% set counter = 0 %}
{% block content %}
<div class="row">
<div class="row row-cards">
<div class="col-2">
<div class="sticky-top sticky-top-legend">
<div class="card">
<div class="card-body">
<h3 class="card-title">
<strong>Legend</strong>
</h3>
<div class="table-responsive">
<table class="table table-borderless table-vcenter table-sm">
<tbody>
{% if knownlinks is defined %}
{% for link in knownlinks %}
<tr>
<td>
<table class="table-legend">
<tr>
{% if configapplication_graph('brighten_negative') %}
<td class="table-legend-td table-legend-td-brighten" style="background-color: #{{ link.color }}">&nbsp;</td>
<td class="table-legend-td table-legend-td-brighten" style="opacity: 0.73; background-color: #{{ link.color }}">&nbsp;</td>
{% else %}
<td class="table-legend-td" style="background-color: #{{ link.color }}">&nbsp;</td>
{% endif %}
</tr>
</table>
</td>
<td class="small">{{ link.descr }}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="row row-cards">
<div class="space-y">