From 9b61281df77d5be751553a3a033541bb5c8018ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20Hannebert?= Date: Thu, 20 Jun 2024 09:05:14 +0200 Subject: [PATCH] Dash, filter apps with issues --- store/templates/dash.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/store/templates/dash.html b/store/templates/dash.html index ab20860d..ae13f193 100644 --- a/store/templates/dash.html +++ b/store/templates/dash.html @@ -28,6 +28,7 @@ + @@ -111,6 +112,8 @@ data-last-update-autoupdate="{% if infos["ci-auto-update"] %}{{ infos["ci-auto-update"]["timestamp_updated"] }}{% else %}-1{% endif %}" data-packaging-format="{{ infos["packaging_format"] }}" data-deprecated="{% if "deprecated-software" in infos["antifeatures"] or "replaced-by-another-app" in infos["antifeatures"] or "package-not-maintained" in infos["antifeatures"] %}True{% else %}False{% endif %}" + data-nb-issues="{{ infos["nb_issues"] }}" + > {{ app }} @@ -345,6 +348,18 @@ entries[i].classList.add("hidden"); } } + else if (filterName == "nb_issues") + { + if (entries[i].dataset.nbIssues > 0) + { + entries[i].classList.remove("hidden"); + nb_found++ + } + else + { + entries[i].classList.add("hidden"); + } + } } document.getElementById('nbEntriesFound').innerHTML = "(" + nb_found + " apps)";