From 3642ce89764e390d372cd24314d2e6983bb0b21b Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 6 May 2019 12:43:47 +0000 Subject: [PATCH] add slashes to crumbs, remove extra items in path --- pygeoapi/templates/collection.html | 2 +- pygeoapi/templates/collections.html | 2 +- pygeoapi/templates/item.html | 8 ++++---- pygeoapi/templates/items.html | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pygeoapi/templates/collection.html b/pygeoapi/templates/collection.html index a89d671..bf60e3d 100644 --- a/pygeoapi/templates/collection.html +++ b/pygeoapi/templates/collection.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block title %}{{ super() }} {{ data['title'] }} {% endblock %} {% block crumbs %}{{ super() }} -Collections +/ Collections {{ data['title'] }} {% endblock %} {% block body %} diff --git a/pygeoapi/templates/collections.html b/pygeoapi/templates/collections.html index e392952..b495c73 100644 --- a/pygeoapi/templates/collections.html +++ b/pygeoapi/templates/collections.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block title %}{{ super() }} Collections {% endblock %} {% block crumbs %}{{ super() }} -Collections +/ Collections {% endblock %} {% block body %}
diff --git a/pygeoapi/templates/item.html b/pygeoapi/templates/item.html index 22a4527..5804c4b 100644 --- a/pygeoapi/templates/item.html +++ b/pygeoapi/templates/item.html @@ -1,14 +1,14 @@ {% extends "base.html" %} {% block title %}{{ super() }} {{ data['title'] }} {% endblock %} {% block crumbs %}{{ super() }} -Collections +/ Collections {% for link in data['links'] %} {% if link.rel == 'collection' %} - {{ link['title'] }} +/ {{ link['title'] }} {% endif %} {% endfor %} -Items -{{ data['title'] or data['id'] }} +/ Items +/ {{ data['title'] or data['id'] }} {% endblock %} {% block extrahead %} diff --git a/pygeoapi/templates/items.html b/pygeoapi/templates/items.html index 2e77a4d..1e6e12f 100644 --- a/pygeoapi/templates/items.html +++ b/pygeoapi/templates/items.html @@ -1,13 +1,13 @@ {% extends "base.html" %} {% block title %}{{ super() }} {{ data['title'] }} {% endblock %} -{% block crumbs %}{{ super() }} -Collections +{% block crumbs %}{{ super() }} +/ Collections {% for link in data['links'] %} - {% if link.rel == 'collection' %} + {% if link.rel == 'collection' %} / {{ link['title'] }} {% endif %} -{% endfor %} -Items +{% endfor %} +/ Items {% endblock %} {% block extrahead %} @@ -39,7 +39,7 @@ {% for ft in data['features'] %} - {{ ft.id }} + {{ ft.id }} {% for k, v in ft['properties'].items() %} {{ v }} {% endfor %}