diff options
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 7d71043c34..ad795387df 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -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> |