First templates, currently not ready, intermediate result
This commit is contained in:
@@ -12,20 +12,27 @@
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-wrapper">
|
||||
<img alt="logo" src="{% static 'favicon.webp' %}">
|
||||
<div>
|
||||
<h3>Арка</h3>
|
||||
<h6>Сайт для анонимного ремонта</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{% if user %}
|
||||
<h5 style="text-align: right">{{ user.user_name }}</h5>
|
||||
{% else %}
|
||||
<h5>Anonim</h5>
|
||||
{% endif %}
|
||||
<div id="logo-container">
|
||||
<img src="{% static 'favicon.webp' %}" alt="logo image">
|
||||
<span>АРКА</span>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<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 'dev_index' %}">Dev</a>
|
||||
<a href="{% url 'about' %}">О нас</a>
|
||||
</nav>
|
||||
|
||||
<nav>
|
||||
|
||||
</nav>
|
||||
|
||||
</header>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
@@ -36,13 +43,6 @@
|
||||
<a href="{% url 'login'%}?next={{request.path}}">Вход</a>
|
||||
{% endif %}
|
||||
|
||||
<nav>
|
||||
<a href="{% url 'index' %}">На главную</a>
|
||||
<a href="{% url 'account' %}">Аккаунт</a>
|
||||
<a href="{% url 'dev_index' %}">Dev</a>
|
||||
<a href="{% url 'about' %}">О нас</a>
|
||||
{# <button id="theme-switcher">Переключить тему</button>#}
|
||||
</nav>
|
||||
<main id="content">
|
||||
{% block content %} тут должен быть контент {% endblock %}
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user