Skip to content

Commit ba90c26

Browse files
authored
Merge pull request #146 from open-data/format-type
use code tag for field_type only on reference tab for recombinant tables
2 parents 4d99ed9 + 1728b51 commit ba90c26

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

changes/146.changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use the <code> tags on the Reference tab only for recombinant tables.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ <h3>{{ _("Data Dictionary") }}</h3>
106106
h.recombinant_language_text(field.label)
107107
or field.datastore_id
108108
}}</div>
109-
<div class="col-md-4"><code>{{ field_type }}</code></div>
109+
<div class="col-md-4">
110+
{% if has_extra %}{{ field_type }}
111+
{% else %}<code>{{ field_type }}</code>
112+
{% endif %}
113+
</div>
110114
<div class="col-md-1">{% if has_extra %}»{% endif %}</div>
111115
</div>
112116
</div>

0 commit comments

Comments
 (0)