Skip to content

Commit

Permalink
Merge branch 'uat'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Nov 26, 2024
2 parents b42788d + c5ddd94 commit 426f39f
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions ckanext/vocabulary_services/templates/vocabulary/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,23 @@ <h3>Total: {{ terms|length }}</h3>
Last updated: {% snippet 'snippets/local_friendly_datetime.html', datetime_obj=vocabulary_service.date_last_processed %}
</p>

<table class="table table-bordered">
<thead>
<th>Label</th>
<th>URI</th>
{% if vocabulary_service.is_hierarchical %}
<th>Broader term</th>
{% endif %}
<th>Definition</th>
<th>Quantity Kind</th>
<th>Created</th>
<th>Updated</th>
</thead>
<table class="table table-bordered table-striped">
<tbody>
{% for term in terms %}
<tr>
<td>{{ term.label }}</td>
<td>{{ term.uri }}</td>
{% if vocabulary_service.is_hierarchical %}
<td>{{ term.broader }}</td>
{% endif %}
<td>{{ term.definition }}</td>
<td>{{ term.quantity_kind }}</td>
<td>{{ term.date_created }}</td>
<td>{{ term.date_modified }}</td>
<tr class="{{ 'even' if loop.index % 2 == 0 else 'odd' }}">
<td>
<small>
<strong>Label:</strong> {{ term.label }}<br/>
<strong>URI:</strong> {{ term.uri }}<br/>
{% if vocabulary_service.is_hierarchical %}
<strong>Broader term:</strong> {{ term.broader }}<br/>
{% endif %}
<strong>Definition:</strong> {{ term.definition }}<br/>
<strong>Quantity Kind:</strong> {{ term.quantity_kind }}<br/>
<strong>Created:</strong> {{ term.date_created }}<br/>
<strong>Updated:</strong> {{ term.date_modified }}<br/>
</small>
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 426f39f

Please # to comment.