{# ITD 511 detail rows. Fields from payload->data->data; every block guarded. Direction "Unknown"/"None" suppressed (wzdx lesson). Recurrence HTML stripped via striptags so the source's /
markup doesn't leak. #} {%- set d = (event.data.get('data') or {}).get('data') or {} -%} {% if d.get('roadway_name') %}
Road
{{ d.roadway_name }}{% if d.get('direction') and d.direction not in ['Unknown', 'None'] %} ({{ d.direction }}){% endif %}
{% endif %} {% if d.get('event_sub_type') %}
Type
{{ d.event_sub_type }}
{% endif %} {% if d.get('lanes_affected') and d.lanes_affected != 'No Data' %}
Lanes
{{ d.lanes_affected }}
{% endif %} {% if d.get('is_full_closure') %}
Full closure
Yes
{% endif %} {% if d.get('itd_severity') and d.itd_severity != 'None' %}
ITD severity
{{ d.itd_severity }}
{% endif %} {% if d.get('description') %}
Description
{{ d.description | truncate(220) }}
{% endif %} {% if d.get('comment') %}
Comment
{{ d.comment | truncate(220) }}
{% endif %} {% if d.get('cause') and d.cause != d.get('event_type_short') %}
Cause
{{ d.cause }}
{% endif %} {% if d.get('detour_instructions') %}
Detour
{{ d.detour_instructions | truncate(220) }}
{% endif %} {% if d.get('recurrence_text') %}
Schedule
{{ d.recurrence_text | striptags | truncate(120) }}
{% endif %} {%- set r = d.get('restrictions') or {} -%} {% if r.get('Width') or r.get('Height') or r.get('Length') or r.get('Weight') or r.get('Speed') %}
Restrictions
{% if r.Width %}W:{{ r.Width }} {% endif %}{% if r.Height %}H:{{ r.Height }} {% endif %}{% if r.Length %}L:{{ r.Length }} {% endif %}{% if r.Weight %}Wt:{{ r.Weight }} {% endif %}{% if r.Speed %}Spd:{{ r.Speed }}{% endif %}
{% endif %}