update HTML collection page (#1568) (#1569)

This commit is contained in:
Tom Kralidis
2024-03-01 11:03:26 -05:00
committed by GitHub
parent 5764d3b926
commit 8ecb00a6b7
+31 -4
View File
@@ -4,29 +4,56 @@
/ <a href="{{ data['collections_path'] }}">{% trans %}Collections{% endtrans %}</a>
{% endblock %}
{% block body %}
<section id="collections">
<h1>Collections in this service</h1>
<section id="data-collections">
<h1>Data collections in this service</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}Type{% endtrans %}</th>
<th>{% trans %}Description{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for col in data['collections'] %}
{% if col.get('itemType') != 'record' %}
<tr>
<td data-label="name">
<a title="{{ col['title'] | striptags | truncate }}"
href="{{ data['collections_path'] }}/{{ col.id }}">
<span>{{ col['title'] | striptags | truncate }}</span></a>
</td>
<td data-label="type">{{ col["itemType"] }}</td>
<td data-label="description">
{{ col['description'] | striptags | truncate }}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</section>
<section id="record-collections">
<h1>Record collections in this service</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}Description{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for col in data['collections'] %}
{% if col.get('itemType') == 'record' %}
<tr>
<td data-label="name">
<a title="{{ col['title'] | striptags | truncate }}"
href="{{ data['collections_path'] }}/{{ col.id }}">
<span>{{ col['title'] | striptags | truncate }}</span></a>
</td>
<td data-label="description">
{{ col['description'] | striptags | truncate }}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>