Skip to content

Commit

Permalink
feat: only show the commit URL if it's not empty on /about
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin authored Nov 13, 2024
1 parent f0fe911 commit 6eb1f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/template/templates/views/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h1 id="page-header-title">{{ t "page.about.title" }}</h1>
<h3>Miniflux</h3>
<ul>
<li><strong>{{ t "page.about.version" }}</strong> <a href="https://github.com/miniflux/v2/releases/tag/{{ .version }}">{{ .version }}</a></li>
{{ if .commit }}
<li><strong>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>
Expand Down

0 comments on commit 6eb1f25

Please sign in to comment.