Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

{#- pass the datadictionary to javascript, so we can init columns there -#}
{%- set datadictionary = h.og_datastore_dictionary(resource.id, resource_view.get('show_fields')) -%}
{%- set nbspval = " "|safe -%}

<script type=text/javascript>
const gdataDict = {{ datadictionary|tojson }}
Expand Down Expand Up @@ -53,15 +52,15 @@
{% if 'show_fields' not in resource_view or field.id in resource_view.show_fields -%}
<th scope="col">
{%- if data_dictionary_labels and field.info is defined and field.info.label|length -%}
{{ field.info.label|replace(" ", nbspval) }}
{{ field.info.label + " " }}
{%- else -%}
{{ field.id|replace(" ", nbspval) }}
{{ field.id + " " }}
{%- endif -%}
&nbsp;
{%- if data_dictionary_labels and field.info is defined and (field.info.label|length or field.info.notes|length)-%}
<i class="fa fa-info-circle" title="{{field.id}} ({{field.type}})&#10;{{ h.markdown_extract(field.info.notes, 300) }}"></i>
&nbsp;
{%- endif -%}
&nbsp;</th>
</th>
{%- endif %}
{% endfor -%}
<th id="_colspacer">colspacer</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

{#- pass the datadictionary to javascript, so we can init columns there -#}
{%- set datadictionary = h.og_datastore_dictionary(resource.id, resource_view.get('show_fields')) -%}
{%- set nbspval = "&nbsp;"|safe -%}

<script type=text/javascript>
const gdataDict = {{ datadictionary|tojson }}
Expand Down Expand Up @@ -53,15 +52,15 @@
{% if 'show_fields' not in resource_view or field.id in resource_view.show_fields -%}
<th scope="col">
{%- if data_dictionary_labels and field.info is defined and field.info.label|length -%}
{{ field.info.label|replace(" ", nbspval) }}
{{ field.info.label + " " }}
{%- else -%}
{{ field.id|replace(" ", nbspval) }}
{{ field.id + " " }}
{%- endif -%}
&nbsp;
{%- if data_dictionary_labels and field.info is defined and (field.info.label|length or field.info.notes|length)-%}
<i class="fa fa-info-circle" title="{{field.id}} ({{field.type}})&#10;{{ h.markdown_extract(field.info.notes, 300) }}"></i>
&nbsp;
{%- endif -%}
&nbsp;</th>
</th>
{%- endif %}
{% endfor -%}
<th id="_colspacer">colspacer</th>
Expand Down
Loading