diff options
author | Unknwon <u@gogs.io> | 2015-12-11 19:24:57 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-11 19:24:57 -0500 |
commit | 59c965a5ec2553b40a76cc322855b62116eac5f0 (patch) | |
tree | 3f3f25f7eed2ed51a251343e5521416c1a13d635 /templates/org | |
parent | 76bdbcc969acd0e91cd3e10f5fdbfae3273df45b (diff) | |
download | gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.tar.gz gitea-59c965a5ec2553b40a76cc322855b62116eac5f0.zip |
#2156 admin able to edit organization max repo creation
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/settings/options.tmpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index ce3610ae2f..64be63b7ef 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -33,6 +33,16 @@ <input id="location" name="location" value="{{.Org.Location}}"> </div> + {{if .SignedUser.IsAdmin}} + <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="{{.Org.MaxRepoCreation}}"> + <p class="help">{{.i18n.Tr "admin.users.max_repo_creation_desc"}}</p> + </div> + {{end}} + <div class="field"> <button class="ui green button">{{$.i18n.Tr "org.settings.update_settings"}}</button> </div> |