publik-base-theme/templates/variants/toodego/combo/json/velov.html

31 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% load l10n combo gnm assets %}
{% with station=json.values.0 %}
<div class="tile velov" data-tile-cache="30">
<div class="tile-picture" style="background-image: url({% asset_url "picture:velov" %})"></div>
<div class="tile-head">
<div class="tile-title">
<h2>Station {{station.name}}</h2>
<span class="producer" style="background-image: url({% asset_url "logo:velov" %})">Velov</span>
</div>
</div>
{% include "combo/dashboard_cell_icons.html" %}
<div class="tile-content">
<p class="available-bikes">{{station.available_bikes}}
vélo{{ station.available_bikes|pluralize }}
disponible{{ station.available_bikes|pluralize }}</p>
<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>
</div>
</div>
{% endwith %}