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' %} - +
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.
- {% 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.
Modified Date: {{ object.modified_date|date:"d F Y" }}
- -- - {% if object.style_type %} - Style Type: {{ object.style_type.name|title }} - {% else %} - {{ object.description|md_to_html|striptags|truncatewords:15 }} - {% endif %} -
- -{{ object.name }}
++ {{ object.get_creator_name }} | {{ object.upload_date|date:"d F Y" }} +
+ ++ + + + + {{ object.modified_date|date:"d F Y" }} + +
++ | Name | +Type | ++ + | +Creator | +Upload Date | +Hello | +
---|---|---|---|---|---|---|
+ {% if object.thumbnail_image and object.thumbnail_image.file %} + {% thumbnail object.thumbnail_image "420x420" format="PNG" as im %} + + {% endthumbnail %} + {% else %} + + {% endif %} + | +{{ object.name|title }} | +{{ object.object_type.name|title }} | +{{ object.download_count }} | +{{ object.get_creator_name|title }} | +{{ object.upload_date|date:"d F Y" }} | ++ {% if user.is_staff or user == object.creator %} + + + {% endif %} + + | +