{% load combo gnm l10n assets %} {% with event=json.features.0 is_place_page=page|is_place_page place_page=cell|place_page %} {% get_tile_picture_size page as size %}
{% if is_place_page %} {% placeholder "infos-pratiques" name="Infos pratiques" render=False %}
{% else %}
{% endif %}

{{event.properties.townname}}

Grand Lyon
{% include "combo/dashboard_cell_icons.html" %} {% if is_place_page %}
{% if event.properties.probability != '' %}Probabilité : {{event.properties.probability}}{% endif %} {% if event.properties.starttime != '' %}
Du : {{event.properties.starttime}} {% endif %} {% if event.properties.endtime != '' %}au : {{event.properties.endtime}}{% endif %} {% if event.properties.publiccomment != '' %}
Détail : {{event.properties.publiccomment}}{% endif %}
Confidentialité : {{event.properties.confidentiality}}
Info status : {{event.properties.informationstatus}}
Type : {{event.properties.type}}
Status : {{event.properties.status}}
Nb voie restraintes : {{event.properties.numberoflanesrestricted}}
Direction : {{event.properties.direction}}
disturbance activity type : {{event.properties.disturbanceacivitytype}}
effect on road layout : {{event.properties.effectonroadlayout}}
network management type : {{event.properties.networkmanagementtype}}
public event type : {{event.properties.publiceventtype}}
road maintennace type : {{event.properties.roadmaintenancetype}}
mobility : {{event.properties.mobility}}
Abnomal traffic type : {{event.properties.abnormaltraffictype}}
Future : {{event.properties.future}} {% include "combo/json/includes/share.html" with place=event url=cell|place_page_url %} {% placeholder "infos-pratiques" %}
{% localize off %} M'y rendre {% endlocalize %}
{% gnm_place_map event.geometry.coordinates.1 event.geometry.coordinates.0 %}
{% else %}

{# formatage de la date car celle recue de data.grandlyon.com est difficilement lisible #} {% for comparedate in event.properties.starttime|slice:":-3"|split %} {% if forloop.first %} {% if comparedate not in event.properties.endtime %} {# si starttime et endtime ne sont pas le meme jour on affiche du xxx au xxx #} Du {% for dateitem in event.properties.starttime|slice:":-3"|split %} {# date #} {% if forloop.first %} {% for dateelt in dateitem|split:"-" reversed %}{{dateelt}}{% if not forloop.last %}/{% endif %}{% endfor %} {% endif %} {# heure #} {% if forloop.last %} {% for line in dateitem|split:":" %} {% if forloop.first and line != "00" %}{{line}}{% endif %}{% if forloop.first%}h{% endif %} {% endfor %} {% endif %} {% endfor %} au {% for dateitem in event.properties.endtime|slice:":-3"|split %} {# date #} {% if forloop.first %} {% for dateelt in dateitem|split:"-" reversed %}{{dateelt}}{% if not forloop.last %}/{% endif %}{% endfor %} {% endif %} {# heure #} {% if forloop.last %} {% for line in dateitem|split:":" %} {% if forloop.first and line != "00" %}{{line}}{% endif %}{% if forloop.first%}h{% endif %} {% endfor %} {% endif %} {% endfor %} {% else %} {# sinon on affiche le xxx de xxh à xxh #} Le {% for dateitem in event.properties.starttime|slice:":-3"|split %} {# date #} {% if forloop.first %} {% for dateelt in dateitem|split:"-" reversed %}{{dateelt}}{% if not forloop.last %}/{% endif %}{% endfor %} {% endif %} {# heure #} {% if forloop.last %} de {% for line in dateitem|split:":" %} {% if forloop.first and line != "00" %}{{line}}{% endif %}{% if forloop.first%}h{% endif %} {% endfor %} à {% for dateitem in event.properties.endtime|slice:":-3"|split %} {% if forloop.last %} {% for line in dateitem|split:":" %} {% if forloop.first and line != "00" %}{{line}}{% endif %}{% if forloop.first%}h{% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endif %} {% endfor %}

{# Affichage du commentaire public #} {% if event.properties.publiccomment != '' %}

{% for line in event.properties.publiccomment|split:"|" %} {{line}}.
{% endfor %}

{% endif %}
{% endif %}
{% endwith %}