diff --git a/apps/map/templates/map/index.html b/apps/map/templates/map/index.html index 0702284..340f15e 100644 --- a/apps/map/templates/map/index.html +++ b/apps/map/templates/map/index.html @@ -144,18 +144,20 @@ function getLabelClass(pos_or_neg) { } function popup(feature, layer) { - layer.bindPopup( - ""+ - ""+ - ""+ - "{% trans "View full case study" %}" - ); + var str = ''; + if(feature.properties.images.length > 0) { + str = ""; + } + str += (""+ + ""+ + "{% trans "View full case study" %}") + layer.bindPopup(str); }; // This is called when the map is initialized