2022-01-23 22:34:16 +01:00
|
|
|
<!-- templates/home.html-->
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block title %}Home{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if user.is_authenticated %}
|
2022-01-25 18:48:45 +01:00
|
|
|
<p>Hi {{ user.username }}!</p>
|
|
|
|
<p><a href="{% url 'logout' %}" class="btn btn-light">Log Out</a></p>
|
2022-01-23 22:34:16 +01:00
|
|
|
{% else %}
|
|
|
|
<p>You are not logged in</p>
|
2022-01-25 18:48:45 +01:00
|
|
|
<p><a href="{% url 'login' %}" class="btn btn-light">Log In</a></p>
|
|
|
|
<p><a href="{% url 'signup' %}" class="btn btn-light">Create an account</a></p>
|
2022-01-23 22:34:16 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|