Skip to content

Commit

Permalink
cove_rdls/templates/cove_rdls/additional_fields_table.html: Improve A…
Browse files Browse the repository at this point in the history
…dditional fields table
  • Loading branch information
Ed (ODSC) committed Sep 6, 2023
1 parent 9278064 commit 083eebf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions cove_rdls/templates/cove_rdls/additional_fields_table.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{% load i18n %}

<!-- <p>{{ additional_fields }}</p> -->

<table class="table">
<thead>
<tr>
<th class="">{% trans 'Field Name' %}</th>
<th class="">{% trans 'Contents' %}</th>
<th class="">{% trans 'Where field occurs' %}</th>
<th class="">{% trans 'Usage Count' %}
<th class="">{% trans 'First 3 Values' %}</th>
<th class="">{% trans 'First 3 Locations' %}</th>
</tr>
</thead>
<tbody>
Expand All @@ -15,7 +18,14 @@
{{ value.field_name }}
</td>
<td>
{{ value.examples }}
{{ value.examples|length }}
</td>
<td>
{% for error in value.examples|slice:":3" %}
<li>
{{ error.path|join:"/" }}
</li>
{% endfor %}
</td>
<td>
{{ value.path }}
Expand Down

0 comments on commit 083eebf

Please sign in to comment.