1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

feat(template): provide a link for the Apache 2.0 license in the about page

- Provide a link for the Apache 2.0 license
- Factorise the checks for IsAdmin
- Fix some indentation issues
This commit is contained in:
Julien Voisin 2025-08-08 19:31:21 +02:00 committed by GitHub
parent b4c82a4c53
commit 98da7b3f22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,17 +16,18 @@
<li><strong>{{ t "page.about.git_commit" }}</strong> <a href="https://github.com/miniflux/v2/commit/{{ .commit }}">{{ .commit }}</a></li>
{{ end }}
<li><strong>{{ t "page.about.build_date" }}</strong> {{ .build_date }}</li>
{{ if .user.IsAdmin }}<li><strong>{{ t "page.about.postgres_version" }}</strong> {{ .postgres_version }}</li>{{ end }}
<li><strong>{{t "page.about.go_version" }}</strong> {{ .go_version }}</li>
{{ if .user.IsAdmin }}<li><strong>{{t "page.about.db_usage" }}</strong> {{ .db_usage }}</li>{{ end }}
{{ if .user.IsAdmin }}
<li><strong>{{ t "page.about.postgres_version" }}</strong> {{ .postgres_version }}</li>
<li><strong>{{t "page.about.db_usage" }}</strong> {{ .db_usage }}</li>
{{ end }}
</ul>
</div>
<div class="panel">
<h3>{{ t "page.about.credits" }}</h3>
<ul>
<li><strong>{{ t "page.about.author" }}</strong> Frédéric Guillot</li>
<li><strong>{{ t "page.about.license" }}</strong> Apache 2.0</li>
<li><strong>{{ t "page.about.license" }}</strong> <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a></li>
</ul>
</div>