<p>Your username and password didn't match. Please try again.</p>
{% endif %}
+{% if user.is_authenticated %}
+ <p>You are currently logged in as {{ user.username }}</p>
+ <p><a href="../logout/">Logout</a></p>
+{% endif %}
+
<form method="post" action=".">
<table>
<tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
+
</form>
{% endblock %}