@@ -1130,7 +1130,7 @@
< li class = "nav-item" data-nav-fixed = "true" >
< a class = "nav-link {% if current_path == url_for('terminplan') %}nav-active{% endif %}" href = "{{ url_for('terminplan') }}" data-tutorial-tip = "Hier sehen Sie den Kalender mit den bestehenden Terminen." > Kalender< / a >
< / li >
{% if current_permissions.pages.get('terminplan', Tru e) and current_permissions.actions.get('can_insert', Tru e) %}
{% if current_permissions.pages.get('terminplan', Fals e) and current_permissions.actions.get('can_insert', Fals e) %}
< li class = "nav-item" >
< a class = "nav-link quick-link-pill {% if current_path == url_for('terminplaner.configure') %}nav-active{% endif %}" href = "{{ url_for('terminplaner.configure') }}" data-tutorial-tip = "Neuen Terminplan erstellen und an Ihr Team versenden." > Neue Planung< / a >
< / li >
@@ -1145,20 +1145,22 @@
< a class = "nav-link dropdown-toggle" href = "#" id = "termMoreDropdown" role = "button" data-bs-toggle = "dropdown" aria-expanded = "false" title = "Weitere Optionen" > Mehr Optionen< / a >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "termMoreDropdown" >
{% if 'username' in session %}
{% if current_permissions.pages.get('tutorial_page', Tru e) %}
{% if current_permissions.pages.get('tutorial_page', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('tutorial_page') }}" > Tutorial< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('admin_school_settings', False) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_school_settings') }}" > Schulstammdaten< / a > < / li >
{% if current_permissions.actions.get('can_view_logs', True) and current_permissions.pages.get('admin_audit_dashboard', True) %}
{% endif %}
{% if current_permissions.actions.get('can_view_logs', False) or current_permissions.pages.get('admin_audit_dashboard', False) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_audit_dashboard') }}" > Audit Dashboard< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
{% endif %}
{% if current_permissions.pages.get('home', Tru e) %}
{% if current_permissions.pages.get('home', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('home') }}" > Inventarsystem< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('library_view', Tru e) and library_module_enabled %}
{% if current_permissions.pages.get('library_view', Fals e) and library_module_enabled %}
< li > < a class = "dropdown-item" href = "{{ url_for('library_view') }}" > Bibliothek< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1191,7 +1193,7 @@
< span class = "user-notification-dot {% if unread_notification_count and unread_notification_count > 0 %}visible{% endif %}" aria-hidden = "true" > < / span >
< / button >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "invUserMenuDropdown" >
{% if current_permissions.pages.get('notifications_view', Tru e) %}
{% if current_permissions.pages.get('notifications_view', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('notifications_view') }}" > Benachrichtigungen< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1214,13 +1216,13 @@
< / button >
< div class = "collapse navbar-collapse" id = "inventoryNavContent" >
< ul class = "navbar-nav me-auto mb-2 mb-lg-0" id = "inventoryNavList" >
{% if current_permissions.pages.get('home', Tru e) %}
{% if current_permissions.pages.get('home', Fals e) %}
< li class = "nav-item" data-nav-fixed = "true" >
< a class = "nav-link {% if current_path == url_for('home') %}nav-active{% endif %}" href = "{{ url_for('home') }}" data-tutorial-tip = "Starten Sie hier mit dem Materialbestand und suchen Sie nach Artikeln." > Artikel< / a >
< / li >
{% endif %}
{% if 'username' in session %}
{% if current_permissions.pages.get('my_borrowed_items', Tru e) %}
{% if current_permissions.pages.get('my_borrowed_items', Fals e) %}
< li class = "nav-item" >
< a class = "nav-link quick-link-pill {% if current_path == url_for('my_borrowed_items') %}nav-active{% endif %}" href = "{{ url_for('my_borrowed_items') }}" data-tutorial-tip = "Ihre aktuellen Ausleihen und Rückgaben finden Sie hier." > Meine Ausleihen< / a >
< / li >
@@ -1239,42 +1241,44 @@
< / a >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "invMoreDropdown" >
{% if 'username' in session %}
{% if current_permissions.pages.get('tutorial_page', Tru e) %}
{% if current_permissions.pages.get('tutorial_page', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('tutorial_page') }}" > Tutorial< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('upload_admin', Tru e) and current_permissions.actions.get('can_insert', Tru e) %}
{% if current_permissions.pages.get('upload_admin', Fals e) and current_permissions.actions.get('can_insert', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('upload_admin') }}" > ➕ Hochladen< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
{% endif %}
{% if 'username' in session and (session.get('admin', False) or is_admin) and current_permissions.actions.get('can_manage_settings', Tru e) %}
{% if 'username' in session and current_permissions.actions.get('can_manage_settings', Fals e) %}
< li > < h6 class = "dropdown-header" > Verwaltung< / h6 > < / li >
{% if current_permissions.pages.get('manage_filters', Tru e) %}
{% if current_permissions.pages.get('manage_filters', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('manage_filters') }}" > Filter verwalten< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('manage_locations', Tru e) %}
{% if current_permissions.pages.get('manage_locations', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('manage_locations') }}" > Orte verwalten< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('admin_school_settings', False) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_school_settings') }}" > Schulstammdaten< / a > < / li >
{% if current_permissions.pages.get('admin_borrowings', True) %}
{% endif %}
{% if current_permissions.pages.get('admin_borrowings', False) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_borrowings') }}" > Ausleihen< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('admin_damaged_items', Tru e) %}
{% if current_permissions.pages.get('admin_damaged_items', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_damaged_items') }}" > Defekte Items< / a > < / li >
{% endif %}
{% if current_permissions.actions.get('can_view_logs', Tru e) and current_permissions.pages.get('admin_audit_dashboard', Tru e) %}
{% if current_permissions.actions.get('can_view_logs', Fals e) and current_permissions.pages.get('admin_audit_dashboard', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_audit_dashboard') }}" > Audit Dashboard< / a > < / li >
{% endif %}
{% if current_permissions.actions.get('can_view_logs', Tru e) and current_permissions.pages.get('logs', Tru e) %}
{% if current_permissions.actions.get('can_view_logs', Fals e) and current_permissions.pages.get('logs', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('logs') }}" > Logs< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
{% if current_permissions.actions.get('can_manage_users', Tru e) %}
{% if current_permissions.actions.get('can_manage_users', Fals e) %}
< li > < h6 class = "dropdown-header" > System< / h6 > < / li >
{% if current_permissions.pages.get('user_del', Tru e) %}
{% if current_permissions.pages.get('user_del', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('user_del') }}" > Benutzer verwalten< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('register', Tru e) %}
{% if current_permissions.pages.get('register', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('register') }}" > Neuer Benutzer< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1311,7 +1315,7 @@
< span class = "user-notification-dot {% if unread_notification_count and unread_notification_count > 0 %}visible{% endif %}" aria-hidden = "true" > < / span >
< / button >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "invUserMenuDropdown" >
{% if current_permissions.pages.get('notifications_view', Tru e) %}
{% if current_permissions.pages.get('notifications_view', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('notifications_view') }}" > Benachrichtigungen< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1336,19 +1340,19 @@
< / button >
< div class = "collapse navbar-collapse" id = "libraryNavContent" >
< ul class = "navbar-nav me-auto mb-2 mb-lg-0" id = "libraryNavList" >
{% if current_permissions.pages.get('library_view', Tru e) %}
{% if current_permissions.pages.get('library_view', Fals e) %}
< li class = "nav-item" data-nav-fixed = "true" >
< a class = "nav-link {% if current_path == url_for('library_view') %}nav-active{% endif %}" href = "{{ url_for('library_view') }}" data-tutorial-tip = "Die Bibliothek zeigt Ihnen alle Medien und verfügbaren Bücher." > Medien< / a >
< / li >
{% endif %}
{% if 'username' in session %}
{% if current_permissions.pages.get('tutorial_page', Tru e) %}
{% if current_permissions.pages.get('tutorial_page', Fals e) %}
< li class = "nav-item" >
< a class = "nav-link quick-link-pill {% if current_path == url_for('tutorial_page') %}nav-active{% endif %}" href = "{{ url_for('tutorial_page') }}" data-tutorial-tip = "Nutzen Sie das Tutorial, um die Bibliotheksfunktionen kennenzulernen." > Tutorial< / a >
< / li >
{% endif %}
{% endif %}
{% if 'username' in session and current_permissions.actions.get('can_insert', Tru e) and current_permissions.pages.get('library_admin', Tru e) %}
{% if 'username' in session and current_permissions.actions.get('can_insert', Fals e) and current_permissions.pages.get('library_admin', Fals e) %}
< li class = "nav-item" >
< a class = "nav-link nav-priority-link {% if current_path == url_for('library_admin') %}nav-active{% endif %}" href = "{{ url_for('library_admin') }}" data-tutorial-tip = "Neue Bibliotheksmedien können hier aufgenommen werden." > 📖 Hochladen< / a >
< / li >
@@ -1365,22 +1369,24 @@
Mehr Optionen
< / a >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "libMoreDropdown" >
{% if 'username' in session and (session.get('admin', False) or is_admin) and current_permissions.actions.get('can_manage_settings', Tru e) %}
{% if 'username' in session and current_permissions.actions.get('can_manage_settings', Fals e) %}
< li > < h6 class = "dropdown-header" > Bibliotheks-Verwaltung< / h6 > < / li >
{% if current_permissions.pages.get('library_loans_admin', Tru e) %}
{% if current_permissions.pages.get('library_loans_admin', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('library_loans_admin') }}" > Ausleihen / Defekte Items< / a > < / li >
{% endif %}
{% if student_cards_module_enabled %}
< li > < a class = "dropdown-item" href = "{{ url_for('student_cards_admin') }}" > Bibliotheksausweis< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('admin_school_settings', False) %}
< li > < a class = "dropdown-item" href = "{{ url_for('admin_school_settings') }}" > Schulstammdaten< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
{% if current_permissions.actions.get('can_manage_users', Tru e) %}
{% if current_permissions.actions.get('can_manage_users', Fals e) %}
< li > < h6 class = "dropdown-header" > System< / h6 > < / li >
{% if current_permissions.pages.get('user_del', Tru e) %}
{% if current_permissions.pages.get('user_del', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('user_del') }}" > Benutzer verwalten< / a > < / li >
{% endif %}
{% if current_permissions.pages.get('register', Tru e) %}
{% if current_permissions.pages.get('register', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('register') }}" > Neuer Benutzer< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1414,7 +1420,7 @@
< span class = "user-notification-dot {% if unread_notification_count and unread_notification_count > 0 %}visible{% endif %}" aria-hidden = "true" > < / span >
< / button >
< ul class = "dropdown-menu dropdown-menu-end" aria-labelledby = "libUserMenuDropdown" >
{% if current_permissions.pages.get('notifications_view', Tru e) %}
{% if current_permissions.pages.get('notifications_view', Fals e) %}
< li > < a class = "dropdown-item" href = "{{ url_for('notifications_view') }}" > Benachrichtigungen< / a > < / li >
{% endif %}
< li > < hr class = "dropdown-divider" > < / li >
@@ -1642,30 +1648,79 @@
< / div >
< datalist id = "function-search-options" >
{% if current_permissions.pages.get('home', False) %}
< option value = "Artikel" > < / option >
< option value = "Meine Ausleihen" > < / option >
< option value = "Benachrichtigungen" > < / option >
< option value = "Tutorial" > < / option >
{% endif %}
{% if 'username' in session %}
{% if current_permissions.pages.get('my_borrowed_items', False) %}
< option value = "Meine Ausleihen" > < / option >
{% endif %}
{% if current_permissions.pages.get('notifications_view', False) %}
< option value = "Benachrichtigungen" > < / option >
{% endif %}
{% if current_permissions.pages.get('tutorial_page', False) %}
< option value = "Tutorial" > < / option >
{% endif %}
{% endif %}
< option value = "Impressum" > < / option >
< option value = "Lizenz" > < / option >
{% if library_module_enabled %}
< option value = "Bibliothek" > < / option >
< option value = "Meine Medien " > < / option >
{% endif %}
{% if 'username' in session and (session.get('admin', False) or is_admin ) %}
< option value = "Hochlad en" > < / option >
< option value = "Ausleihen Verwaltung" > < / option >
< option value = "Defekte Items" > < / option >
< option value = "Filter verwalten" > < / option >
< option value = "Orte verwalten" > < / option >
< option value = "Schulstammdaten" > < / option >
< option value = "Audit Dashboard" > < / option >
< option value = "Logs" > < / option >
< option value = "Benutzer verwalten" > < / option >
< option value = "Neuer Benutzer" > < / option >
{% if student_cards_module_enabled %}
< option value = "Bibliotheksausweis" > < / option >
{% if current_permissions.pages.get('library_view', False) %}
< option value = "Bibliothek " > < / option >
{% endif %}
{% if 'username' in session and current_permissions.pages.get('my_borrowed_items', False ) %}
< option value = "Meine Medi en" > < / option >
{% endif %}
{% endif %}
{% if 'username' in session %}
{% if current_permissions.pages.get('upload_admin', False) and current_permissions.actions.get('can_insert', False) %}
< option value = "Hochladen" > < / option >
{% endif %}
{% if current_permissions.pages.get('admin_borrowings', False) or current_permissions.pages.get('library_loans_admin', False) %}
< option value = "Ausleihen Verwaltung" > < / option >
{% endif %}
{% if current_permissions.pages.get('admin_damaged_items', False) or current_permissions.pages.get('library_loans_admin', False) %}
< option value = "Defekte Items" > < / option >
{% endif %}
{% if current_permissions.pages.get('manage_filters', False) %}
< option value = "Filter verwalten" > < / option >
{% endif %}
{% if current_permissions.pages.get('manage_locations', False) %}
< option value = "Orte verwalten" > < / option >
{% endif %}
{% if current_permissions.pages.get('admin_school_settings', False) %}
< option value = "Schulstammdaten" > < / option >
{% endif %}
{% if current_permissions.actions.get('can_view_logs', False) and current_permissions.pages.get('admin_audit_dashboard', False) %}
< option value = "Audit Dashboard" > < / option >
{% endif %}
{% if current_permissions.actions.get('can_view_logs', False) and current_permissions.pages.get('logs', False) %}
< option value = "Logs" > < / option >
{% endif %}
{% if current_permissions.actions.get('can_manage_users', False) %}
{% if current_permissions.pages.get('user_del', False) %}
< option value = "Benutzer verwalten" > < / option >
{% endif %}
{% if current_permissions.pages.get('register', False) %}
< option value = "Neuer Benutzer" > < / option >
{% endif %}
{% endif %}
{% if student_cards_module_enabled and current_permissions.pages.get('student_cards_admin', False) %}
< option value = "Bibliotheksausweis" > < / option >
{% endif %}
{% endif %}
< / datalist >
@@ -1713,32 +1768,80 @@
const loginHintKey = username ? ( 'inventarsystem_notification_login_hint_v1_' + username ) : null ;
const functionSearchEntries = [
{ % if current _permissions . pages . get ( 'home' , False ) % }
{ label : 'Artikel' , keywords : [ 'artikel' , 'inventar' , 'home' ] , url : { { url _for ( 'home' ) | tojson } } } ,
{ label : 'Meine Ausleihen' , keywords : [ 'meine ausleihen' , 'ausleihen' , 'borrowed' ] , url : { { url _for ( 'my_borrowed_items' ) | tojson } } } ,
{ label : 'Benachrichtigungen' , keywords : [ 'benachrichtigungen' , 'nachrichten' , 'notifications' ] , url : { { url _for ( 'notifications_view' ) | tojson } } } ,
{ label : 'Tutorial' , keywords : [ 'tutorial' , 'hilfe' , 'anleitung' ] , url : { { url _for ( 'tutorial_page' ) | tojson } } } ,
{ % endif % }
{ % if 'username' in session % }
{ % if current _permissions . pages . get ( 'my_borrowed_items' , False ) % }
{ label : 'Meine Ausleihen' , keywords : [ 'meine ausleihen' , 'ausleihen' , 'borrowed' ] , url : { { url _for ( 'my_borrowed_items' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'notifications_view' , False ) % }
{ label : 'Benachrichtigungen' , keywords : [ 'benachrichtigungen' , 'nachrichten' , 'notifications' ] , url : { { url _for ( 'notifications_view' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'tutorial_page' , False ) % }
{ label : 'Tutorial' , keywords : [ 'tutorial' , 'hilfe' , 'anleitung' ] , url : { { url _for ( 'tutorial_page' ) | tojson } } } ,
{ % endif % }
{ % endif % }
{ label : 'Impressum' , keywords : [ 'impressum' ] , url : { { url _for ( 'impressum' ) | tojson } } } ,
{ label : 'Lizenz' , keywords : [ 'lizenz' , 'license' ] , url : { { url _for ( 'license' ) | tojson } } } ,
{ % if library _module _enabled % }
{ label : 'Bibliothek' , keywords : [ 'bibliothek' , 'medien' ] , url : { { url _for ( 'library_view' ) | tojson } } } ,
{ % endif % }
{ % if 'username' in session and ( session . get ( 'admin' , False ) or is _admin ) % }
{ label : 'Hochladen' , keywords : [ 'hochladen' , 'upload' ] , url : { { url _for ( 'upload_admin' ) | tojson } } } ,
{ label : 'Ausleihen Verwaltung' , keywords : [ 'ausleihen verwaltung' , 'admin borrowings' ] , url : { { url _for ( 'admin_borrowings' ) | tojson } } } ,
{ label : 'Defekte Items' , keywords : [ 'defekte items' , 'defekt' , 'schaden' ] , url : { { url _for ( 'admin_damaged_items' ) | tojson } } } ,
{ label : 'Filter verwalten' , keywords : [ 'filter verwalten' , 'filter' ] , url : { { url _for ( 'manage_filters' ) | tojson } } } ,
{ label : 'Orte verwalten' , keywords : [ 'orte verwalten' , 'orte' , 'location' ] , url : { { url _for ( 'manage_locations' ) | tojson } } } ,
{ label : 'Schulstammdaten' , keywords : [ 'schule' , 'settings' , 'stammdaten' , 'school settings' ] , url : { { url _for ( 'admin_school_settings' ) | tojson } } } ,
{ label : 'Audit Dashboard' , keywords : [ 'audit' , 'audit dashboard' ] , url : { { url _for ( 'admin_audit_dashboard' ) | tojson } } } ,
{ label : 'Logs' , keywords : [ 'logs' , 'protokoll' ] , url : { { url _for ( 'logs' ) | tojson } } } ,
{ label : 'Benutzer verwalten' , keywords : [ 'benutzer verwalten' , 'user' ] , url : { { url _for ( 'user_del' ) | tojson } } } ,
{ label : 'Neuer Benutzer' , keywords : [ 'neuer benutzer' , 'register' ] , url : { { url _for ( 'register' ) | tojson } } } ,
{ % if library _module _enabled % }
{ label : 'Bibliotheks-Ausleihen' , keywords : [ 'bibliotheks ausleihen' , 'library loans' ] , url : { { url _for ( 'library_loans_admin' ) | tojson } } } ,
{ % endif % }
{ % if student _cards _module _enabled % }
{ label : 'Bibliotheksausweis' , keywords : [ 'bibliotheksausweis' , 'student card' ] , url : { { url _for ( 'student_cards_admin' ) | tojson } } } ,
{ % if current _permissions . pages . get ( 'library_view' , False ) % }
{ label : 'Bibliothek' , keywords : [ 'bibliothek' , 'medien' ] , url : { { url _for ( 'library_view' ) | tojson } } } ,
{ % endif % }
{ % endif % }
{ % if 'username' in session % }
{ % if current _permissions . pages . get ( 'upload_admin' , False ) and current _permissions . actions . get ( 'can_insert' , False ) % }
{ label : 'Hochladen' , keywords : [ 'hochladen' , 'upload' ] , url : { { url _for ( 'upload_admin' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'admin_borrowings' , False ) % }
{ label : 'Ausleihen Verwaltung' , keywords : [ 'ausleihen verwaltung' , 'admin borrowings' ] , url : { { url _for ( 'admin_borrowings' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'admin_damaged_items' , False ) % }
{ label : 'Defekte Items' , keywords : [ 'defekte items' , 'defekt' , 'schaden' ] , url : { { url _for ( 'admin_damaged_items' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'manage_filters' , False ) % }
{ label : 'Filter verwalten' , keywords : [ 'filter verwalten' , 'filter' ] , url : { { url _for ( 'manage_filters' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'manage_locations' , False ) % }
{ label : 'Orte verwalten' , keywords : [ 'orte verwalten' , 'orte' , 'location' ] , url : { { url _for ( 'manage_locations' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'admin_school_settings' , False ) % }
{ label : 'Schulstammdaten' , keywords : [ 'schule' , 'settings' , 'stammdaten' , 'school settings' ] , url : { { url _for ( 'admin_school_settings' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . actions . get ( 'can_view_logs' , False ) and current _permissions . pages . get ( 'admin_audit_dashboard' , False ) % }
{ label : 'Audit Dashboard' , keywords : [ 'audit' , 'audit dashboard' ] , url : { { url _for ( 'admin_audit_dashboard' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . actions . get ( 'can_view_logs' , False ) and current _permissions . pages . get ( 'logs' , False ) % }
{ label : 'Logs' , keywords : [ 'logs' , 'protokoll' ] , url : { { url _for ( 'logs' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . actions . get ( 'can_manage_users' , False ) % }
{ % if current _permissions . pages . get ( 'user_del' , False ) % }
{ label : 'Benutzer verwalten' , keywords : [ 'benutzer verwalten' , 'user' ] , url : { { url _for ( 'user_del' ) | tojson } } } ,
{ % endif % }
{ % if current _permissions . pages . get ( 'register' , False ) % }
{ label : 'Neuer Benutzer' , keywords : [ 'neuer benutzer' , 'register' ] , url : { { url _for ( 'register' ) | tojson } } } ,
{ % endif % }
{ % endif % }
{ % if library _module _enabled and current _permissions . pages . get ( 'library_loans_admin' , False ) % }
{ label : 'Bibliotheks-Ausleihen' , keywords : [ 'bibliotheks ausleihen' , 'library loans' ] , url : { { url _for ( 'library_loans_admin' ) | tojson } } } ,
{ % endif % }
{ % if student _cards _module _enabled and current _permissions . pages . get ( 'student_cards_admin' , False ) % }
{ label : 'Bibliotheksausweis' , keywords : [ 'bibliotheksausweis' , 'student card' ] , url : { { url _for ( 'student_cards_admin' ) | tojson } } } ,
{ % endif % }
{ % endif % }
] ;