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']) }}