-
Notifications
You must be signed in to change notification settings - Fork 160
/
additional_info.html
33 lines (31 loc) · 1 KB
/
additional_info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "package/snippets/additional_info.html" %}
{%- set exclude_fields = [
'id',
'title',
'name',
'notes',
'tag_string',
'license_id',
'owner_org',
] -%}
{% block package_additional_info %}
{%- for field in schema.dataset_fields -%}
{%- if field.field_name not in exclude_fields
and field.display_snippet is not none -%}
<tr>
<th scope="row" class="dataset-label">{{
h.scheming_language_text(field.label) }}</th>
<td class="dataset-details"{%
if field.display_property %} property="{{ field.display_property
}}"{% endif %}>{%- snippet 'scheming/snippets/display_field.html',
field=field, data=pkg_dict, schema=schema -%}</td>
</tr>
{%- endif -%}
{%- endfor -%}
{% if h.check_access('package_update',{'id':pkg_dict.id}) %}
<tr>
<th scope="row" class="dataset-label">{{ _("State") }}</th>
<td class="dataset-details">{{ _(pkg_dict.state) }}</td>
</tr>
{% endif %}
{% endblock %}