You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
492 B
21 lines
492 B
{% extends 'layout.html' %}
|
|
|
|
{% block title %}
|
|
{% if user.is_authenticated %}
|
|
Hello
|
|
{% else %}
|
|
Login
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
{% if user.is_authenticated %}
|
|
<p>Welcome, {{ user.username }}!</p>
|
|
<p>Email: {{ user.email }}.</p>
|
|
<a href="{% url 'logout' %}">Logout</a>
|
|
{% else %}
|
|
<a href="{% url 'login' %}">Login</a>
|
|
<a href="{% url 'signup' %}">Sign Up</a>
|
|
<a href="{% url 'password_reset' %}">Forgot Password?</a>
|
|
{% endif %}
|
|
{% endblock %} |