Add some failsafes: don't let those special renderings render if they are not defined

This commit is contained in:
pietervdvn 2021-05-10 23:46:50 +02:00
parent 06ddf37817
commit d336eafaa3
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,8 @@
"render":{
"en": "<a href='#{_closest_other_drinking_water_id}'>There is another drinking water fountain at {_closest_other_drinking_water_distance} meter</a>",
"nl": "<a href='#{_closest_other_drinking_water_id}'>Er bevindt zich een ander drinkwaterpunt op {_closest_other_drinking_water_distance} meter</a>"
}
},
"condition": "_closest_other_drinking_water_id~*"
}
]
}

View file

@ -80,7 +80,7 @@
},
"last_edit": {
"#": "Gives some metainfo about the last edit and who did edit it - rendering only",
"#condition": "_last_edit:contributor~*",
"condition": "_last_edit:contributor~*",
"render": "<div class='subtle' style='font-size: small; margin-top: 2em; margin-bottom: 0.5em;'><a href='https://www.openStreetMap.org/changeset/{_last_edit:changeset}' target='_blank'>Last edited on {_last_edit:timestamp}</a> by <a href='https://www.openStreetMap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a></div>"
}
}