From 504fa9ea6a2ad4fb608b86619a0e73a7f3f75cee Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Aug 2024 10:14:47 +0000 Subject: [PATCH] Fix store dashboard broken if an app doesn't have CI results on bulleye or bookworm --- store/templates/dash.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/templates/dash.html b/store/templates/dash.html index b25bfb5e..ed60046c 100644 --- a/store/templates/dash.html +++ b/store/templates/dash.html @@ -132,14 +132,14 @@ - 30 %}opacity-50{% endif %}" href="https://ci-apps.yunohost.org/ci/apps/{{ app }}/"> + 30 %}opacity-50{% endif %}" href="https://ci-apps.yunohost.org/ci/apps/{{ app }}/"> {% if infos["public_level"] == infos["ci_results"]["main"]["level"] %} = {% else %} {{ infos["ci_results"]["main"]["level"] }} {% endif %} - {% if infos["ci_results"]["main"]["timestamp"] | days_ago > 30 %} - + {% if (infos["ci_results"]["main"]["timestamp"] or -9999) | days_ago > 30 %} + {% endif %} {% if infos["public_level"] == "?" %} {% elif infos["ci_results"]["main"]["level"] < infos["public_level"] and infos["ci_results"]["main"]["level"] == 0 %}