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.

136 lines
4.0 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  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('address') }}:</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.website %}
  16. <li class='hasSymbol'>
  17. <i class="fa fa-globe" aria-hidden="true"></i>
  18. <span class='key'>{{ keyTrans('website') }}:</span>
  19. <span class='value'>
  20. <a target='_blank' href='{{ tags.website|websiteUrl }}'>{{ tags.website }}</a>
  21. </span>
  22. </li>
  23. {% endif %}
  24. {% if attribute(tags, 'contact:website') %}
  25. <li class='hasSymbol'>
  26. <i class="fa fa-globe" aria-hidden="true"></i>
  27. <span class='key'>{{ keyTrans('website') }}:</span>
  28. <span class='value'>
  29. <a target='_blank' href='{{ attribute(tags, 'contact:website')|websiteUrl }}'>{{ attribute(tags, 'contact:website') }}</a>
  30. </span>
  31. </li>
  32. {% endif %}
  33. {% if tags.phone %}
  34. <li class='hasSymbol'>
  35. <i class="fa fa-phone" aria-hidden="true"></i>
  36. <span class='key'>{{ keyTrans('phone') }}:</span>
  37. <span class='value'>
  38. <a target='_blank' href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
  39. </span>
  40. </li>
  41. {% endif %}
  42. {% if attribute(tags, 'contact:phone') %}
  43. <li class='hasSymbol'>
  44. <i class="fa fa-phone" aria-hidden="true"></i>
  45. <span class='key'>{{ keyTrans('phone') }}:</span>
  46. <span class='value'>
  47. <a target='_blank' href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
  48. </span>
  49. </li>
  50. {% endif %}
  51. {% if attribute(tags, 'contact:email') %}
  52. <li class='hasSymbol'>
  53. <i class="fa fa-envelope" aria-hidden="true"></i>
  54. <span class='key'>{{ keyTrans('email') }}:</span>
  55. <span class='value'>
  56. <a target='_blank' href='mailto:{{ attribute(tags, 'contact:email') }}'>
  57. {{ attribute(tags, 'contact:email') }}
  58. </a>
  59. </span>
  60. </li>
  61. {% endif %}
  62. {% if attribute(tags, 'email') %}
  63. <li class='hasSymbol'>
  64. <i class="fa fa-envelope" aria-hidden="true"></i>
  65. <span class='key'>{{ keyTrans('email') }}:</span>
  66. <span class='value'>
  67. <a target='_blank' href='mailto:{{ attribute(tags, 'email') }}'>
  68. {{ attribute(tags, 'email') }}
  69. </a>
  70. </span>
  71. </li>
  72. {% endif %}
  73. {% if tags.opening_hours %}
  74. <li class='hasSymbol'>
  75. <i class="fa fa-clock-o" aria-hidden="true"></i>
  76. <span class='key'>{{ keyTrans('opening_hours') }}:</span>
  77. <span class='value'>
  78. {{ tags.opening_hours }}
  79. </span>
  80. </li>
  81. {% endif %}
  82. {% set payment = tagsPrefix(tags, 'payment:') %}
  83. {% if payment %}
  84. <li class='hasSymbol'>
  85. <i class="fa fa-money" aria-hidden="true"></i>
  86. <span class='key'>{{ keyTrans('payment') }}:</span>
  87. <span class='value'>
  88. {% set i = 0 %}
  89. {% for k, tag in payment %}
  90. {%- if i > 0 %},{% endif %}
  91. <span title="{{ tagTrans(k, tags[tag]) }}">{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s>{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}</span>
  92. {% set i = i + 1 -%}
  93. {% endfor %}
  94. </span>
  95. </li>
  96. {% endif %}
  97. {% if attribute(tags, 'wheelchair') %}
  98. <li class='hasSymbol'>
  99. <i class="fa fa-info-circle" aria-hidden="true"></i>
  100. <span class='key'>{{ trans('facilities') }}:</span>
  101. <span class='value'>
  102. <ul>
  103. {% if attribute(tags, 'wheelchair') %}
  104. <li class='hasSymbol'>
  105. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true"></i>
  106. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  107. <span class='value'>
  108. {{ tagTrans('wheelchair', tags.wheelchair) }}
  109. <ul>
  110. {% if attribute(tags, 'toilets:wheelchair') %}
  111. <li class='hasSymbol'>
  112. <span class='{{ attribute(tags, 'toilets:wheelchair') }} symbol'>&#128701;</span>
  113. <span class='key'>{{ keyTrans('toilets:wheelchair') }}:</span>
  114. <span class='value'>{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}</span>
  115. </li>
  116. {% endif %}
  117. </ul>
  118. </span>
  119. </li>
  120. {% endif %}
  121. </ul>
  122. </span>
  123. </li>
  124. {% endif %}
  125. </ul>