fix: auth on article page

This commit is contained in:
root
2025-10-13 22:38:58 +03:00
parent b3988797c5
commit 749ea2af21
2 changed files with 17 additions and 3 deletions

View File

@@ -9,9 +9,23 @@
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
</head>
<body>
<div class="header">
<img src="{% static 'logo.svg' %}" />
<h1>Всё про IT</h1>
<div class="auth-header">
<div class="logo-div">
<img src="{% static 'logo.svg' %}" />
<h1>Всё про IT</h1>
</div>
<div>
{% block auth %}
{% if not user.is_anonymous %}
<a href="/logout/">Выйти</a>
{% else %}
<a href="/login/">Вход</a>
<p class="login-sep">/</p>
<a href="/registration/">Регистрация</a>
{% endif %}
{% endblock %}
</div>
</div>
<h1 class="article-header">{{ post.title }}</h1>

Binary file not shown.