From 48ab5fc757ba07505d38129dc973a72fbf3119ad Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 18 Sep 2023 17:40:11 +0200 Subject: [PATCH] appstore: misc 'title' attribute for buttons / icons --- store/templates/app.html | 22 +++++++++------------- store/templates/catalog.html | 22 ++++++++++++---------- store/templates/wishlist.html | 3 +++ store/utils.py | 4 ++-- 4 files changed, 26 insertions(+), 25 deletions(-) diff --git a/store/templates/app.html b/store/templates/app.html index b9296b77..d5aa6420 100644 --- a/store/templates/app.html +++ b/store/templates/app.html @@ -11,7 +11,7 @@ loading="lazy" class="h-12 w-12 rounded-lg object-cover shadow-sm mt-1" /> -

{{ infos["manifest"]["name"] }}

+

{{ infos["manifest"]["name"] }}

{% if infos['category'] %} {{ catalog['categories'][infos['category']]['title']|localize|lower }} @@ -21,19 +21,15 @@
- - {% if infos['level'] == 0 %} -
- -
- {% elif infos['level']|int <= 4 %} -
- -
+ {% if infos['level'] == "?" or infos["level"]|int <= 4 %} + {% elif infos['level'] == 8 %} -
- -
+ {% endif %} {% set this_app_stars = stars.get(app_id, {})|length %} diff --git a/store/templates/catalog.html b/store/templates/catalog.html index a9789b7d..e82eadde 100644 --- a/store/templates/catalog.html +++ b/store/templates/catalog.html @@ -36,13 +36,15 @@ {{ infos['manifest']['name'] }} - - {% if infos['level'] == 0 %} - - {% elif infos['level']|int <= 4 %} - + {% if infos['level'] == "?" or infos["level"]|int <= 4 %} + {% elif infos['level'] == 8 %} - + {% endif %} {{ this_app_stars }} @@ -57,7 +59,7 @@ {{ infos["potential_alternative_to"]|join(', ') }}
{% if infos['category'] %} - + {{ catalog['categories'][infos['category']]['title']|localize|lower }} {% endif %} @@ -137,7 +139,7 @@
{% for app, infos in catalog['apps'].items() %} - {% if infos['level'] and infos['level'] > 4 %} + {% if infos['level'] and infos['level'] != "?" and infos['level'] > 4 %} {{ appCard(app, infos, timestamp_now, catalog) }} {% endif %} {% endfor %} @@ -156,7 +158,7 @@

- {{ _("Applications currently flagged as broken or low-quality") }} + {{ _("Applications currently flagged as broken") }}

{{ _("These are apps which failed our automatic tests.") }}
@@ -166,7 +168,7 @@

{% for app, infos in catalog['apps'].items() %} - {% if not infos['level'] or infos['level'] <= 4 %} + {% if not infos['level'] or infos["level"] == "?" or infos['level'] <= 4 %} {{ appCard(app, infos, timestamp_now, catalog) }} {% endif %} {% endfor %} diff --git a/store/templates/wishlist.html b/store/templates/wishlist.html index 2767fc1f..0483b786 100644 --- a/store/templates/wishlist.html +++ b/store/templates/wishlist.html @@ -94,6 +94,7 @@ {% if infos['website'] %} @@ -104,6 +105,7 @@ {% if infos['upstream'] %} @@ -114,6 +116,7 @@ diff --git a/store/utils.py b/store/utils.py index 08e9250e..b086b8ae 100644 --- a/store/utils.py +++ b/store/utils.py @@ -32,13 +32,13 @@ def get_catalog(): "communication": "amber", "office": "lime", "productivity_and_management": "purple", - "small_utilities": "", + "small_utilities": "black", "reading": "emerald", "multimedia": "fuchsia", "social_media": "rose", "games": "violet", "dev": "stone", - "system_tools": "white", + "system_tools": "black", "iot": "orange", "wat": "teal", }