From ef5bcd7d10fd4fd75f6df5ee71ee33d27fc41dfe Mon Sep 17 00:00:00 2001 From: paul van genuchten Date: Tue, 14 Apr 2020 01:04:32 +0200 Subject: [PATCH] improves #361 by adding the collection title to Items page (#374) --- pygeoapi/templates/items.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pygeoapi/templates/items.html b/pygeoapi/templates/items.html index 554bbcc..0fc905d 100644 --- a/pygeoapi/templates/items.html +++ b/pygeoapi/templates/items.html @@ -5,6 +5,7 @@ {% for link in data['links'] %} {% if link.rel == 'collection' %} / {{ link['title'] }} + {% set col_title = link['title'] %} {% endif %} {% endfor %} / Items @@ -16,9 +17,10 @@ {% block body %}
-
-

Items

-
+
+

{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% endfor %}

+

Items in this collection.

+
{% if data['features'] %}