{% set _t = t if t is defined else None %} {# ``writable`` defaults True on NamedBeans; drivers like jmri-ncemonitor mark their observe-only beans False so we can present a read-only affordance rather than inviting a command that will raise. #} {% set _writable = _t.writable if _t.writable is defined else True %} {{ _t.name }} {{ _t.userName or "" }} {% if _t.state == 2 %}CLOSED {% elif _t.state == 4 %}THROWN {% elif _t.state == 8 %}INCONSISTENT {% else %}UNKNOWN{% endif %} {% if not _writable %}observed{% endif %} {% if _writable %} {% endif %}