From cb8b929c3c09c25eb33515e604bd1cfabe4d1369 Mon Sep 17 00:00:00 2001 From: alientim Date: Sat, 22 Aug 2026 20:20:13 +0200 Subject: [PATCH] Auditlog: Hinzufuegen gruen, Loeschen rot, Bearbeiten orange (v1.1.5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Neue Pill-Farbvarianten (.action-pill--create/--delete/--edit) je nach Aktions-Art -- "create"/"upload"/"mkdir" gruen, "delete" rot, alles andere (bearbeiten/aktivieren/zuweisen/...) orange als Sammelkategorie. - Fehlende Klartext-Label fuer die neuen fileshare.*-Aktionen ergaenzt (upload/mkdir/delete/rename/download) -- vorher stand dort noch der rohe Aktionsschluessel wie "fileshare.delete" statt eines lesbaren Textes wie bei allen anderen Aktionen. Live auf POETEST verifiziert: alle drei Farben korrekt (gruen bei "Datei(en) hochgeladen"/"Gruppe angelegt", rot bei "Datei/Ordner gelöscht"/"Gruppe gelöscht", orange bei "Als ZIP heruntergeladen"/ "Gruppe bearbeitet"). Co-Authored-By: Claude Sonnet 5 --- srv/tesm/VERSION | 2 +- srv/tesm/static/css/style.css | 5 +++++ srv/tesm/templates/activity_log.html | 13 ++++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/srv/tesm/VERSION b/srv/tesm/VERSION index 65087b4..e25d8d9 100644 --- a/srv/tesm/VERSION +++ b/srv/tesm/VERSION @@ -1 +1 @@ -1.1.4 +1.1.5 diff --git a/srv/tesm/static/css/style.css b/srv/tesm/static/css/style.css index 98b328e..8062126 100644 --- a/srv/tesm/static/css/style.css +++ b/srv/tesm/static/css/style.css @@ -516,6 +516,11 @@ button { font-family: inherit; } .pill.action-pill { background: var(--muted-dim); color: var(--text-dim); } .pill.action-pill::before { display: none; } .pill.action-pill svg { width: 13px; height: 13px; } +/* Auditlog: Hinzufuegen gruen, Loeschen rot, alles andere (Bearbeiten/ + Aktivieren/Zuweisen/...) orange -- siehe activity_log.html */ +.pill.action-pill--create { background: var(--success-dim); color: var(--success); } +.pill.action-pill--delete { background: var(--danger-dim); color: var(--danger); } +.pill.action-pill--edit { background: var(--accent-dim); color: var(--accent-strong); } .avatar-sm { display: inline-flex; diff --git a/srv/tesm/templates/activity_log.html b/srv/tesm/templates/activity_log.html index 225a7b7..020e031 100644 --- a/srv/tesm/templates/activity_log.html +++ b/srv/tesm/templates/activity_log.html @@ -29,6 +29,11 @@ "profile.update": "Profil aktualisiert", "profile.password": "Passwort geändert", "check.run_now": "Prüfung manuell gestartet", + "fileshare.upload": "Datei(en) hochgeladen", + "fileshare.mkdir": "Ordner angelegt", + "fileshare.delete": "Datei/Ordner gelöscht", + "fileshare.rename": "Datei/Ordner umbenannt", + "fileshare.download": "Als ZIP heruntergeladen", } %} {% set action_icons = { "delete": '', @@ -37,6 +42,12 @@ "activate": '', "deactivate": '', } %} +{% set action_kind_class = { + "create": "action-pill--create", + "upload": "action-pill--create", + "mkdir": "action-pill--create", + "delete": "action-pill--delete", +} %}
@@ -56,7 +67,7 @@ {{ e['ts'] }} {{ e['username'] }} - + {{ (action_icons.get(kind) or action_icons['edit'])|safe }} {{ action_labels.get(e['action'], e['action']) }}