toodego: display more availability details, if any, on velov tiles (#74158) #157

Merged
fpeters merged 1 commits from wip/74158-toodego-velov-infos into main 2023-02-14 15:03:11 +01:00
2 changed files with 15 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -16,6 +16,12 @@
<p class="available-bike-stands">{{station.available_bike_stands}}
place{{ station.available_bike_stands|pluralize }}
disponible{{ station.available_bike_stands|pluralize }}</p>
{% if station.titre or station.description %}
<div class="velov-info">
{% if station.titre %}<p><strong>{{ station.titre }}</strong></p>{% endif %}
{% if station.description %}<p>{{ station.description|linebreaksbr }}</p>{% endif %}
</div>
{% endif %}
</div>
<div class="tile-actions">
<a class="action-goto" data-lat="{{station.lat}}" data-lng="{{station.lng}}" href="/m-y-rendre/?to={{cell.id}}">My rendre</a>