2020-12-27 01:33:07 +01:00
|
|
|
{% load static %}
|
|
|
|
|
2020-12-07 21:41:55 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2020-12-27 01:33:07 +01:00
|
|
|
<link rel="stylesheet" href="{% static 'css/style.css' %}">
|
2021-01-08 22:25:51 +01:00
|
|
|
<link href = "https://fonts.googleapis.com/css?family=Dosis" rel='stylesheet'>
|
|
|
|
<link href = "https://fonts.googleapis.com/css?family=Poppins" rel='stylesheet'>
|
2021-01-27 20:09:55 +01:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
2020-12-07 21:41:55 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-01-08 22:25:51 +01:00
|
|
|
<div class='header-smart-baner'> <!-- TOP HEADER SMART BANER-->
|
|
|
|
<div class='header-smart-baner-text'> Lubisz ciasteczka? Mamy ich naprawdę duzo.</div>
|
|
|
|
</div> <!-- TOP HEADER SMART BANER END-->
|
|
|
|
<div class='header'>
|
|
|
|
<div class='container'>
|
|
|
|
<div class='header-inner'>
|
|
|
|
<div class='header-logo'> <a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/'> vagus </a> </div>
|
|
|
|
<div class='header-nav'>
|
|
|
|
<a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/offers'>KAMPERY </a>
|
|
|
|
<a href='#'>O NAS </a>
|
|
|
|
<a href='#'>FAQ</a>
|
|
|
|
<a href='#'>KONTAKT </a>
|
|
|
|
<a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/add-offer'>DODAJ OFERTĘ </a>
|
|
|
|
<div class='header-nav-bar'>
|
|
|
|
<div class='header-nav-bar-container'>
|
|
|
|
<div class='header-nav-bar-text'>
|
|
|
|
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
{% if user.status != 'Moderator' %}
|
2021-01-27 20:09:55 +01:00
|
|
|
<a class='link' href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/profile'> Witaj, {{ user.first_name }} </a>
|
2021-01-08 22:25:51 +01:00
|
|
|
{% else %}
|
2021-01-27 20:09:55 +01:00
|
|
|
<a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/profile'>Witaj, Adminie </a>
|
2021-01-08 22:25:51 +01:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2021-01-27 20:09:55 +01:00
|
|
|
<a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/signup'>Witaj, nieznajomy </a>
|
2021-01-08 22:25:51 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-01-27 20:09:55 +01:00
|
|
|
<div class='header-nav-bar-avatar'>
|
|
|
|
{% if user.avatar %}
|
|
|
|
<img src={{ user.avatar.url }}>
|
|
|
|
{% else %}
|
|
|
|
<img src='/media/avatars/default.png'>
|
|
|
|
{%endif%}
|
|
|
|
</div>
|
2021-01-08 22:25:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='container'>
|
|
|
|
{% if messages %}
|
|
|
|
<ul class="messages">
|
|
|
|
{% for message in messages %}
|
|
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
<div class='main-content'>
|
|
|
|
{% block content %}
|
2020-12-07 21:41:55 +01:00
|
|
|
|
2021-01-08 22:25:51 +01:00
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-07 21:41:55 +01:00
|
|
|
</body>
|
2021-01-08 22:25:51 +01:00
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|