From 576d7ec759baefd2382d565212c3168e38bbdd75 Mon Sep 17 00:00:00 2001 From: Gusted Date: Wed, 13 Sep 2023 01:08:37 +0200 Subject: [PATCH] [GITEA] Tidy up archive modal - Make it consistent with the other modals of the dangerous actions. --- templates/repo/settings/options.tmpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 16944506f1..94cf87e092 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -977,20 +977,23 @@ {{end}}
-

+

{{if .Repository.IsArchived}} {{.locale.Tr "repo.settings.unarchive.text"}} {{else}} {{.locale.Tr "repo.settings.archive.text"}} {{end}} -

-
-
- {{.CsrfTokenHtml}} - - - {{template "base/modal_actions_confirm" .}} +
+ + {{.CsrfTokenHtml}} + + +
+ + +
+ {{end}} {{end}}