diff --git a/xmas.json b/xmas.json index ab72802..3bc95f9 100644 --- a/xmas.json +++ b/xmas.json @@ -2,10 +2,11 @@ "type": "overpass", "name": { "en": "Christmas", - "fr": "Noël" + "fr": "Noël", + "de": "Weihnachten" }, "query": { - "14": [ + "13": [ "(", "node[\"xmas:feature\"];", "way[\"xmas:feature\"];", @@ -14,9 +15,17 @@ ] }, "feature": { + "pre": [ + "{% set isCurrent = meta.timestamp > now|date_modify('-1 month')|date('Y') %}", + "{% set bgColor = isCurrent ? '#f2756a' : 'red' %}" + ], "title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}", "description": "{{ tagTransList(\"xmas:feature\", attribute(tags, \"xmas:feature\")) }}", "body": [ + "{% if not isCurrent %}", + "
Feature has not been updated for the current season! Please check and set the tag 'xmas:lastcheck' to the current date.
", + "{% endif %}", + "", "{% if attribute(tags, 'xmas:location') %}", "
  • ", " ", @@ -57,16 +66,15 @@ "
  • ", "{% endif %}" ], - "markerSign": [ - "{{ attribute(const, attribute(tags, 'xmas:feature'))|raw }}", - "" - ] + "markerSign": "{{ attribute(const, attribute(tags, 'xmas:feature'))|raw }}", + "markerSymbol": "{{ markerPointer({\"fillColor\":bgColor})|raw }}", + "listMarkerSymbol": "{{ markerCircle({\"fillColor\":bgColor})|raw }}" }, "const": { - "market": "", + "market": "", "tree": "", "shop": "", - "event": "" + "event": "" }, "info": [ "", @@ -76,6 +84,10 @@ " ", " ", "{% endfor %}", + " ", + " ", + " ", + " ", "
    {{ tagTrans('xmas:feature', value) }}
    {{ markerCircle({\"fillColor\":\"red\"})|raw }}outdated feature
    " ] }