{% comment %} Small "at a glance" tag for a Connection's optional environment (dev/staging/ prod). Reused wherever a connection is listed — index.html's saved-connections list, and workspace.html's switcher (both the current-connection header and the dropdown rows) — so the colour mapping lives in exactly one place. Pass the connection in as `c`. Renders nothing when environment is unset. {% endcomment %} {% if c.environment %} {{ c.get_environment_display }} {% endif %}