From 2b1c7eea4d844845ad41565f8247ba26a986aa7c Mon Sep 17 00:00:00 2001 From: Colm Britton Date: Wed, 24 Jul 2024 19:28:00 +0300 Subject: [PATCH] make each item of document-urls a link (#270) --- .../templates/components/entity-value/macro.jinja | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/templates/components/entity-value/macro.jinja b/application/templates/components/entity-value/macro.jinja index 5fd189b0..9aa59826 100644 --- a/application/templates/components/entity-value/macro.jinja +++ b/application/templates/components/entity-value/macro.jinja @@ -5,6 +5,17 @@ {{value}} + {% elif field_spec[field]['field'] == 'document-urls' %} + {%- set urls = value.split(';') %} + {% elif field_spec[field]['datatype'] == 'wkt' %}
{{ value }}
{% elif field in ["organisation-entity"] %}