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:
parent
926ddf6d09
commit
23e4183bec
16 changed files with 139 additions and 63 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue