Commit bd11585e authored by Falk, Dennis Nikolas's avatar Falk, Dennis Nikolas
Browse files

Adminbereich Link, bei Staff User Login, in den Footer hinzugefügt.

parent b904b9b7
......@@ -35,6 +35,10 @@
<li class="nav-item"><a class="nav-link" href="{% url 'blog:user_login' %}">Login</a></li>
{% endif %}
{% if user.is_authenticated and user.is_staff %}
<li class="nav-item"><a class="nav-link" href="/admin">Adminbereich</a></li>
{% endif %}
<li class="nav-item"><a class="nav-link" href="{% url 'blog:blog-detail' slug='impress' %}">Impressum</a></li>
<li class="nav-item"><a class="nav-link" href="{% url 'blog:blog-detail' slug='contact' %}">Kontakt</a></li>
</ul>
......
......@@ -21,7 +21,7 @@ from startpage import views
from django.conf.urls import url, include
urlpatterns = [
path('admin/', admin.site.urls),
path('admin/', admin.site.urls, name='admin_area'),
path('', views.home, name='home'),
path('blog/', include('blog.urls')),
path('startpage/', include('startpage.urls')),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment