diff options
author | Unknwon <u@gogs.io> | 2017-11-16 19:03:46 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-11-16 19:03:46 -0500 |
commit | e1e76d3f8823606ae48635e19d4e58cc3bdf163f (patch) | |
tree | 8bfacd0ca21f938ba7b596b34d89de7b24577a4c /templates/admin | |
parent | 221aa8968a4446274bc6072876d87c4a4226abc7 (diff) |
admin/config: add UI for [http] section (#3987)
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 01be927e..432edb99 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -33,11 +33,11 @@ <div class="ui divider"></div> <dt>{{.i18n.Tr "admin.config.static_file_root_path"}}</dt> - <dd>{{.StaticRootPath}}</dd> + <dd><code>{{.StaticRootPath}}</code></dd> <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt> - <dd>{{.LogRootPath}}</dd> + <dd><code>{{.LogRootPath}}</code></dd> <dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt> - <dd>{{.ReverseProxyAuthUser}}</dd> + <dd><code>{{.ReverseProxyAuthUser}}</code></dd> </dl> </div> @@ -76,30 +76,49 @@ </dl> </div> + <!-- Repository Configuration --> <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.repo_config"}} </h4> <div class="ui attached table segment"> <dl class="dl-horizontal admin-dl-horizontal"> <dt>{{.i18n.Tr "admin.config.repo_root_path"}}</dt> - <dd>{{.RepoRootPath}}</dd> + <dd><code>{{.RepoRootPath}}</code></dd> <dt>{{.i18n.Tr "admin.config.script_type"}}</dt> - <dd><code>{{.ScriptType}}</code></dd> + <dd>{{.ScriptType}}</dd> <dt>{{.i18n.Tr "admin.config.repo_force_private"}}</dt> <dd><i class="fa fa{{if .Repository.ForcePrivate}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.max_creation_limit"}}</dt> - <dd><code>{{.Repository.MaxCreationLimit}}</code></dd> + <dd>{{.Repository.MaxCreationLimit}}</dd> <dt>{{.i18n.Tr "admin.config.preferred_licenses"}}</dt> - <dd><code>{{Join .Repository.PreferredLicenses ", "}}</code></dd> + <dd>{{Join .Repository.PreferredLicenses ", "}}</dd> <dt>{{.i18n.Tr "admin.config.disable_http_git"}}</dt> <dd><i class="fa fa{{if .Repository.DisableHTTPGit}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.enable_local_path_migration"}}</dt> <dd><i class="fa fa{{if .Repository.EnableLocalPathMigration}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.commits_fetch_concurrency"}}</dt> - <dd><code>{{.Repository.CommitsFetchConcurrency}}</code></dd> + <dd>{{.Repository.CommitsFetchConcurrency}}</dd> </dl> </div> + <!-- HTTP Configuration --> + <h4 class="ui top attached header"> + {{.i18n.Tr "admin.config.http_config"}} + </h4> + <div class="ui attached table segment"> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>{{.i18n.Tr "admin.config.http_access_control_allow_origin"}}</dt> + <dd> + {{if .HTTP.AccessControlAllowOrigin}} + <code>{{.HTTP.AccessControlAllowOrigin}}</code> + {{else}} + <i>{{.i18n.Tr "admin.config.not_set"}}</i> + {{end}} + </dd> + </dl> + </div> + + <!-- Database Configuration --> <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.db_config"}} </h4> |