19 lines
412 B
HTML
19 lines
412 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Home{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if user.is_authenticated %}
|
|
Hi {{ user.username }}!
|
|
<form action="{% url 'logout' %}" method="post">
|
|
{% csrf_token %}
|
|
<button type="submit">Log out</button>
|
|
</form>
|
|
{% else %}
|
|
<p>You are not logged in</p>
|
|
<a href="{% url 'login' %}">Log In</a>
|
|
<br />
|
|
<a href="{% url 'signup' %}">Sign Up</a>
|
|
{% endif %}
|
|
{% endblock %}
|