{% load i18n %} {% comment %} Props: variant – c-button variant (primary, secondary, …). Unset renders the plain button this has always been, which is what the navbar wants. The sidebar footer asks for "primary": there the button is the one thing a signed-out visitor should reach for, so it is worth the emphasis. full – stretch to the width of whatever contains it. {% endcomment %} {% if not request.user.is_authenticated %} {% comment %} Prefer allauth's login URL when present, else Django's. {% endcomment %} {% url "account_login" as login_url %} {% if not login_url %} {% url "login" as login_url %} {% endif %} {% if login_url %} {% endif %} {% endif %}