toodego: display more availability details, if any, on velov tiles (#74158)
gitea-wip/publik-base-theme/pipeline/pr-main This commit looks good Details
gitea/publik-base-theme/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2023-02-03 14:00:19 +01:00
parent 9bb81d7edd
commit 10bff1b396
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>