toodego: add error message when atmo data are not available (#33820)
This commit is contained in:
parent
87007d0d4b
commit
5c2267e19d
|
@ -13,6 +13,15 @@
|
|||
}
|
||||
|
||||
#page.place div.airquality {
|
||||
div.air2go-off {
|
||||
margin: 3rem auto 1rem auto;
|
||||
max-width: 25rem;
|
||||
border: 2px solid $red;
|
||||
p {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
div.tables {
|
||||
h3 {
|
||||
text-align: center;
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% if air2go and is_place_page %}
|
||||
{% if not air2go.indices.indice_multipolluant %}
|
||||
<div class="air2go-off"><p>Données de qualité de l'air indisponibles.</p></div>
|
||||
{% else %}
|
||||
{% for day_indice in air2go.indices|indice_values %}
|
||||
<div class="tables tables-day-{{ forloop.counter0 }}" {% if forloop.counter0 != 1 %}style="display: none"{% endif %}>
|
||||
<table class="day-indices">
|
||||
|
@ -51,12 +54,17 @@
|
|||
</table>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% elif air2go %}
|
||||
{% localize off %}
|
||||
<a class="address-name" href="{{airquality_details_path}}{{lon}},{{lat}}/">{{ nominatim.display_name }}</a>
|
||||
{% endlocalize %}
|
||||
{% if not air2go.indices.indice_multipolluant %}
|
||||
<span class="qualif"><i>Données indisponibles.</i></span>
|
||||
{% else %}
|
||||
<span class="air2go valeur" style="border-color: {{air2go.indices.indice_j.indice_multipolluant.couleur_html}}">{{air2go.indices.indice_j.indice_multipolluant.valeur}}</span>
|
||||
<span class="qualif">{{air2go.indices.indice_j.indice_multipolluant.qualificatif}}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if is_place_page %}
|
||||
|
|
Loading…
Reference in New Issue