summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-06 22:35:11 +0800
committerLauris BH <lauris@nix.lv>2019-05-06 17:35:11 +0300
commit01ebd52a1fa2a5a71ff6609f04c3338e7e4795d4 (patch)
tree5209d0d7b10a2e277e64465982e855d53279e162 /templates
parent5d5eae6aea258093379be6eab0a83b518e67d446 (diff)
downloadgitea-01ebd52a1fa2a5a71ff6609f04c3338e7e4795d4.tar.gz
gitea-01ebd52a1fa2a5a71ff6609f04c3338e7e4795d4.zip
fix config ui error about cache ttl (#6861)
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/config.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 23a68caa8e..b4fcb4d610 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -233,11 +233,15 @@
<dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
<dd>{{.CacheAdapter}}</dd>
+ {{if eq .CacheAdapter "memory"}}
<dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
<dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
+ {{end}}
{{if .CacheConn}}
<dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
<dd><code>{{.CacheConn}}</code></dd>
+ <dt>{{.i18n.Tr "admin.config.cache_item_ttl"}}</dt>
+ <dd><code>{{.CacheItemTTL}}</code></dd>
{{end}}
</dl>
</div>