From 8ecb00a6b7d6876ec4e6691c93e000dc52980e69 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 1 Mar 2024 11:03:26 -0500 Subject: [PATCH] update HTML collection page (#1568) (#1569) --- pygeoapi/templates/collections/index.html | 35 ++++++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/pygeoapi/templates/collections/index.html b/pygeoapi/templates/collections/index.html index 5336df3..8ffad1d 100644 --- a/pygeoapi/templates/collections/index.html +++ b/pygeoapi/templates/collections/index.html @@ -4,29 +4,56 @@ / {% trans %}Collections{% endtrans %} {% endblock %} {% block body %} -
-

Collections in this service

+
+

Data collections in this service

- {% for col in data['collections'] %} + {% if col.get('itemType') != 'record' %} - + {% endif %} + {% endfor %} + +
{% trans %}Name{% endtrans %}{% trans %}Type{% endtrans %} {% trans %}Description{% endtrans %}
{{ col['title'] | striptags | truncate }} {{ col["itemType"] }} {{ col['description'] | striptags | truncate }}
+
+
+

Record collections in this service

+ + + + + + + + + {% for col in data['collections'] %} + {% if col.get('itemType') == 'record' %} + + + + + {% endif %} {% endfor %}
{% trans %}Name{% endtrans %}{% trans %}Description{% endtrans %}
+ + {{ col['title'] | striptags | truncate }} + + {{ col['description'] | striptags | truncate }} +