Skip to content

Commit 4d99ed9

Browse files
authored
Merge pull request #145 from open-data/format-type
display translated values for format_type in data dictionary
2 parents 2933e74 + 1c6185c commit 4d99ed9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

changes/145.changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Display format_type for recombinant table fields in the Reference tab and Data Dictionary.

ckanext/recombinant/templates/recombinant/snippets/data_dictionary.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h3>{{ _("Data Dictionary") }}</h3>
106106
h.recombinant_language_text(field.label)
107107
or field.datastore_id
108108
}}</div>
109-
<div class="col-md-4">{{ field_type }}</div>
109+
<div class="col-md-4"><code>{{ field_type }}</code></div>
110110
<div class="col-md-1">{% if has_extra %}»{% endif %}</div>
111111
</div>
112112
</div>
@@ -118,7 +118,7 @@ <h3>{{ _("Data Dictionary") }}</h3>
118118
<dl class="row">
119119
{% block resource_data_dictionary_field scoped %}
120120
{% call dictionary_field(_('ID')) %}{{ field.datastore_id }}{% endcall %}
121-
{% call dictionary_field(_('Type')) %}{{ field_type }}{% endcall %}
121+
{% call dictionary_field(_('Format')) %}{{ h.recombinant_language_text(field.format_type) }}{% endcall %}
122122
{{ extra_info }}
123123
{% endblock %}
124124
</dl>

0 commit comments

Comments
 (0)