{% load static %}
<!DOCTYPE html>
<html lang="ru">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width">
		<title>{% block titletext %}{% endblock %}</title>
		<link href="{% static 'main/src/styles/style.css' %}" rel="stylesheet" media="screen" />
		<link rel="stylesheet" href="{% static 'main/src/styles/styleMobile.css' %}" media="handheld,only screen and (max-device-width:480px)" />
		<link rel="icon" href="{% static 'main/src/img/favicon.ico' %}">
		<!--<script src="src/scripts/jquery.min.js"></script>-->
	</head>
	<body id="main">
		<header id="header" class="default index-logo">
			<div class="logo-img">
				<a  href="{% url 'index' %}"><img class="header-img" src="{% static 'main/src/img/dhaverd2.png' %}"></a>
			</div>
		</header>
		<main>
			<section class="side-bar">
				<p class="mainp"><a class="side-href" href="{% url 'index' %}">Главная</a></p>
				<p class="gitea"><a class="side-href" href="http:\\176.114.129.4:3000">Gitea</a></p>
				<p class="servers"><a class="side-href" href="{% url 'servers' %}">Сервера</a></p>
				<p class="mychat"><a class="side-href" href="{% url 'mychat' %}">MyChat</a></p>
				<p class="workout-area"><a class="side-href" href="{% url 'workout' %}">Программа тренировок</a></p>
			</section>
			<section class="auth-section">
				{% if user.is_authenticated %}
					<a class="usernick">{{user}}</a>
					<a id="logout-link" href="{% url 'logout' %}">Выход</a>
				{% else %}
					<a id="login-link" href="{% url 'login' %}">Вход</a>
					<a id="registration-link" href="{% url 'register' %}">Регистрация</a>
				{% endif %}
			</section>
			{% block maincontent %}{% endblock %}
		</main>
		<footer>
			<section>
				<p id="footer">® Dhaverd 2022</p>
			</section>
		</footer>
		{% block javascripts %}{% endblock %}
	</body>	
</html>