aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-03-19 18:40:13 -0400
committertechknowlogick <matti@mdranta.net>2019-03-19 18:40:13 -0400
commitf125330fcf89550e380057d69dae61871b5b0c8b (patch)
tree844d9568e80296e5274ea47f484af72461737583 /templates/admin
parent5c82ef098e9d6138298c32f700bf46d2d5b3b14b (diff)
downloadgitea-f125330fcf89550e380057d69dae61871b5b0c8b.tar.gz
gitea-f125330fcf89550e380057d69dae61871b5b0c8b.zip
Include more variables on admin/config page (#6378)
Include the current CustomPath location in the admin section and also display GITEA_WORK_DIR and/or GITEA_CUSTOM env var if they are set. Right now there is no easy way to see this information, and if you try and help most users they won't be able to tell you anything about these values -- just that their custom template isn't working, files aren't in the right place, etc... Now you can see all paths and if they were set by ENV or not.
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/config.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index becaca61e5..82db75ffb4 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -41,12 +41,23 @@
<dd>{{.RepoRootPath}}</dd>
<dt>{{.i18n.Tr "admin.config.static_file_root_path"}}</dt>
<dd>{{.StaticRootPath}}</dd>
+ <dt>{{.i18n.Tr "admin.config.custom_file_root_path"}}</dt>
+ <dd>{{.CustomRootPath}}</dd>
<dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt>
<dd>{{.LogRootPath}}</dd>
<dt>{{.i18n.Tr "admin.config.script_type"}}</dt>
<dd>{{.ScriptType}}</dd>
<dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt>
<dd>{{.ReverseProxyAuthUser}}</dd>
+
+ {{if .EnvVars }}
+ <div class="ui divider"></div>
+ {{range .EnvVars}}
+ <dt>{{.Name}}</dt>
+ <dd>{{.Value}}</dd>
+ {{end}}
+ {{end}}
+
</dl>
</div>