From 7e8be994a65d46a062b4414700ecc810bf2078e9 Mon Sep 17 00:00:00 2001 From: paul van genuchten Date: Mon, 27 May 2019 13:25:10 +0200 Subject: [PATCH] this sets the max count on columns to 5 on the feature table, as suggested in #115 (#141) --- pygeoapi/templates/items.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygeoapi/templates/items.html b/pygeoapi/templates/items.html index 34f2c8c..63dc65b 100644 --- a/pygeoapi/templates/items.html +++ b/pygeoapi/templates/items.html @@ -32,7 +32,9 @@ id {% for k, v in data['features'][0]['properties'].items() %} + {% if loop.index < 5 %} {{ k }} + {% endif %} {% endfor %} @@ -41,7 +43,9 @@ {{ ft.id }} {% for k, v in ft['properties'].items() %} + {% if loop.index < 5 %} {{ v | urlize(20, target='_blank') }} + {% endif %} {% endfor %} {% endfor %}