From 6ddf5cfeafc14ac624cc400c64561f33e7617041 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 24 May 2024 18:42:18 +0200 Subject: [PATCH] store/dash: misc responsiveness improvements --- store/templates/dash.html | 66 ++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/store/templates/dash.html b/store/templates/dash.html index 66fcce68..84deb66d 100644 --- a/store/templates/dash.html +++ b/store/templates/dash.html @@ -8,12 +8,13 @@

{{ _("App packaging dashboard") }}

-

{{ _("This is where packagers can monitor the status of automatic tests (CI) and ongoing major pull requests accross all apps. If you want to get started with app packaging in YunoHost, please check out the packaging documentation and come say hi to us on the app packaging chatroom!") }}

+

{{ _("This is where packagers can monitor the status of automatic tests (CI) and ongoing major pull requests accross all apps. If you want to get started with app packaging in YunoHost, please check out the packaging documentation and come say hi to us on the app packaging chatroom!") }}

-
-
+ +
+
{{ _("Filter") }}
-
+
{{ _("Sort by") }}
-
-
+
+ - {{ _("Show only apps you starred") }} -
+ + + + + + {{ _("Show only apps you starred") }}
- +
- + @@ -88,13 +88,15 @@ data-main-ci-level="{% if infos["ci_results"]["main"] %}{{ infos["ci_results"]["main"]["level"] }}{% else %}-1{% endif %}" data-main-ci-daysago="{% if infos["ci_results"]["main"] %}{{ infos["ci_results"]["main"]["timestamp"] | days_ago }}{% else %}-9999{% endif %}" data-nextdebian-ci-level="{% if infos["ci_results"]["nextdebian"] %}{{ infos["ci_results"]["nextdebian"]["level"] }}{% else %}-1{% endif %}" - data-last-update-master-daysago="{{ infos["ci_results"]["main"]["timestamp"] | days_ago }}" - data-last-update-testing-daysago="{% if infos["testing"] %}{{ infos["testing"]["timestamp_updated"] | days_ago }}{% endif %}" - data-last-update-autoupdate-daysago="{% if infos["ci-auto-update"] %}{{ infos["ci-auto-update"]["timestamp_updated"] | days_ago }}{% endif %}" + data-last-update-master="{{ infos["ci_results"]["main"]["timestamp"] }}" + data-last-update-testing="{% if infos["testing"] %}{{ infos["testing"]["timestamp_updated"] }}{% else %}-1{% endif %}" + data-last-update-autoupdate="{% if infos["ci-auto-update"] %}{{ infos["ci-auto-update"]["timestamp_updated"] }}{% else %}-1{% endif %}" data-packaging-format="{{ infos["packaging_format"] }}" > - - + - - - - -
{{ _("App") }}{{ _("App") }} {{ _("Catalog") }} {{ _("Main CI") }} {{ _("Bookworm CI") }}{{ app }} + + {{ app }} + {{ infos["public_level"] }} {% if infos["public_level"] == "?" %} @@ -105,7 +107,7 @@ {% endif %} + 30 %}opacity-50{% endif %}" href="https://ci-apps.yunohost.org/ci/apps/{{ app }}/"> {% if infos["public_level"] == infos["ci_results"]["main"]["level"] %} = @@ -123,7 +125,7 @@ {% endif %} + 30) %}opacity-50{% endif %}" href="https://ci-apps-bookworm.yunohost.org/ci/apps/{{ app }}/"> {% if infos["ci_results"]["nextdebian"] %} {% if infos["public_level"] == infos["ci_results"]["nextdebian"]["level"] %} @@ -145,7 +147,7 @@ {% endif %} + {% if "testing" in infos %} @@ -160,7 +162,7 @@ {% endif %} + @@ -175,7 +177,7 @@ {% endif %} + {% if this_app_stars > 0 %} {{ this_app_stars }} @@ -277,7 +279,7 @@ } else if (filterName == "testings") { - if (entries[i].dataset.lastUpdateTestingDaysago) + if (parseInt(entries[i].dataset.lastUpdateTesting) > -1) { entries[i].classList.remove("hidden"); nb_found++; @@ -289,7 +291,7 @@ } else if (filterName == "autoupdate") { - if (entries[i].dataset.lastUpdateAutoupdateDaysago) + if (parseInt(entries[i].dataset.lastUpdateAutoupdate) > -1) { entries[i].classList.remove("hidden"); nb_found++; @@ -338,12 +340,12 @@ } else if (sortBy === "main_branch_update") { toSort.sort(function(a, b) { - return parseInt(a.dataset.lastUpdateMasterDaysago) < parseInt(b.dataset.lastUpdateMasterDaysago) ? 1 : -1; + return parseInt(a.dataset.lastUpdateMaster) < parseInt(b.dataset.lastUpdateMaster) ? 1 : -1; }); } else if (sortBy === "testing_branch_update") { toSort.sort(function(a, b) { - return parseInt(a.dataset.lastUpdateTestingDaysago) < parseInt(b.dataset.lastUpdateTestingDaysago) ? 1 : -1; + return parseInt(a.dataset.lastUpdateTesting) < parseInt(b.dataset.lastUpdateTesting) ? 1 : -1; }); } else if (sortBy === "alpha") {