Link 'Helfer*innen' in navbar to team overview when user is authenticated

pull/1/head
Luca 2 years ago
parent 3d217db98d
commit 00d5dfe22d

@ -75,7 +75,7 @@
<nav class="navbar"> <nav class="navbar">
<div class="container"> <div class="container">
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item has-text-weight-bold" href="{% url 'index' %}">Helfer*innen</a> <a class="navbar-item has-text-weight-bold" href="{% if user.is_authenticated %}{% url 'team:index' %}{% else %}{% url 'index' %}{% endif %}">Helfer*innen</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="main-nav"> <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="main-nav">
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
<span aria-hidden="true"></span> <span aria-hidden="true"></span>

Loading…
Cancel
Save