{% macro links(nav, session) %} {% for key,href,label,symbol in [('overview','/','Overview','01'),('plan','/plan','New run','02'),('jobs','/jobs','Jobs','03'),('plans','/plans','Saved plans','04'),('customers','/customers','Inventory explorer','05'),('insights','/insights','Playbook insights','06'),('playbooks','/playbooks','Playbook catalog','07')] %} {{ symbol }}{{ label }} {% endfor %} {% if session and session.role == 'admin' %}ADMINISTRATION {% for key,href,label in [('users','/users','Users & access'),('setup','/setup','Named administrator'),('audit','/audit','Audit history'),('system','/system','System & diagnostics')] %} {{ label }}{% endfor %}{% endif %} {% endmacro %} {% macro theme() %}