{# WZDx work-zone detail rows. Fields from payload->data->data; every block is guarded so the Iowa shape (lanes/types_of_work, no event_status) and the Utah shape (event_status, no lanes) both render without error. #} {% set d = (event.data.get('data') or {}).get('data') or {} %} {% set roads = d.get('road_names') or [] %} {% if roads %}
Road
{{ roads | join(', ') }}{% if d.get('direction') and d.direction != 'unknown' %} ({{ d.direction }}){% endif %}
{% endif %} {% if d.get('vehicle_impact') is not none %}
Vehicle impact
{{ d.vehicle_impact }}
{% endif %} {% if d.get('event_status') is not none %}
Status
{{ d.event_status }}
{% endif %} {% if d.get('start_date') is not none %}
Starts
{{ d.start_date }}
{% endif %} {% if d.get('end_date') is not none %}
Ends
{{ d.end_date }}
{% endif %} {% if d.get('description') is not none %}
Description
{{ d.description | truncate(200) }}
{% endif %} {% if d.get('feed_name') is not none %}
Source feed
{{ d.feed_name }}{% if d.get('feed_state') %} ({{ d.feed_state }}){% endif %}
{% endif %}