Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. <ul>
  2. {% set address = tagsPrefix(tags, 'addr:') %}
  3. {% if address %}
  4. <li class='hasSymbol'>
  5. <i class="fa fa-map-marker" aria-hidden="true"></i>
  6. <span class='key'>{{ keyTrans('addr') }}:</span>
  7. <span class='value'>
  8. {{ attribute(tags, 'addr:street') }}
  9. {{ attribute(tags, 'addr:housenumber') }},
  10. {{ attribute(tags, 'addr:postcode') }}
  11. {{ attribute(tags, 'addr:city') }}
  12. </span>
  13. </li>
  14. {% endif %}
  15. {% if tags.phone %}
  16. <li class='hasSymbol'>
  17. <i class="fa fa-phone" aria-hidden="true"></i>
  18. <span class='key'>{{ keyTrans('phone') }}:</span>
  19. <span class='value'>
  20. <a href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
  21. </span>
  22. </li>
  23. {% endif %}
  24. {% set payment = tagsPrefix(tags, 'payment:') %}
  25. {% if payment %}
  26. <li class='hasSymbol'>
  27. <i class="fa fa-money" aria-hidden="true"></i>
  28. <span class='key'>{{ keyTrans('payment') }}:</span>
  29. <span class='value'>
  30. {% for k, tag in payment %}
  31. {% if tags[tag] == 'no' %}<s>{{ k }}</s> {% else %}{{ k }} {% endif %}
  32. {% endfor %}
  33. </span>
  34. </li>
  35. {% endif %}
  36. {% if attribute(tags, 'wheelchair') %}
  37. <li class='hasSymbol'>
  38. <i class="fa fa-info-circle" aria-hidden="true"></i>
  39. <span class='key'>{{ trans('facilities') }}:</span>
  40. <span class='value'>
  41. {% if attribute(tags, 'wheelchair') %}
  42. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true" title='{{ keyTrans('wheelchair') }}: {{ tagTrans('wheelchair', tags.wheelchair) }}'></i>
  43. {% if attribute(tags, 'toilets:wheelchair') %}
  44. (<span class='{{ attribute(tags, 'toilets:wheelchair') }}' title='{{ keyTrans('toilets:wheelchair') }}: {{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}'>&#128701;</span>)
  45. {% endif %}
  46. {% endif %}
  47. </span>
  48. </li>
  49. {% endif %}
  50. </ul>