fix ci; nicer explanation; subpages
All checks were successful
CI/CD Pipeline / test (push) Successful in 7m26s
CI/CD Pipeline / deploy-main (push) Successful in 4m6s

This commit is contained in:
2024-12-11 20:15:08 +01:00
parent 64ca9826ea
commit 80f7120085
7 changed files with 203 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ function setChoiceByLabel(choicesInstance, label) {
<div class="flex items-center">
{% if loggedin_user.amount_unread_notifications > 0 %}
<a href="/#notification"
<a href="/notifications"
class="relative inline-flex items-end ms-2 me-3">
<svg height="20"
width="24"
@@ -110,11 +110,62 @@ function setChoiceByLabel(choicesInstance, label) {
<div class="hidden">
<div id="mobile-menu">
<a href="/" class="block w-100 py-2 hover:text-primary-600">Geplante Ausfahrten</a>
<a href="/kalender" class="block w-100 py-2 hover:text-primary-600 border-t">Kalender</a>
{% if "admin" in loggedin_user.roles %}
<a href="/admin/user"
class="block w-100 py-2 hover:text-primary-600 border-t">Mitgliederverwaltung</a>
class="block w-100 py-2 hover:text-primary-600 border-t">Mitgliederverwaltung
<span class=""
onclick="event.preventDefault(); event.stopPropagation();this.nextElementSibling.showModal()">🛡️</span>
<dialog
class="max-w-screen-sm dark:bg-primary-600 dark:text-white rounded-md"
onclick="this.close()">
<div onclick="event.stopPropagation();" class="p-3">
<button type="button"
onclick="this.parentNode.parentNode.close()"
title="Schließen"
class="sidebar-close border-0 bg-primary-100 focus:bg-primary-50 text-black flex items-center justify-center transform rotate-45 absolute right-0 mr-3">
<svg class="inline h-5 w-5"
width="16"
height="16"
fill="currentColor"
viewBox="0 0 16 16">
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path>
</svg>
</button>
<div class="mt-8">
<p>
Diesen Punkt sehen nur Mitglieder mit der Rolle <q>admin</q>
</p>
</div>
</dialog>
</a>
<a href="/admin/log"
class="block w-100 py-2 hover:text-primary-600 border-t">Log</a>
class="block w-100 py-2 hover:text-primary-600 border-t">Log
<span class=""
onclick="event.preventDefault(); event.stopPropagation();this.nextElementSibling.showModal()">🛡️</span>
<dialog
class="max-w-screen-sm dark:bg-primary-600 dark:text-white rounded-md"
onclick="this.close()">
<div onclick="event.stopPropagation();" class="p-3">
<button type="button"
onclick="this.parentNode.parentNode.close()"
title="Schließen"
class="sidebar-close border-0 bg-primary-100 focus:bg-primary-50 text-black flex items-center justify-center transform rotate-45 absolute right-0 mr-3">
<svg class="inline h-5 w-5"
width="16"
height="16"
fill="currentColor"
viewBox="0 0 16 16">
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path>
</svg>
</button>
<div class="mt-8">
<p>
Diesen Punkt sehen nur Mitglieder mit der Rolle <q>admin</q>
</p>
</div>
</dialog>
</a>
{% endif %}
<a href="/auth/logout"
class="block w-100 py-2 hover:text-primary-600 border-t">Ausloggen