aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorEV3R4 <63237520+EV3R4@users.noreply.github.com>2021-01-22 00:44:37 +0100
committerGitHub <noreply@github.com>2021-01-22 00:44:37 +0100
commitaf7054511efdf1e0b36bd9e8c5744bce6ea1a5b9 (patch)
treeda123f82df08eadfd94a366be42584014aa75d0d /templates/repo
parentaa4c33b43df44d68ab5072685329c472de290476 (diff)
downloadgitea-af7054511efdf1e0b36bd9e8c5744bce6ea1a5b9.tar.gz
gitea-af7054511efdf1e0b36bd9e8c5744bce6ea1a5b9.zip
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>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/create.tmpl7
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>