mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 13:44:06 +01:00
[GITEA] Tidy up archive modal
- Make it consistent with the other modals of the dangerous actions.
(cherry picked from commit 576d7ec759
)
This commit is contained in:
parent
6243914c58
commit
8b1225f974
1 changed files with 11 additions and 8 deletions
|
@ -976,20 +976,23 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>
|
<div class="ui warning message">
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
{{.locale.Tr "repo.settings.unarchive.text"}}
|
{{.locale.Tr "repo.settings.unarchive.text"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.locale.Tr "repo.settings.archive.text"}}
|
{{.locale.Tr "repo.settings.archive.text"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</p>
|
</div>
|
||||||
</div>
|
<form action="{{.Link}}" method="post">
|
||||||
<form action="{{.Link}}" method="post">
|
{{.CsrfTokenHtml}}
|
||||||
{{.CsrfTokenHtml}}
|
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
|
||||||
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
|
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
||||||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
<div class="text right actions">
|
||||||
{{template "base/modal_actions_confirm" .}}
|
<button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button>
|
||||||
|
<button class="ui red button">{{.locale.Tr "repo.settings.archive.button"}}</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue