{% load i18n static %}
Add ➕ Crawls Snapshots Log Tags {% if user.is_authenticated and user.is_superuser and request.archivebox_config.OPENCODE_ENABLED %} 💬 AI {% endif %} Docs API Admin {% if user.is_authenticated %} {% block welcome-msg %} {% trans 'User' %} {% firstof user.get_short_name user.get_username %} {% endblock %} {% block userlinks %} {% if user.has_usable_password %} Account {% endif %} {% endblock %} {% elif request.COOKIES.archivebox_admin_logged_in == "1" %} {% comment %} Authenticated on the admin host but the session cookie is admin-host- scoped (security boundary — web.* must NEVER see the session). The hint cookie is the only signal that crosses, so link back to the admin host where the session and CSRF cookie are available. {% endcomment %} Account {% else %} {% trans 'Log in' %} {% endif %}