toodego: fix detection of atmo unavailable data (#33820)
This commit is contained in:
parent
f04292f813
commit
d8637b62d6
|
@ -31,7 +31,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if air2go and is_place_page %}
|
||||
{% if not air2go.indices.indice_multipolluant %}
|
||||
{% if not air2go.indices.indice_j.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 %}
|
||||
|
@ -59,7 +59,7 @@
|
|||
{% localize off %}
|
||||
<a class="address-name" href="{{airquality_details_path}}{{lon}},{{lat}}/">{{ nominatim.display_name }}</a>
|
||||
{% endlocalize %}
|
||||
{% if not air2go.indices.indice_multipolluant %}
|
||||
{% if not air2go.indices.indice_j.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>
|
||||
|
|
Loading…
Reference in New Issue