{% extends "base.html" %} {% import "_base.html" as _base %} {% import "_section.html" as _section %} {% block content -%}

{% trans %}{{ hostname }} configuration{% endtrans %}

{%- trans %}Show raw config{% endtrans -%}


{{ _section.section_tree(config, rules_macro=host_config, collapse_rules=False, changed_at_key='changed_at') }} {{ _section.yaml_editor_boilerplate() }} {{ _section.yaml_editor('textarea.yaml') }} {% endblock %} {% macro host_config(section) -%}

{% trans %}Matched rules: {% endtrans %} {% for rulename in section['matched_rules'] %} {{ _section.rule_link(section, {'name': rulename}) }} {%- if not loop.last %}, {% endif %} {%- endfor %}

{%- endmacro %}