{# Overview network pill and its problem notice. Rendered on its own by
the dashboard view (part = 'pill' or 'notice') inside a try, so a broken
status file can never take the Overview down. #}
{% import '_ui.html' as ui %}
{% if part == 'pill' %}
{% set nic_dot = {'ok': 'var(--ok)', 'warn': 'var(--act)', 'bad': 'var(--fail)'}.get(nic.state, 'var(--off-edge)') %}
{% set role_name = {'imaging': 'Imaging', 'ge': 'GE network', 'other': 'Other'} %}
{% set verdict_chip = {'isolated': ('Isolated', 'ok'), 'ge': ('GE network', 'neutral'), 'foreign-dhcp': ('Other DHCP server', 'err'),
'no-link': ('No link', 'off'), 'error': ('Check failed', 'warn')} %}
{{ {'ok': 'Network OK', 'warn': 'Network: check', 'bad': 'Network: DANGER'}.get(nic.state, 'Network: unknown') }}