From da40892968e90c6622669dce8bf005f4136b550e Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 22 Jul 2024 23:47:27 +0200 Subject: [PATCH] Only show the git version in case it is different In the common case it is the same, so avoid showing it twice --- app/templates/base.html | 11 +---------- app/templates/outofdate.html | 2 +- app/templates/package.html | 11 +---------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 47c5db9..43cc906 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -65,16 +65,7 @@
Version:
-
{{ s.version }}
- -
GIT Version:
-
- {% if s.git_version %} - {{ s.git_version }} - {% else %} - - - {% endif%} -
+
{{ s.version }}{% if s.version != s.git_version %} ({{ s.git_version }} in git){% endif %}
External:
diff --git a/app/templates/outofdate.html b/app/templates/outofdate.html index e504ee8..7625b88 100644 --- a/app/templates/outofdate.html +++ b/app/templates/outofdate.html @@ -61,7 +61,7 @@ {{ s.name }} - {{ myver }}{% if gitver %} ({{ gitver }} in git){% endif %} + {{ myver }}{% if gitver %} ({{ gitver }} in git){% endif %} → {{ ver }} {% if s.active_vulnerabilities %} diff --git a/app/templates/package.html b/app/templates/package.html index 1284ea5..2c56892 100644 --- a/app/templates/package.html +++ b/app/templates/package.html @@ -59,16 +59,7 @@
{{ licenses_to_html(p.licenses)|safe }}
Version:
-
{{ p.version }}
- -
GIT Version:
-
- {% if s.git_version %} - {{ s.git_version }} - {% else %} - - - {% endif%} -
+
{{ p.version }}{% if p.version != s.git_version %} ({{ s.git_version }} in git){% endif %}
External: