From 73c2fb55bc7335fea5170f17a19ba1926212b50a Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Sat, 2 Nov 2024 01:40:10 +0100 Subject: [PATCH] Fix confirm() popup messages (#370) --- internal/i18n/locales/en-US.yml | 1 + templates/base/gist_header.html | 4 ++-- templates/pages/admin_gists.html | 4 ++-- templates/pages/admin_invitations.html | 4 ++-- templates/pages/admin_users.html | 4 ++-- templates/pages/edit.html | 4 ++-- templates/pages/settings.html | 8 ++++---- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/internal/i18n/locales/en-US.yml b/internal/i18n/locales/en-US.yml index 1dcfcb33..c5a3104f 100644 --- a/internal/i18n/locales/en-US.yml +++ b/internal/i18n/locales/en-US.yml @@ -52,6 +52,7 @@ gist.edit.change-visibility: Make gist.edit.delete: Delete gist.edit.cancel: Cancel gist.edit.save: Save +gist.delete.confirm: Are you sure you want to delete this gist ? gist.list.joined: Joined gist.list.all: All gists diff --git a/templates/base/gist_header.html b/templates/base/gist_header.html index b5c91e8f..79352fa8 100644 --- a/templates/base/gist_header.html +++ b/templates/base/gist_header.html @@ -75,9 +75,9 @@

{{ .locale.Tr "gist.header.edit" }} -
+ {{ .csrfHtml }} - +
diff --git a/templates/pages/admin_invitations.html b/templates/pages/admin_invitations.html index 7e287348..9314e065 100644 --- a/templates/pages/admin_invitations.html +++ b/templates/pages/admin_invitations.html @@ -53,9 +53,9 @@

{{ $invitation.NbUsed }}/{{ $invitation.NbMax }} {{ $invitation.ExpiresAt }} -
+ {{ $.csrfHtml }} - +
diff --git a/templates/pages/admin_users.html b/templates/pages/admin_users.html index 71588ae0..a6b31af7 100644 --- a/templates/pages/admin_users.html +++ b/templates/pages/admin_users.html @@ -20,9 +20,9 @@ {{ $user.Username }} {{ $user.CreatedAt }} -
+ {{ $.csrfHtml }} - +
diff --git a/templates/pages/edit.html b/templates/pages/edit.html index b1c2ba79..7a4c22ad 100644 --- a/templates/pages/edit.html +++ b/templates/pages/edit.html @@ -28,9 +28,9 @@

-
+ {{ .csrfHtml }} - +
@@ -280,11 +280,11 @@

{{ .Title }

{{ $.locale.Tr "settings.ssh-key-last-used" }} {{ .LastUsedAt }}

{{ end }} -
+ {{ $.csrfHtml }} - +