templates/base/topnav.html.twig line 1
<nav class="navbar"><div class="container"><div class="navbar-brand"><a class="navbar-item" href="{{ path('app_home') }}"><img id="topnavlogo" src="{{ asset('Logo.jpg', 'images') }}" alt="Logo"> Diapersoft API</a><span class="navbar-burger burger" data-target="navbarMenu"><span></span><span></span><span></span></span></div><div id="navbarMenu" class="navbar-menu"><div class="navbar"><a class="navbar-item {% if app.request.get('_route') == 'app_board_new' %}is-active{% endif %}" href="{{ path('app_board_new') }}">neues Board erstellen.</a>{% if is_granted('ROLE_ADMIN') %} <a class="navbar-item {% if app.request.get('_route') == 'app_board_index' %}is-active{% endif %}" href="{{ path('app_board_index') }}">Board Verwaltung</a> {% endif %}{% if is_granted('ROLE_ADMIN') %} <a class="navbar-item {% if app.request.get('_route') == 'app_user_index' %}is-active{% endif %}" href="{{ path('app_user_index') }}">user Verwaltung</a> {% endif %}{% if is_granted('ROLE_ADMIN') %}<div class="navbar-item has-dropdown is-hoverable"><a class="navbar-link">More</a><div class="navbar-dropdown"><a class="navbar-item {% if app.request.get('_route') == 'app_search' %}is-active{% endif %}" href="{{ path('app_search') }}">Datenbank füllen</a><a class="navbar-item {% if app.request.get('_route') == 'app_tmdb_movie' %}is-active{% endif %}" href="{{ path('app_tmdb_movie') }}">TMDB Eintäge anzeigen</a><a class="navbar-item {% if app.request.get('_route') == 'app_letterboxd' %}is-active{% endif %}" href="{{ path('app_letterboxd') }}">Letterboxd get Updates</a><a class="navbar-item {% if app.request.get('_route') == 'app_movie_diary_index' %}is-active{% endif %}" href="{{ path('app_movie_diary_index') }}">MovieDiary Verwaltung</a></div></div>{% endif %}</div><div class="navbar-end"><span class="navbar-item">{% if app.user %}Du bist als {{ app.user.userIdentifier }} eingeloggt. <a href="{{ path('app_logout') }}">Logout</a>{% else %}<a href="{{ path('app_login') }}">Login</a>{% endif %}</span></div></div></div></nav><script>document.addEventListener('DOMContentLoaded', () => {// Get all "navbar-burger" elementsconst $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);// Add a click event on each of them$navbarBurgers.forEach( el => {el.addEventListener('click', () => {// Get the target from the "data-target" attributeconst target = el.dataset.target;const $target = document.getElementById(target);// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"el.classList.toggle('is-active');$target.classList.toggle('is-active');});});});</script>