1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

Show global options in the about page

Only shows the options when current user is admin.
This commit is contained in:
Shizun Ge 2020-12-29 19:43:37 -08:00 committed by fguillot
parent 926ddf6d09
commit 23e4183bec
16 changed files with 139 additions and 63 deletions

View file

@ -23,4 +23,15 @@
</ul>
</div>
{{ if .user.IsAdmin }}
<div class="panel">
<h3>{{ t "page.about.global_config_options" }}</h3>
<ul>
{{ range .globalConfigOptions }}
<li><code><strong>{{ .Key }}</strong>={{ .Value }}</code></li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}