{% load i18n static %}
Add ➕     Crawls | Snapshots | Log | Tags     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 %} {% trans 'Log out' %} {% 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 — public.* must NEVER see the session). The hint cookie is the only signal that crosses, so we render the logged-out state's `Account` / `Log out` links pointing at admin host so the user can still reach those pages from public.*/web.*. {% endcomment %} Account / {% trans 'Log out' %} {% else %} {% trans 'Log in' %} {% endif %}