django-cats/cats/templates/regular_view.html
Jan Dittberner 564a00d46d Finish login and registration flow
- add template for login page
- add logout URL
- display user information
2024-09-20 15:59:51 +02:00

11 lines
No EOL
413 B
HTML

{% extends "base.html" %}
{% load i18n %}
{% block sidebar_content %}
{{ super }}
{% if request.user.is_anonymous %}
<a href="{% url 'login' %}?next={{ request.path }}">{% translate "Login" %}</a>
{% else %}
{% blocktrans trimmed %}You are logged in as {{ user }}{% endblocktrans %}
<a href="{% url 'logout' %}?next={{ request.path }}">Logout</a>
{% endif %}
{% endblock %}