aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-10 12:37:53 -0500
committerUnknwon <u@gogs.io>2015-12-10 12:37:53 -0500
commit2a0bb1fa906a4d135ed88de4f705c3ab7214e60c (patch)
tree37d207458c999c5789fd6ca3a2c62d6700ed81b7 /templates
parentc6083c335e53a860fd4c500a86dcdda49a16515e (diff)
downloadgitea-2a0bb1fa906a4d135ed88de4f705c3ab7214e60c.tar.gz
gitea-2a0bb1fa906a4d135ed88de4f705c3ab7214e60c.zip
#1575 Limit repo creation
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/admin/user/edit.tmpl10
2 files changed, 11 insertions, 1 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 930288a5cc..370ba63b8d 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.7.38.1210 Beta \ No newline at end of file
+0.7.39.1210 Beta \ No newline at end of file
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index b7f95e36db..ad4dd4c25a 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -57,6 +57,16 @@
<input id="location" name="location" value="{{.User.Location}}">
</div>
+ <div class="ui divider"></div>
+
+ <div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}">
+ <label for="max_repo_creation">{{.i18n.Tr "admin.users.max_repo_creation"}}</label>
+ <input id="max_repo_creation" name="max_repo_creation" type="number" value="{{.User.MaxRepoCreation}}">
+ <p class="help">{{.i18n.Tr "admin.users.max_repo_creation_desc"}}</p>
+ </div>
+
+ <div class="ui divider"></div>
+
<div class="inline field">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.users.is_activated"}}</strong></label>