1
0
Fork 0
forked from forgejo/forgejo

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>