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 1dcfcb3..c5a3104 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 b5c91e8..79352fa 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 7e28734..9314e06 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 71588ae..a6b31af 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 b1c2ba7..7a4c22a 100644 --- a/templates/pages/edit.html +++ b/templates/pages/edit.html @@ -28,9 +28,9 @@ -
+ {{ .csrfHtml }} - +
@@ -280,11 +280,11 @@

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

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