aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Julien Voisin <jvoisin@users.noreply.github.com> 2024-11-13 04:09:48 +0000
committerGravatar GitHub <noreply@github.com> 2024-11-12 20:09:48 -0800
commit6eb1f25a53ea00b5a77b9d53dad67f6237c4a36b (patch)
tree79aa3b356ab70381cb29dbf0ce3f798871fe15ff
parentf0fe91172fdd665a7f41efdb19eef778950eb057 (diff)
downloadv2-6eb1f25a53ea00b5a77b9d53dad67f6237c4a36b.tar.gz
v2-6eb1f25a53ea00b5a77b9d53dad67f6237c4a36b.tar.zst
v2-6eb1f25a53ea00b5a77b9d53dad67f6237c4a36b.zip
feat: only show the commit URL if it's not empty on `/about`
-rw-r--r--internal/template/templates/views/about.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/template/templates/views/about.html b/internal/template/templates/views/about.html
index 19be5222..007aa2ea 100644
--- a/internal/template/templates/views/about.html
+++ b/internal/template/templates/views/about.html
@@ -12,7 +12,9 @@
<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>