beta v.1.1
This commit is contained in:
34
Templates/components/_header.html
Normal file
34
Templates/components/_header.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{% load tz %}
|
||||
</nav>
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<i class="bi bi-balloon-heart"></i>
|
||||
<div class="container-fluid">
|
||||
{% if not user.is_authenticated %}
|
||||
<a class="navbar-brand --bs-success-text-emphasis" href="{% url 'Home' %}"> Wevertom </a>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<a class="navbar-brand --bs-success-text-emphasis" href="{% url 'Dashboard' %}"> Weverton </a>
|
||||
{% endif %}
|
||||
<ul class="nav justify-content-center">
|
||||
<li class="navbar-brand --bs-success-text-emphasis">
|
||||
Hoje dia {% now "d" %} de {% now "F" %} de {% now "Y" %} ({% now "d/m/Y" %})
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav justify-content-end">
|
||||
{% if not user.is_authenticated %}
|
||||
<li class="nav-item">
|
||||
<a class="btn btn-primary" aria-current="page" href="{% url 'login' %}">Login</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<li class="navbar-brand --bs-success-text-emphasis">
|
||||
Ola, {{ user.username.capitalize }}
|
||||
</li>
|
||||
<form action="{% url 'logout' %}" method="post" id="logout-form" class="">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-danger" aria-current="true"> Logout </button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user