From 6ca13dbab88ca7ea7a6c23ac199cd13b1bbe16b8 Mon Sep 17 00:00:00 2001 From: Eirik Sletteberg Date: Fri, 18 Apr 2025 17:28:30 +0200 Subject: [PATCH] A11y improvements --- static/locales/en/translation.json | 1 + static/locales/it/translation.json | 1 + templates/common/base.html | 45 +++++++++++++------------- templates/webadmin/base.html | 34 ++++++++++---------- templates/webadmin/eventaction.html | 4 +-- templates/webadmin/mfa.html | 8 ++--- templates/webclient/base.html | 6 ++-- templates/webclient/editfile.html | 4 +-- templates/webclient/files.html | 48 ++++++++++++++-------------- templates/webclient/mfa.html | 12 +++---- templates/webclient/shares.html | 4 +-- templates/webclient/shareupload.html | 2 +- 12 files changed, 85 insertions(+), 84 deletions(-) diff --git a/static/locales/en/translation.json b/static/locales/en/translation.json index 63646ee7a..02c2fce0d 100644 --- a/static/locales/en/translation.json +++ b/static/locales/en/translation.json @@ -103,6 +103,7 @@ "link": "Go to {{link}}" }, "theme": { + "switcher": "Switch theme", "light": "Light", "dark": "Dark", "system": "Auto" diff --git a/static/locales/it/translation.json b/static/locales/it/translation.json index 2a40aba97..feb49f2a7 100644 --- a/static/locales/it/translation.json +++ b/static/locales/it/translation.json @@ -103,6 +103,7 @@ "link": "Vai a {{link}}" }, "theme": { + "switcher": "Cambia tema", "light": "Chiaro", "dark": "Scuro", "system": "Auto" diff --git a/templates/common/base.html b/templates/common/base.html index c8d7f9bc2..f94601c8b 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -14,7 +14,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). --> {{- define "errmsg"}} -
+ diff --git a/templates/webadmin/base.html b/templates/webadmin/base.html index f60bac8ce..27675ff86 100644 --- a/templates/webadmin/base.html +++ b/templates/webadmin/base.html @@ -17,13 +17,13 @@ {{- block "additionalnavitems" .}}{{- end}} {{- template "theme-switcher"}}
-
+
- {{- end}} {{- if .LoggedUser.HasPermission "*"}} diff --git a/templates/webadmin/eventaction.html b/templates/webadmin/eventaction.html index c50f6b0c6..debeeffac 100644 --- a/templates/webadmin/eventaction.html +++ b/templates/webadmin/eventaction.html @@ -883,9 +883,9 @@

Cop