From fd6f0eb24c73cbf864590ce91fbe69068e898304 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 19 Sep 2023 01:13:27 +0200 Subject: [PATCH] appstore: much responsiveness --- store/templates/app.html | 80 +++++++++++-------- store/templates/base.html | 125 +++++++++++++++++++++++++----- store/templates/catalog.html | 18 ++--- store/templates/index.html | 4 +- store/templates/wishlist.html | 33 ++++---- store/templates/wishlist_add.html | 5 +- 6 files changed, 180 insertions(+), 85 deletions(-) diff --git a/store/templates/app.html b/store/templates/app.html index d5aa6420..2bf65d94 100644 --- a/store/templates/app.html +++ b/store/templates/app.html @@ -1,37 +1,49 @@ {% extends "base.html" %} {% block main %} -
+
- - -

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

- {% if infos['category'] %} - - {{ catalog['categories'][infos['category']]['title']|localize|lower }} - - {% endif %} -
+ + + +

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

- -
- {% if infos['level'] == "?" or infos["level"]|int <= 4 %} - - {% elif infos['level'] == 8 %} - + {% if infos['category'] %} + + {{ catalog['categories'][infos['category']]['title']|localize|lower }} + {% endif %} + {% if infos['level'] == "?" or infos["level"]|int <= 4 %} + + + + {% elif infos['level'] == 8 %} + + + + {% endif %} + + + + + +
+ + + {% set this_app_stars = stars.get(app_id, {})|length %} {% if user %} {% set user_starred_this_app = user['id'] in stars.get(app_id, {}) %} @@ -62,16 +74,16 @@ href="{{ infos["manifest"]["upstream"]["demo"] }}" > - {{ _("Try the demo") }} + + {{ _("Demo") }} {% endif %} + + Install
with
+ +
- - Install
with
- -
-

{{ _("Current version: %(version)s", version=infos["manifest"]["version"]) }}

diff --git a/store/templates/base.html b/store/templates/base.html index 7823da0f..0b8afd5e 100644 --- a/store/templates/base.html +++ b/store/templates/base.html @@ -58,7 +58,7 @@
-
@@ -146,13 +227,15 @@
- {% if user %} - {% endif %} diff --git a/store/templates/catalog.html b/store/templates/catalog.html index e82eadde..b6614a1f 100644 --- a/store/templates/catalog.html +++ b/store/templates/catalog.html @@ -16,10 +16,10 @@ > -
-
+
+
{{ infos['manifest']['name'] }} - + {% if infos['level'] == "?" or infos["level"]|int <= 4 %}