Main categories of OpenStreetBrowser with support for whitewater
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.

70 lines
2.2 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. {% if tags.opening_hours %}
  25. {% set oh_state = openingHoursState(tags.opening_hours) %}
  26. {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}
  27. {% set oh_css = oh_css[oh_state] %}
  28. <li class='hasSymbol'>
  29. <i class="fa fa-clock-o {{ oh_css }}" aria-hidden="true"></i>
  30. <span class='key'>{{ keyTrans('opening_hours') }}:</span>
  31. <span class='value'>
  32. {{ trans(oh_state) }}<br />
  33. {{ tags.opening_hours }}
  34. </span>
  35. </li>
  36. {% endif %}
  37. {% set payment = tagsPrefix(tags, 'payment:') %}
  38. {% if payment %}
  39. <li class='hasSymbol'>
  40. <i class="fa fa-money" aria-hidden="true"></i>
  41. <span class='key'>{{ keyTrans('payment') }}:</span>
  42. <span class='value'>
  43. {% for k, tag in payment %}
  44. {% if tags[tag] == 'no' %}<s>{{ k }}</s> {% else %}{{ k }} {% endif %}
  45. {% endfor %}
  46. </span>
  47. </li>
  48. {% endif %}
  49. {% if attribute(tags, 'wheelchair') %}
  50. <li class='hasSymbol'>
  51. <i class="fa fa-info-circle" aria-hidden="true"></i>
  52. <span class='key'>{{ trans('facilities') }}:</span>
  53. <span class='value'>
  54. {% if attribute(tags, 'wheelchair') %}
  55. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true" title='{{ keyTrans('wheelchair') }}: {{ tagTrans('wheelchair', tags.wheelchair) }}'></i>
  56. {% if attribute(tags, 'toilets:wheelchair') %}
  57. (<span class='{{ attribute(tags, 'toilets:wheelchair') }}' title='{{ keyTrans('toilets:wheelchair') }}: {{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}'>&#128701;</span>)
  58. {% endif %}
  59. {% endif %}
  60. </span>
  61. </li>
  62. {% endif %}
  63. </ul>