From 8c699a1b4bcecbfb470ec5e8dfb14487251c45ca Mon Sep 17 00:00:00 2001 From: paul van genuchten Date: Sat, 28 Nov 2020 22:51:41 +0100 Subject: [PATCH] displays the collection type in list (#579) * displays the collection type in list * fix key in link improve param name --- pygeoapi/templates/collections.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pygeoapi/templates/collections.html b/pygeoapi/templates/collections.html index 649684a..eaa5db4 100644 --- a/pygeoapi/templates/collections.html +++ b/pygeoapi/templates/collections.html @@ -10,19 +10,21 @@ Name + Type Description - {% for k, v in filter_dict_by_key_value(config['resources'], 'type', 'collection').items() %} + {% for col in data['collections'] %} - - {{ v['title'] | striptags | truncate }} + + {{ col['title'] | striptags | truncate }} + {{ col["itemType"] }} - {{ v['description'] | striptags | truncate }} + {{ col['description'] | striptags | truncate }} {% endfor %}