fix: auth on article page
This commit is contained in:
@@ -9,9 +9,23 @@
|
|||||||
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
|
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="auth-header">
|
||||||
<img src="{% static 'logo.svg' %}" />
|
<div class="logo-div">
|
||||||
<h1>Всё про IT</h1>
|
<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>
|
</div>
|
||||||
<h1 class="article-header">{{ post.title }}</h1>
|
<h1 class="article-header">{{ post.title }}</h1>
|
||||||
|
|
||||||
|
|||||||
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Reference in New Issue
Block a user