diff --git a/src/core/templates/core/map.html b/src/core/templates/core/map.html index 0d2b5aa1d80eb386ad336f008e1d12e4fe1a4693..931542903c5c69d6c7c5d20c3ad9fec1e3c13e7f 100644 --- a/src/core/templates/core/map.html +++ b/src/core/templates/core/map.html @@ -132,11 +132,28 @@ {% endif %} function styleAssemblies(feature) { - return {color: 'red'}; + if (feature.properties.published) { + return { + color: "#CCFFCC", + weight: 2, + } + } else { + return { + color: "#FFCCCC", + weight: 1, + dashArray: "4 4", + dashOffset: "0", + } + } } function handleAssemblyFeature (feature, layer) { - layer.bindTooltip('<b>' + feature.properties.slug + '</b><br>' + feature.properties.name, {permanent: false, opacity: 0.75}) + layer.bindTooltip( + '<b>' + feature.properties.slug + '</b><br>' + + feature.properties.name + + (feature.properties.published ? '' : '<br>NOT PUBLISHED'), + {permanent: false, opacity: 0.75}, + ) } function loadAssemblies(activeFloor) {