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' %}"/>
|
||||
</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>
|
||||
|
||||
|
||||
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Reference in New Issue
Block a user