Skip to content

Commit 8b1225f

Browse files
Gustedearl-warren
authored andcommitted
[GITEA] Tidy up archive modal
- Make it consistent with the other modals of the dangerous actions. (cherry picked from commit 576d7ec759baefd2382d565212c3168e38bbdd75)
1 parent 6243914 commit 8b1225f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

templates/repo/settings/options.tmpl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -976,20 +976,23 @@
976976
{{end}}
977977
</div>
978978
<div class="content">
979-
<p>
979+
<div class="ui warning message">
980980
{{if .Repository.IsArchived}}
981981
{{.locale.Tr "repo.settings.unarchive.text"}}
982982
{{else}}
983983
{{.locale.Tr "repo.settings.archive.text"}}
984984
{{end}}
985-
</p>
986-
</div>
987-
<form action="{{.Link}}" method="post">
988-
{{.CsrfTokenHtml}}
989-
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
990-
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
991-
{{template "base/modal_actions_confirm" .}}
985+
</div>
986+
<form action="{{.Link}}" method="post">
987+
{{.CsrfTokenHtml}}
988+
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
989+
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
990+
<div class="text right actions">
991+
<button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button>
992+
<button class="ui red button">{{.locale.Tr "repo.settings.archive.button"}}</button>
993+
</div>
992994
</form>
995+
</div>
993996
</div>
994997
{{end}}
995998
{{end}}

0 commit comments

Comments
 (0)