diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-21 18:07:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 18:07:17 +0800 |
commit | 4e1f38ce28e87ece15a29c1f0fa2d7b5eeef79a6 (patch) | |
tree | 48ee016b18d70bf6c8019e776439225d1a68e190 /templates/admin | |
parent | 60273d3d6d97dd6e5220ac77a623d72fbc71e70d (diff) |
lfs: show configs in admin ui (#6128)
* Rename template consts
* Display new DB options
* Display LFS configs
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 79d40b20..5703bb24 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -178,6 +178,13 @@ <dd>{{.Database.SSLMode}} {{.i18n.Tr "admin.config.db.ssl_mode_helper"}}</dd> <dt>{{.i18n.Tr "admin.config.db.path"}}</dt> <dd><code>{{.Database.Path}}</code> {{.i18n.Tr "admin.config.db.path_helper"}}</dd> + + <div class="ui divider"></div> + + <dt>{{.i18n.Tr "admin.config.db.max_open_conns"}}</dt> + <dd>{{.Database.MaxOpenConns}}</dd> + <dt>{{.i18n.Tr "admin.config.db.max_idle_conns"}}</dt> + <dd>{{.Database.MaxIdleConns}}</dd> </dl> </div> @@ -481,6 +488,20 @@ </dl> </div> + {{/* LFS settings */}} + <h4 class="ui top attached header"> + {{.i18n.Tr "admin.config.lfs_config"}} + </h4> + <div class="ui attached table segment"> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>{{.i18n.Tr "admin.config.lfs.storage"}}</dt> + <dd>{{.LFS.Storage}}</dd> + <dt>{{.i18n.Tr "admin.config.lfs.objects_path"}}</dt> + <dd><code>{{.LFS.ObjectsPath}}</code></dd> + </dl> + </div> + + {{/* Log settings */}} <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.log_config"}} </h4> |