[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 commit0d6f131e21
) (cherry picked from commit7ac510074b
) (cherry picked from commit2d561205d2
) (cherry picked from commitdbb4737afe
) [GITEA] Tidy up archive modal (squash) ctx.Locale (cherry picked from commitaa682a5f04
)
This commit is contained in:
parent
00c8b16b8c
commit
e8b93e8de6
1 changed files with 11 additions and 8 deletions
|
@ -976,21 +976,24 @@
|
|||
{{end}}
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>
|
||||
<div class="ui warning message">
|
||||
{{if .Repository.IsArchived}}
|
||||
{{ctx.Locale.Tr "repo.settings.unarchive.text"}}
|
||||
{{else}}
|
||||
{{ctx.Locale.Tr "repo.settings.archive.text"}}
|
||||
{{end}}
|
||||
</p>
|
||||
</div>
|
||||
<form action="{{.Link}}" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
|
||||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}">
|
||||
{{template "base/modal_actions_confirm" .}}
|
||||
<div class="text right actions">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue