Debian Codegraph @

internal/template/templates/views/about.html

raw
1 {{ define "title"}}{{ t "page.about.title" }}{{ end }}
2
3 {{ define "page_header"}}
4 <section class="page-header" aria-labelledby="page-header-title">
5 <h1 id="page-header-title">{{ t "page.about.title" }}</h1>
6 {{ template "settings_menu" dict "user" .user }}
7 </section>
8 {{ end }}
9
10 {{ define "content"}}
11 <div class="panel">
12 <h3>Miniflux</h3>
13 <ul>
14 <li>
15 <strong>{{ t "page.about.version" }}</strong>
16 {{ if contains .version "dev" }}
17 {{ .version }}
18 {{ else }}
19 <a href="https://github.com/miniflux/v2/releases/tag/{{ .version }}">{{ .version }}</a>
20 {{ end }}
21 </li>
22 {{ if .commit }}
23 <li>
24 <strong>{{ t "page.about.git_commit" }}</strong>
25 {{ if startsWith .commit "Unknown" }}
26 {{ .commit }}
27 {{ else }}
28 <a href="https://github.com/miniflux/v2/commit/{{ .commit }}">{{ .commit }}</a>
29 {{ end }}
30 </li>
31 {{ end }}
32 <li><strong>{{ t "page.about.build_date" }}</strong> {{ .build_date }}</li>
33 <li><strong>{{t "page.about.go_version" }}</strong> {{ .go_version }}</li>
34 {{ if .user.IsAdmin }}
35 <li><strong>{{ t "page.about.postgres_version" }}</strong> {{ .postgres_version }}</li>
36 <li><strong>{{t "page.about.db_usage" }}</strong> {{ .db_usage }}</li>
37 {{ end }}
38 </ul>
39 </div>
40 <div class="panel">
41 <h3>{{ t "page.about.credits" }}</h3>
42 <ul>
43 <li><strong>{{ t "page.about.authors_label" }}</strong> <a href="https://github.com/miniflux/v2/graphs/contributors">{{ t "page.about.authors_value" }}</a></li>
44 <li><strong>{{ t "page.about.license" }}</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a></li>
45 </ul>
46 </div>
47
48 {{ if .user.IsAdmin }}
49 <div class="panel">
50 <h3>{{ t "page.about.global_config_options" }}</h3>
51 <ul>
52 {{ range .globalConfigOptions }}
53 <li><code><strong>{{ .Key }}</strong>={{ .Value }}</code></li>
54 {{ end }}
55 </ul>
56 </div>
57 {{ end }}
58
59 {{ end }}