Skip to content

Commit

Permalink
formats as list
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten committed Feb 26, 2024
1 parent ac2c094 commit 44ed5eb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pycsw/ogc/api/templates/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ <h2>{{ data['id'] }}</h2>
{% if 'properties' in data %}
{% for key, value in data['properties'].items() %}
<tr>
<td>{{ key }}</td>
{% if key == 'keywords' %}
<td>{{ key | capitalize }}</td>
{% if key == 'keywords' or key == 'formats' %}
<td>
<ul>
{% for keyword in value %}
Expand Down Expand Up @@ -114,7 +114,13 @@ <h2>{{ data['id'] }}</h2>
{% if data['time'] %}
<tr>
<td>Temporal</td>
<td>{{ data['time'] }}</td>
<td>
<ul>
{% for d in data['time'] %}
<li>{{ d }}</li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
<tr>
Expand Down

0 comments on commit 44ed5eb

Please sign in to comment.