1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add TrN for repository limit (#12492)

* Added TrN for repository limit

* Removed form.reach_limit_of_creation_0

* disable Create Button if user can not create

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
EV3R4
2021-01-22 00:44:37 +01:00
committed by GitHub
parent aa4c33b43d
commit af7054511e
3 changed files with 12 additions and 7 deletions

View File

@@ -9,6 +9,11 @@
</h3>
<div class="ui attached segment">
{{template "base/alert" .}}
{{if not .CanCreateRepo}}
<div class="ui negative message">
<p>{{.i18n.Tr (TrN .i18n.Lang .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n") .MaxCreationLimit}}</p>
</div>
{{end}}
<div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{.i18n.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown">
@@ -193,7 +198,7 @@
<br/>
<div class="inline field">
<label></label>
<button class="ui green button">
<button class="ui green button{{if not .CanCreateRepo}} disabled{{end}}">
{{.i18n.Tr "repo.create_repo"}}
</button>
<a class="ui button" href="{{AppSubUrl}}/">{{.i18n.Tr "cancel"}}</a>