From 33b4ff73a43cdfa2244ccd6a7ca9d76a7de7f2dc Mon Sep 17 00:00:00 2001 From: Benjamin Webb <40066515+webb-ben@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:23:11 -0800 Subject: [PATCH] Display numberMatched in HTML view (#1797) * Display numberMatched in HTML view * Fix display on no numberMatched * Amend based on feedback --- pygeoapi/templates/collections/items/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pygeoapi/templates/collections/items/index.html b/pygeoapi/templates/collections/items/index.html index 6153d2d..bb9b488 100644 --- a/pygeoapi/templates/collections/items/index.html +++ b/pygeoapi/templates/collections/items/index.html @@ -22,7 +22,6 @@ {% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% endfor %} - {% trans %}Items in this collection{% endtrans %}. {% if data['features'] %} @@ -35,7 +34,9 @@ - {% trans %}Warning: Higher limits not recommended!{% endtrans %} + {% if data['numberMatched'] %} + {% trans %}Items in this collection{% endtrans %}: {{ data['numberMatched'] }} + {% endif %} @@ -47,6 +48,7 @@ 1,000 2,000 + {% trans %}Warning: Higher limits not recommended!{% endtrans %}
{% trans %}Items in this collection{% endtrans %}.
{% trans %}Items in this collection{% endtrans %}: {{ data['numberMatched'] }}
{% trans %}Warning: Higher limits not recommended!{% endtrans %}