Skip to content
Snippets Groups Projects
Unverified Commit c3da6186 authored by Giovanni Allegri's avatar Giovanni Allegri Committed by GitHub
Browse files

fix image template src reference (#11604)

parent 43188af8
Branches
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class FeatureInfoTemplateField(DynamicComputedField):
elif _field.featureinfo_type == Attribute.TYPE_IMAGE:
_template += (
'<div class="col-xs-12" align="center" style="font-weight: bold; word-wrap: break-word;"> \
<a href="${properties[\'%s\']}" target="_new"><img width="100%%" height="auto" src="${propertiess[\'%s\']}" title="%s" alt="%s"/></a></div>'
<a href="${properties[\'%s\']}" target="_new"><img width="100%%" height="auto" src="${properties[\'%s\']}" title="%s" alt="%s"/></a></div>'
% (_field.attribute, _field.attribute, _label, _label)
)
elif _field.featureinfo_type in (
......@@ -242,4 +242,4 @@ class DatasetMetadataSerializer(serializers.Serializer):
metadata_file = MetadataFileField(required=True)
class Meta:
fields = "metadata_file"
fields = "metadata_file"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment