RandomSec/Serwer_django/templates/home.html

15 lines
458 B
HTML

<!-- templates/home.html-->
{% extends 'base.html' %}
{% block title %}Home{% endblock %}
{% block content %}
{% if user.is_authenticated %}
<p>Hi {{ user.username }}!</p>
<p><a href="{% url 'logout' %}" class="btn btn-light">Log Out</a></p>
{% else %}
<p>You are not logged in</p>
<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>
{% endif %}
{% endblock %}