add feature collection and featutre id to HTML representations (#26) (#296)

This commit is contained in:
Tom Kralidis
2019-11-07 15:16:14 -05:00
committed by GitHub
parent e4a36e7248
commit 21c6a61912
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -819,6 +819,7 @@ class API(object):
content['links'][0]['rel'] = 'alternate'
content['links'][1]['rel'] = 'self'
content['title'] = self.config['datasets'][dataset]['title']
content = _render_j2_template(self.config, 'item.html',
content)
+1 -1
View File
@@ -12,7 +12,7 @@
{{ v | urlize() }}
{% endif %}
{%- endmacro %}
{% block title %}{{ super() }} {{ data['title'] }} {% endblock %}
{% block title %}{{ super() }} {{ data['title'] }} - {{ data['id'] }}{% endblock %}
{% block crumbs %}{{ super() }}
/ <a href="../../../collections">Collections</a>
{% for link in data['links'] %}