{{ define "title"}}{{ t "page.about.title" }}{{ end }}

{{ define "page_header"}}
<section class="page-header" aria-labelledby="page-header-title">
    <h1 id="page-header-title">{{ t "page.about.title" }}</h1>
    {{ template "settings_menu" dict "user" .user }}
</section>
{{ end }}

{{ define "content"}}
<div class="panel">
    <h3>Miniflux</h3>
    <ul>
        <li>
            <strong>{{ t "page.about.version" }}</strong>
            {{ if contains .version "dev" }}
                {{ .version }}
            {{ else }}
                <a href="https://github.com/miniflux/v2/releases/tag/{{ .version }}">{{ .version }}</a>
            {{ end }}
        </li>
	{{ if .commit }}
        <li>
            <strong>{{ t "page.about.git_commit" }}</strong>
            {{ if startsWith .commit "Unknown" }}
                {{ .commit }}
            {{ else }}
                <a href="https://github.com/miniflux/v2/commit/{{ .commit }}">{{ .commit }}</a>
            {{ end }}
        </li>
	{{ end }}
        <li><strong>{{ t "page.about.build_date" }}</strong> {{ .build_date }}</li>
    	<li><strong>{{t "page.about.go_version" }}</strong> {{ .go_version }}</li>
    {{ 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.authors_label" }}</strong> <a href="https://github.com/miniflux/v2/graphs/contributors">{{ t "page.about.authors_value" }}</a></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>

{{ 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 }}
