Files
pygeoapi/pygeoapi/templates/collection.html
T
Paul a2c2cdae49 adding the crumbspath as suggested in #93
various improvements in html display; add items list to items page, add link to json in crumbs bar, add description where available
2019-04-13 15:39:07 +02:00

20 lines
785 B
HTML

{% extends "base.html" %}
{% block title %}{{ super() }} {{ data['title'] }} {% endblock %}
{% block crumbs %}{{ super() }}
<a href="../collections">Collections</a>
<a href="./{{ data['name'] }}">{{ data['title'] }}</a>
{% endblock %}
{% block body %}
<section id="collection">
<h2>{{ data['title'] }}</h2>
<div>{{ data['description'] }}</div>
<div><a title="Browse Items" href="{{ config['server']['url'] }}/collections/{{ data['name'] }}/items?f=html">Browse</a> through the items of the collection {{ data['title'] }}</div>
<h2>Links</h2>
<ul>
{% for link in data['links'] %}
<li><a title="{{ link['rel'] }}" href="{{ link['href'] }}">{{ link['href'] }}</a></li>
{% endfor %}
</ul>
</section>
{% endblock %}