Browse Source

gastro: show dietary options

fitness_trail
parent
commit
96e273a8b3
  1. 12
      gastro.json

12
gastro.json

@ -30,6 +30,18 @@
" <span class='key'>{{ keyTrans('cuisine') }}:</span>",
" <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>",
" </li>",
" {% set diets = tagsPrefix(tags, 'diet:') %}",
" {% if diets %}",
" <li class='hasSymbol'>",
" <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('diet') }}:</span>",
" <span class='value'>",
" {% for kv, k in diets %}",
" {% set v = tags[k] %}",
" <span title='{{ k ~ '=' ~ v }}' style='white-space: nowrap; margin-right: 0.5em;'>{% if v == 'no' %}✘ {% elseif v == 'only' %}❗{% else %}✔{% endif %}{{ keyTrans(k) }}</span>",
" {% endfor %}",
" </span></li>",
" {% endif %}",
"</ul>"
],
"markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}"

Loading…
Cancel
Save