Auditlog: Hinzufuegen gruen, Loeschen rot, Bearbeiten orange (v1.1.5)

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 20:20:13 +02:00
co-authored by Claude Sonnet 5
parent af5dfe30b4
commit cb8b929c3c
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
1.1.4 1.1.5
+5
View File
@@ -516,6 +516,11 @@ button { font-family: inherit; }
.pill.action-pill { background: var(--muted-dim); color: var(--text-dim); } .pill.action-pill { background: var(--muted-dim); color: var(--text-dim); }
.pill.action-pill::before { display: none; } .pill.action-pill::before { display: none; }
.pill.action-pill svg { width: 13px; height: 13px; } .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 { .avatar-sm {
display: inline-flex; display: inline-flex;
+12 -1
View File
@@ -29,6 +29,11 @@
"profile.update": "Profil aktualisiert", "profile.update": "Profil aktualisiert",
"profile.password": "Passwort geändert", "profile.password": "Passwort geändert",
"check.run_now": "Prüfung manuell gestartet", "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 = { {% set action_icons = {
"delete": '<path d="M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2m3 0l-1 14a2 2 0 01-2 2H7a2 2 0 01-2-2L4 6"/>', "delete": '<path d="M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2m3 0l-1 14a2 2 0 01-2 2H7a2 2 0 01-2-2L4 6"/>',
@@ -37,6 +42,12 @@
"activate": '<path d="M20 6L9 17l-5-5"/>', "activate": '<path d="M20 6L9 17l-5-5"/>',
"deactivate": '<circle cx="12" cy="12" r="9"/><path d="M15 9l-6 6M9 9l6 6"/>', "deactivate": '<circle cx="12" cy="12" r="9"/><path d="M15 9l-6 6M9 9l6 6"/>',
} %} } %}
{% set action_kind_class = {
"create": "action-pill--create",
"upload": "action-pill--create",
"mkdir": "action-pill--create",
"delete": "action-pill--delete",
} %}
<div class="table-wrap"> <div class="table-wrap">
<div style="overflow-x:auto;"> <div style="overflow-x:auto;">
@@ -56,7 +67,7 @@
<td class="text-dim mono" style="font-size:12.5px;">{{ e['ts'] }}</td> <td class="text-dim mono" style="font-size:12.5px;">{{ e['ts'] }}</td>
<td class="cell-name">{{ e['username'] }}</td> <td class="cell-name">{{ e['username'] }}</td>
<td> <td>
<span class="pill action-pill"> <span class="pill action-pill {{ action_kind_class.get(kind, 'action-pill--edit') }}">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">{{ (action_icons.get(kind) or action_icons['edit'])|safe }}</svg> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">{{ (action_icons.get(kind) or action_icons['edit'])|safe }}</svg>
{{ action_labels.get(e['action'], e['action']) }} {{ action_labels.get(e['action'], e['action']) }}
</span> </span>