{# The right sidebar's toggle and its collapsed form, an icon rail (#377): one item per card, an icon and a number, its title in the tooltip and the label; `level` colours it (block, warning, info). `static/sidebar.js` keeps the state; the server always renders it expanded. #} {% macro toggle() %}{% endmacro %} {% macro rail(items) %}{% endmacro %} {% macro worst(hints) %}{% set sevs = hints | map(attribute='severity') | list %}{{ 'block' if 'block' in sevs else 'warning' if ('warning' in sevs or 'warn' in sevs) else 'info' if sevs else '' }}{% endmacro %}