Skip to content

Commit 9624a4a

Browse files
added geopackage option for feature, strati and artifact in UI
1 parent d42a57d commit 9624a4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

openatlas/templates/util/api_links.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div class="btn-group">
2-
<button type="button" class="{{ config.CSS.button.primary }} dropdown-toggle text-capitalize" data-bs-toggle="dropdown" aria-expanded="false">
3-
{{ _('download')}}
2+
<button type="button"
3+
class="{{ config.CSS.button.primary }} dropdown-toggle text-capitalize"
4+
data-bs-toggle="dropdown" aria-expanded="false">
5+
{{ _('download') }}
46
</button>
57
<ul class="dropdown-menu p-2">
68
<h6 class="dropdown-header px-0 py-1"><small>JSON</small></h6>
@@ -11,6 +13,8 @@ <h6 class="dropdown-header px-0 py-1"><small>JSON</small></h6>
1113
{% if entity.class_.name == 'place' %}
1214
<li>{{ "THANADOS"|link(url_for('api.subunits', id_=entity.id), external=True)|safe }}</li>
1315
<li>{{ "ARIADNEplus"|link(url_for('api.subunits', id_=entity.id, format='xml'), external=True)|safe }}</li>
16+
{% endif %}
17+
{% if entity.class_.name in ['place', 'feature', 'stratigraphic_unit', 'artifact'] %}
1418
<li>{{ "GeoPackage"|link(url_for('api.entity', id_=entity.id, format='gpkg'), external=True)|safe }}</li>
1519
{% endif %}
1620
<li class="dropdown-divider"></li>

0 commit comments

Comments
 (0)