From 96e273a8b38d14fb803887c0e4529a86ea98a6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 12 Aug 2018 13:15:00 +0200 Subject: [PATCH] gastro: show dietary options --- gastro.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gastro.json b/gastro.json index 028f8b3..369ff4c 100644 --- a/gastro.json +++ b/gastro.json @@ -30,6 +30,18 @@ " {{ keyTrans('cuisine') }}:", " {{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}", " ", + " {% set diets = tagsPrefix(tags, 'diet:') %}", + " {% if diets %}", + "
  • ", + " ", + " {{ keyTrans('diet') }}:", + " ", + " {% for kv, k in diets %}", + " {% set v = tags[k] %}", + " {% if v == 'no' %}✘ {% elseif v == 'only' %}❗{% else %}✔{% endif %}{{ keyTrans(k) }}", + " {% endfor %}", + "
  • ", + " {% endif %}", "" ], "markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}"