Projet

Général

Profil

0001-braine-l-alleud-adapt-color-on-esirius-swi-cell-6213.patch

Nicolas Roche, 28 mars 2022 14:41

Télécharger (2,65 ko)

Voir les différences:

Subject: [PATCH] braine-l-alleud: adapt color on esirius swi cell (#62134)

 static/braine-l-alleud/_custom.scss                            | 2 +-
 templates/variants/braine-l-alleud/combo/json/esirius_swi.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
static/braine-l-alleud/_custom.scss
648 648
		line-height: 1.2em;
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
		&.closed { border-color: #cccccc; }
656
		&.unknown { border-color: #cccccc; }
657 657
		&.level0 { border-color: #c3f000; }
658 658
		&.level1 { border-color: #f0e100; }
659 659
		&.level2 { border-color: $orange; }
660 660
		&.level3 { border-color: #ff5e00; }
661 661
		&.level4 { border-color: #ff1800; }
662 662
	}
663 663
}
664 664

  
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 or 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
-