{% if current_user.is_authenticated and current_user.theme and current_user.theme.is_active %} {# Extended themes: load a full override stylesheet when the theme marks itself #} {% if current_user.theme.css_variables and '"--theme-stylesheet"' in current_user.theme.css_variables %} {% if '"enhanced"' in current_user.theme.css_variables %} {% elif '"hackers"' in current_user.theme.css_variables %} {% endif %} {% endif %} {% endif %} {% block extra_css %}{% endblock %} {# CSRF token for fetch()-based POSTs (vote API, future AJAX endpoints) #} {% if csrf_token is defined %} {% endif %}