From 10bff1b3968c4bf4df91c585b0d9775787092b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 3 Feb 2023 14:00:19 +0100 Subject: [PATCH] toodego: display more availability details, if any, on velov tiles (#74158) --- static/toodego/_velov.scss | 10 +++++++++- templates/variants/toodego/combo/json/velov.html | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/static/toodego/_velov.scss b/static/toodego/_velov.scss index 8cefeb7a..7d278dfb 100644 --- a/static/toodego/_velov.scss +++ b/static/toodego/_velov.scss @@ -1,5 +1,5 @@ .tile.velov .tile-content { - p { + p.available-bikes, p.available-bike-stands { padding-left: 40px; font-size: 90%; } @@ -19,4 +19,12 @@ background-size: auto 16px; } } + + .velov-info { + margin: 1em 1em 1em 0; + font-size: 90%; + max-height: 8em; + overflow-y: scroll; + } + } diff --git a/templates/variants/toodego/combo/json/velov.html b/templates/variants/toodego/combo/json/velov.html index 38fd7faf..878c82e5 100644 --- a/templates/variants/toodego/combo/json/velov.html +++ b/templates/variants/toodego/combo/json/velov.html @@ -16,6 +16,12 @@

{{station.available_bike_stands}} place{{ station.available_bike_stands|pluralize }} disponible{{ station.available_bike_stands|pluralize }}

+ {% if station.titre or station.description %} +
+ {% if station.titre %}

{{ station.titre }}

{% endif %} + {% if station.description %}

{{ station.description|linebreaksbr }}

{% endif %} +
+ {% endif %}
M’y rendre -- 2.39.2