forked from Ruderverein-Donau-Linz/rowt
remove logs from menu; remove duplicate click listener
This commit is contained in:
parent
6b96c443ea
commit
1013f39298
@ -112,8 +112,10 @@ function setChoiceByLabel(choicesInstance, label) {
|
||||
<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 %}
|
||||
<div class="block w-100 py-2 border-t ">
|
||||
<a href="/admin/user"
|
||||
class="block w-100 py-2 hover:text-primary-600 border-t">Mitgliederverwaltung
|
||||
class="hover:text-primary-600">Mitgliederverwaltung
|
||||
</a>
|
||||
<span class=""
|
||||
onclick="event.preventDefault(); event.stopPropagation();this.nextElementSibling.showModal()">🛡️</span>
|
||||
<dialog
|
||||
@ -138,34 +140,7 @@ function setChoiceByLabel(choicesInstance, label) {
|
||||
</p>
|
||||
</div>
|
||||
</dialog>
|
||||
</a>
|
||||
<a href="/admin/log"
|
||||
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>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="/auth/logout"
|
||||
class="block w-100 py-2 hover:text-primary-600 border-t">Ausloggen
|
||||
|
Loading…
x
Reference in New Issue
Block a user