X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=templates%2Fbase%2Flogin.html;h=37fdf44a6cd82a73e5e1cbe68498f759eb746d25;hb=963e2c8978035dc3f992583145b65c1d57d25ca2;hp=834dac48765df80991081c7af898663f5dfeb20a;hpb=25f8408523048e3734758d970efaf12b1d7157db;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/templates/base/login.html b/templates/base/login.html index 834dac4..37fdf44 100644 --- a/templates/base/login.html +++ b/templates/base/login.html @@ -1,19 +1,26 @@ +{% load i18n %} {% extends "base/base.html" %} {% block content %} {% if form.has_errors %} -

Your username and password didn't match. Please try again.

+

{% trans "Your username and password didn't match. Please try again." %}

+{% endif %} + +{% if user.is_authenticated %} +

{% blocktrans with user.username as username %}You are currently logged in as {{ username }}{% endblocktrans %}

+

{% trans "Logout" %}

{% endif %}
- - + +
{{ form.username }}
{{ form.password }}
{{ form.username }}
{{ form.password }}
- + +
{% endblock %}