From 48320fc648d57570808faceb4c5d8d14fca43353 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:56:58 +0300 Subject: [PATCH] Init update for hub list and grid --- .../scss/bulma/components/plugins-list.sass | 1 + qgis-app/templates/base.html | 2 +- qgis-app/templates/base/list.html | 2 +- qgis-app/templates/base/list_galery.html | 423 +++++++++--------- qgis-app/templates/base/list_grid_card.html | 75 ++++ qgis-app/templates/base/list_table.html | 44 ++ 6 files changed, 345 insertions(+), 202 deletions(-) create mode 100644 qgis-app/templates/base/list_grid_card.html create mode 100644 qgis-app/templates/base/list_table.html diff --git a/qgis-app/static/style/scss/bulma/components/plugins-list.sass b/qgis-app/static/style/scss/bulma/components/plugins-list.sass index 8313fb30..3c57d80e 100644 --- a/qgis-app/static/style/scss/bulma/components/plugins-list.sass +++ b/qgis-app/static/style/scss/bulma/components/plugins-list.sass @@ -325,3 +325,4 @@ div background: white padding-top: 3rem box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) + z-index: 1 diff --git a/qgis-app/templates/base.html b/qgis-app/templates/base.html index 1e1073e1..6b1e0033 100644 --- a/qgis-app/templates/base.html +++ b/qgis-app/templates/base.html @@ -6,7 +6,7 @@ {% render_bundle 'main' %} - + {% block title %}QGIS {% block extratitle %}Plugins{% endblock %}{% endblock %} diff --git a/qgis-app/templates/base/list.html b/qgis-app/templates/base/list.html index c8fcd977..07d1b505 100644 --- a/qgis-app/templates/base/list.html +++ b/qgis-app/templates/base/list.html @@ -57,7 +57,7 @@

{% if title %}{{title}}{% else %}{% trans "All" %} {{ resource_name }}s{% en {% if queries %} Keyword: "{{ queries }}"
Search result: {% endif %} - {{ count }} record{{ object_list.count|pluralize:"s" }} found. + {{ count }} record{{ object_list.count|pluralize:"s" }} found. hwllo

diff --git a/qgis-app/templates/base/list_galery.html b/qgis-app/templates/base/list_galery.html index 9833b0d0..9b2ffe0d 100644 --- a/qgis-app/templates/base/list_galery.html +++ b/qgis-app/templates/base/list_galery.html @@ -3,223 +3,246 @@ {% block extrajs %} {{ block.super }} {% endblock %} {% block content %} -

{% if title %}{{title}}{% else %}{% trans "All" %} {{ resource_name }}s{% endif %}

+

{% if title %}{{title}}{% else %}{% trans "All" %} {{ resource_name }}s{% endif %}

- {% if not object_list and not queries %} +
+
ℹ️
+
+ {% if not object_list and not queries %}

No data.

- {% elif not object_list and queries %} + {% elif not object_list and queries %}

- Keyword: "{{ queries }}"
Search result: no record found. + Keyword: "{{ queries }}"
Search result: no record found.

- {% else %} + {% else %}

- {% if queries %} - Keyword: "{{ queries }}"
Search result: - {% endif %} - {{ count }} record{{ object_list.count|pluralize:"s" }} found. + {% if queries %} + Keyword: "{{ queries }}"
Search result: + {% endif %} + {{ count }} record{{ object_list.count|pluralize:"s" }} found.

- {% endif %} - -
- - -
-
- - -
- + + {% if object_list.count %} +
+
+
+

+ +

+

+ +

+
+
+
+
+

+ +

+

+

+
+

+
+
+
+ + - {% if forloop.counter|divisibleby:3 %} -
-
- {% endif %} - {% endfor %} -
+ -