Skip to content

Commit

Permalink
Merge pull request #251 from dpc-sdp/uat
Browse files Browse the repository at this point in the history
Uat
  • Loading branch information
joelwigley authored Nov 24, 2024
2 parents 66cd7d1 + 4ad9718 commit 8be46cf
Showing 1 changed file with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,30 @@ <h2>{{ _('Data Dictionary') }}</h2>
{%- endblock -%}
{%- block resource_more_items -%}
{% for key, value in h.format_resource_items(res.items()) %}
{% if key not in ('created', 'metadata modified', 'last modified', 'format') %}
{% if key not in ('created', 'metadata modified', 'last modified', 'format', 'filesize', 'size') %}
<tr class="toggle-more"><th scope="row">{{ key | capitalize }}</th><td>{{ value }}</td></tr>
{% endif %}
{% endfor %}
{%- endblock -%}
{%- block resource_fields -%}
{%- for field in schema.resource_fields -%}
{%- if field.field_name not in exclude_fields
and field.display_snippet is not none -%}
<tr>
<th scope="row">
{{- h.scheming_language_text(field.label) -}}
</th>
<td>
{%- snippet 'scheming/snippets/display_field.html',
field=field, data=res, entity_type='dataset',
object_type=dataset_type -%}
</td>
</tr>
{%- endif -%}
{% if field.field_name == "filesize" and res.filesize and res.filesize is string and res.filesize.startswith("eg.")
or not res.filesize or res.filesize == "0" %}
{% else %}
{%- if field.field_name not in exclude_fields
and field.display_snippet is not none -%}
<tr>
<th scope="row">
{{- h.scheming_language_text(field.label) -}}
</th>
<td>
{%- snippet 'scheming/snippets/display_field.html',
field=field, data=res, entity_type='dataset',
object_type=dataset_type -%}
</td>
</tr>
{%- endif -%}
{% endif %}
{%- endfor -%}
{%- endblock -%}
</tbody>
Expand Down

0 comments on commit 8be46cf

Please sign in to comment.