diff --git a/pygeoapi/templates/collections/collection.html b/pygeoapi/templates/collections/collection.html index 61288cb..a434184 100644 --- a/pygeoapi/templates/collections/collection.html +++ b/pygeoapi/templates/collections/collection.html @@ -30,6 +30,23 @@
+ + {% set ns = namespace(header_printed=false) %} + {% for link in data['links'] %} + {% if link['rel'] == 'license' %} + {% if not ns.header_printed %} +

{% trans %}License{% endtrans %}

+ {% set ns.header_printed = true %} + {% endif %} + + {% endif %} + {% endfor %} + {% if data['itemType'] == 'feature' or data['itemType'] == 'record' %}

{% trans %}Browse{% endtrans %}