django-cats/cats/templates/regular_view.html

11 lines
413 B
HTML
Raw Permalink Normal View History

{% 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 %}