0001-braine-l-alleud-adapt-color-on-esirius-swi-cell-6213.patch
static/braine-l-alleud/_custom.scss | ||
---|---|---|
649 | 649 |
.value { |
650 | 650 |
font-weight: bold; |
651 | 651 |
font-size: 1.8rem; |
652 | 652 |
} |
653 | 653 |
.unit { |
654 | 654 |
font-size: .7rem; |
655 | 655 |
} |
656 | 656 |
&.closed { border-color: #cccccc; } |
657 |
&.unknown { border-color: #cccccc; } |
|
657 | 658 |
&.level0 { border-color: #c3f000; } |
658 | 659 |
&.level1 { border-color: #f0e100; } |
659 | 660 |
&.level2 { border-color: $orange; } |
660 | 661 |
&.level3 { border-color: #ff5e00; } |
661 | 662 |
&.level4 { border-color: #ff1800; } |
662 | 663 |
} |
663 | 664 |
} |
664 | 665 |
templates/variants/braine-l-alleud/combo/json/esirius_swi.html | ||
---|---|---|
1 | 1 |
<h2>Affluence aux guichets</h2> |
2 | 2 |
<div class="esirius-swi"> |
3 | 3 |
{% if json.err %} |
4 | 4 |
<p>Erreur à la récupération de l’information.</p> |
5 | 5 |
{% else %} |
6 | 6 |
{% with json.data.0 as site %} |
7 | 7 |
<div class="row"> |
8 | 8 |
<div class="label">Temps d’attente estimé :</div> |
9 |
<div class="circle {% if site.closed %}closed{% elif site.estimatedAvgWaitingTimeInMinutes < 5 %}level0{% elif site.estimatedAvgWaitingTimeInMinutes < 10 %}level1{% elif site.estimatedAvgWaitingTimeInMinutes < 20 %}level2{% elif site.estimatedAvgWaitingTimeInMinutes < 40 %}level3{% else %}level4{% endif %}"> |
|
9 |
<div class="circle {% if site.closed %}closed{% elif site.estimatedAvgWaitingTimeInMinutes is None %}unknown{% elif site.estimatedAvgWaitingTimeInMinutes < 5 %}level0{% elif site.estimatedAvgWaitingTimeInMinutes < 10 %}level1{% elif site.estimatedAvgWaitingTimeInMinutes < 20 %}level2{% elif site.estimatedAvgWaitingTimeInMinutes < 40 %}level3{% else %}level4{% endif %}">
|
|
10 | 10 |
<span class="value">{{ site.estimatedAvgWaitingTimeInMinutes|default:"--" }}</span> |
11 | 11 |
<span class="unit">minutes</span> |
12 | 12 |
</div> |
13 | 13 |
</div> |
14 | 14 |
{% if site.closed %} |
15 | 15 |
<p>Les guichets sont actuellement fermés.</p> |
16 | 16 |
{% elif not site.cumulatedWaitingVisitorNumber %} |
17 | 17 |
<p>Il n'y a actuellement personne en attente.</p> |
18 |
- |