Skip to content

Commit

Permalink
EDR: add HTML table of parameters for collections with EDR support (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Jul 17, 2024
1 parent 3d81115 commit 5108750
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pygeoapi/templates/collections/collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,25 @@ <h3>{% trans %}Tiles{% endtrans %}</h3>
{% endif %}
{% endfor %}
{% endif %}

{% if 'parameter_names' in data %}
<h3>Parameters</h3>
<table class="table table-striped table-bordered">
<tr>
<th>id</th>
<th>name</th>
<th>units</th>
</tr>
{% for parameter in data['parameter_names'].values() %}
<tr>
<td>{{ parameter['id'] }}</td>
<td>{{ parameter['name'] }}</td>
<td>{{ parameter['unit']['symbol']['value'] }}</td>
</tr>
{% endfor %}
</table>
{% endif %}

<h3>{% trans %}Links{% endtrans %}</h3>
<ul>
{% for link in data['links'] %}
Expand Down

0 comments on commit 5108750

Please sign in to comment.