Skip to content

Commit

Permalink
fix image template src reference (#11604)
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy authored Oct 16, 2023
1 parent 43188af commit c3da618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/layers/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_attribute(self, instance):
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 (
Expand Down Expand Up @@ -242,4 +242,4 @@ class DatasetMetadataSerializer(serializers.Serializer):
metadata_file = MetadataFileField(required=True)

class Meta:
fields = "metadata_file"
fields = "metadata_file"

0 comments on commit c3da618

Please sign in to comment.