Small update in templates

This commit is contained in:
2022-09-24 00:20:46 +03:00
parent b8cc005afe
commit e10b2e0138
3 changed files with 77 additions and 20 deletions

View File

@@ -22,11 +22,10 @@
<div class="dropdown-content">
<a href="{% url 'index' %}">Главная</a>
<a href="{% url 'index' %}">Создать заказ</a>
<a href="{% url 'index' %}">Объявления</a>
<a href="{% url 'orders-list' %}">Объявления</a>
{# <a href="{% url 'index' %}">Все участники</a>#}
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
<a href="{% url 'account' %}">Аккаунт</a>
<a href="{% url 'dev_index' %}">Dev</a>
</div>
</div>
@@ -36,33 +35,36 @@
<a href="{% url 'index' %}">Главная</a>
<a href="{% url 'index' %}">Создать заказ</a>
<a href="{% url 'index' %}">Объявления</a>
<a href="{% url 'orders-list' %}">Объявления</a>
{# <a href="{% url 'index' %}">Все участники</a>#}
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
<a href="{% url 'account' %}">Аккаунт</a>
<a href="{% url 'dev_index' %}">Dev</a>
<div>
<div class="dropdown-wrapper">
<button class="dropdown-button fa fa-bars"></button>
<div class="dropdown-content">
{% if user.is_authenticated %}
<a href="{% url 'index' %}">Профиль</a>
<a href="{% url 'index' %}">Мои заказы</a>
<a href="{% url 'index' %}">Мой кошелёк</a>
<a href="{% url 'index' %}">Мои записи</a>
<a href="{% url 'account' %}">Мой аккаунт</a>
<a href="{% url 'logout'%}?next={{request.path}}">Выход</a>
{% else %}
<span>Вы не вошли</span>
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
<a href="{% url 'register' %}?next={{request.path}}">Регистрация</a>
{% endif %}
</div>
</div>
</header>
</div>
{% if user.is_authenticated %}
Добро пожаловать, {{ user.name }} {{ user.surname }}<br>
<a href="{% url 'logout'%}?next={{request.path}}">Выход</a>
{% else %}
Вы не вошли
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
{% endif %}
<main id="content">
{% block content %} тут должен быть контент {% endblock %}
</main>
{# <footer> {% block footer %} {% endblock %} </footer>#}
{# <script src="{% static 'js/main.js' %}"></script>#}
</body>