diff --git a/auth/assets/templates/login.html.tpl b/auth/assets/templates/login.html.tpl index f398f175c..af6c75eae 100644 --- a/auth/assets/templates/login.html.tpl +++ b/auth/assets/templates/login.html.tpl @@ -92,7 +92,7 @@ {{ range .providers }} - {{ tr "login.template.external.login-with" "idp" (coalesce .Label .Handle) }} + {{ tr "login.template.links.external.login-with" "idp" (coalesce .Label .Handle) }} {{ end }} diff --git a/auth/assets/templates/sessions.html.tpl b/auth/assets/templates/sessions.html.tpl index 36208d5e7..3aabffd41 100644 --- a/auth/assets/templates/sessions.html.tpl +++ b/auth/assets/templates/sessions.html.tpl @@ -1,18 +1,25 @@ {{ template "inc_header.html.tpl" set . "activeNav" "sessions" }}
-
-

{{ tr "sessions.template.title" }}

- {{ if .sessions}} - +
+ {{ .csrfField }} +
+

{{ tr "sessions.template.title" }}

+ {{- if and .sessions (gt (len .sessions) 1) }} + {{ end }} -
+
+
0: for _, s := range ss { @@ -94,7 +94,7 @@ func (h *AuthHandlers) sessionsProc(req *request.AuthReq) error { t := translator(req, "auth") req.NewAlerts = append(req.NewAlerts, request.Alert{ Type: "primary", - Text: t("session.alerts.session-deleted"), + Text: t("sessions.alerts.session-deleted"), }) }