From 548bab93e55f6e514557571d3c9da9b1c1d59c35 Mon Sep 17 00:00:00 2001
From: Server-Bibliothek <server-bibliothek@lokal>
Date: Do, 23 Jul 2026 15:07:49 +0200
Subject: [PATCH] Zugriffsbeschraenkung: voller Zugriff nur lokal am Server, Netzwerk nur Software-Anforderung + Zugriffsprotokoll
---
templates/base.html | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/templates/base.html b/templates/base.html
index 8ababe5..f21dcc9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -14,17 +14,26 @@
<div class="brand-text">Server-Bibliothek<small>Software & Doku-Ablage</small></div>
</div>
<nav class="nav">
+ {% if ist_lokal %}
<a href="{{ url_for('dashboard') }}" class="{{ 'active' if request.endpoint == 'dashboard' }}">
<span class="nav-dot"></span> Software-Katalog
</a>
<a href="{{ url_for('protokolle') }}" class="{{ 'active' if request.endpoint in ['protokolle', 'protokoll_detail', 'zuweisung_neu'] }}">
<span class="nav-dot"></span> Protokolle
</a>
+ <a href="{{ url_for('zugriffslog') }}" class="{{ 'active' if request.endpoint == 'zugriffslog' }}">
+ <span class="nav-dot"></span> Zugriffsprotokoll
+ </a>
<a href="{{ url_for('einrichten') }}" class="{{ 'active' if request.endpoint == 'einrichten' }}">
<span class="nav-dot"></span> Rechner einrichten
</a>
+ {% else %}
+ <a href="{{ url_for('einrichten') }}" class="active">
+ <span class="nav-dot"></span> Software anfordern
+ </a>
+ {% endif %}
</nav>
- <div class="sidebar-foot">Version: {{ app_version }}</div>
+ <div class="sidebar-foot">Version: {{ app_version }}{% if not ist_lokal %}<br>Netzwerkzugriff{% endif %}</div>
</aside>
<main class="main">
{% with messages = get_flashed_messages(with_categories=true) %}
--
Gitblit v1.9.3