{% import "utils.jinja" as utils %} {% set ns = namespace(first_tab=None) -%} {% set quota_types = [ ('personal', 'Personal', user_quota.have_personal), ('service', 'Service', user_quota.have_service), ('jupyter', 'JupyterCloud', True), ] -%} {% macro get_active(tab_name) -%} {% if ns.first_tab == tab_name -%} active {%- endif %} {%- endmacro %} {% macro tab(name, label) -%} {% if not ns.first_tab -%} {% set ns.first_tab = name %} {%- endif %}