aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-17 02:24:49 +0800
committerzeripath <art27@cantab.net>2019-06-16 19:24:49 +0100
commit1e8a6164262bafd6878269b153c43686977c4603 (patch)
treeadcd1e8fb291214d7624421c8d76a2b9045652b0 /templates
parentd8168b356d3ddaf3c38815a46ab075bf5bbe93c6 (diff)
downloadgitea-1e8a6164262bafd6878269b153c43686977c4603.tar.gz
gitea-1e8a6164262bafd6878269b153c43686977c4603.zip
show lfs config on admin panel (#7220)
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/config.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 7a81eb2668..b8bf1ec028 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -97,6 +97,22 @@
</div>
<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_enabled"}}</dt>
+ <dd><i class="fa fa{{if .LFS.StartServer}}-check{{end}}-square-o"></i></dd>
+ {{if .LFS.StartServer}}
+ <dt>{{.i18n.Tr "admin.config.lfs_content_path"}}</dt>
+ <dd>{{.LFS.ContentPath}}</dd>
+ <dt>{{.i18n.Tr "admin.config.lfs_http_auth_expiry"}}</dt>
+ <dd>{{.LFS.HTTPAuthExpiry}}</dd>
+ {{end}}
+ </dl>
+ </div>
+
+ <h4 class="ui top attached header">
{{.i18n.Tr "admin.config.db_config"}}
</h4>
<div class="ui attached table segment">