@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user