mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
[GITEA] Tidy up archive modal
- Make it consistent with the other modals of the dangerous actions. (cherry picked from commit576d7ec759
) (cherry picked from commit8b1225f974
) (cherry picked from commitc2c47972ee
) (cherry picked from commiteec301806b
) (cherry picked from commit6b5e728f0a
) (cherry picked from commit3681691e65
) (cherry picked from commite39dfa550d
) (cherry picked from commit0c78c8c5ac
) (cherry picked from commit661cf72db0
) [GITEA] Tidy up archive modal (squash) ctx.Locale (cherry picked from commit4bb6ee71f0
) (cherry picked from commitddafd8fbe3
) (cherry picked from commit9467a6915f
) (cherry picked from commite632b10380
) (cherry picked from commit6609d07591
) (cherry picked from commitc130b8a09a
) (cherry picked from commit1080de5754
) (cherry picked from commita9813744d4
)
This commit is contained in:
parent
4124fa5aa4
commit
93232f410a
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}}
|
||||||
{{ctx.Locale.Tr "repo.settings.unarchive.text"}}
|
{{ctx.Locale.Tr "repo.settings.unarchive.text"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{ctx.Locale.Tr "repo.settings.archive.text"}}
|
{{ctx.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">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
||||||
|
<button class="ui red button">{{ctx.Locale.Tr "repo.settings.archive.button"}}</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue