feat: added Spatial to template

This commit is contained in:
Maicol Battistini 2024-09-25 11:54:25 +02:00
parent cc28703eb0
commit 94af245372
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@
{% block primary_content_inner %}
{{ super() }}
{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %}
{% dataset_extent %}
{% if dataset_extent %}
{% snippet "spatial/snippets/dataset_map.html", extent=dataset_extent %}
{% endif %}
{% block package_description %}
{% if pkg.private %}
<span class="dataset-private badge badge-inverse pull-right">