{% block head_extra %}{% endblock %}
{% if current_user %} {% else %} {% endif %}
{% block content %}{% endblock %}
{% if current_user %} {% set show_ops = current_user.role in ['admin', 'support'] %} {% set show_settings = current_user.role == 'admin' %} {% set tab_count = 1 + (2 if show_ops else 0) + (1 if show_settings else 0) %} {% if tab_count >= 2 %} {% endif %} {% endif %} {% block scripts %}{% endblock %}