This repository has been archived on 2024-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
arka-mvp/templates/base.html

73 lines
3.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> {% block title %} Арка {% endblock %} </title>
{% load static %}
<link rel="icon" type="image/webp" href="{% static 'favicon.webp' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% block styles %} {% endblock %}
</head>
<body>
<div id="header-wrapper">
<header>
<div class="dropdown-wrapper" id="dropdown-in-header">
<button class="dropdown-button fa fa-bars"></button>
<div class="dropdown-content">
<a href="{% url 'index' %}">Главная</a>
<a href="{% url 'order-create' %}">Создать заказ</a>
<a href="{% url 'orders-list' %}">Объявления</a>
{# <a href="{% url 'index' %}">Все участники</a>#}
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
<a href="{% url 'dev_index' %}">Dev</a>
</div>
</div>
<img id="logo-image" src="{% static 'favicon.webp' %}" alt="logo image">
<span id="logo-text">АРКА</span>
<a href="{% url 'index' %}">Главная</a>
<a href="{% url 'order-create' %}">Создать заказ</a>
<a href="{% url 'orders-list' %}">Заказы</a>
{# <a href="{% url 'index' %}">Все участники</a>#}
<!-- это осталось временно, мне нужно чтобы эти ресурсы были доступны с главной -->
<a href="{% url 'dev_index' %}">Dev</a>
<!-- эта менюшка херово выглядит на телефонах -->
<!-- а вообще можно подумать о том, чтобы сныкать ее содержимое в первую менюшку если сайт для телефонов:
зачем иметь две выпадающие менюшки если есть одна? но это надо обсудить с Вадимом -->
<div class="dropdown-wrapper">
<button class="dropdown-button fa fa-bars"></button>
<div class="dropdown-content">
{% if user.is_authenticated %}
<a href="{% url 'profile' %}">Профиль</a>
<a href="#">Мои заказы</a>
<a href="#">Мой кошелёк</a>
<a href="#">Мои записи</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>
<main id="content">
{% block content %} тут должен быть контент {% endblock %}
</main>
{# <footer> {% block footer %} {% endblock %} </footer>#}
{# <script src="{% static 'js/main.js' %}"></script>#}
</body>
</html>