Main categories of OpenStreetBrowser with public transport zoom level
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.

160 lines
4.8 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
7 years ago
7 years ago
  1. <ul>
  2. {% set hasDescription = tagsPrefix(tags, 'description:') %}
  3. {% if tags.description or hasDescription %}
  4. <li class='hasSymbol'>
  5. <i class="fa fa-info" aria-hidden="true"></i>
  6. <span class='value'>{{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0])) }}</span>
  7. </li>
  8. {% endif %}
  9. {% set address = tagsPrefix(tags, 'addr:') %}
  10. {% if address %}
  11. <li class='hasSymbol'>
  12. <i class="fa fa-map-marker" aria-hidden="true"></i>
  13. <span class='key'>{{ keyTrans('address') }}:</span>
  14. <span class='value'>
  15. {{ attribute(tags, 'addr:street') }}
  16. {{ attribute(tags, 'addr:housenumber') }},
  17. {{ attribute(tags, 'addr:postcode') }}
  18. {{ attribute(tags, 'addr:city') }}
  19. </span>
  20. </li>
  21. {% endif %}
  22. {% if tags.website %}
  23. <li class='hasSymbol'>
  24. <i class="fa fa-globe" aria-hidden="true"></i>
  25. <span class='key'>{{ keyTrans('website') }}:</span>
  26. <span class='value'>
  27. <a target='_blank' href='{{ tags.website|websiteUrl }}'>{{ tags.website }}</a>
  28. </span>
  29. </li>
  30. {% endif %}
  31. {% if attribute(tags, 'contact:website') %}
  32. <li class='hasSymbol'>
  33. <i class="fa fa-globe" aria-hidden="true"></i>
  34. <span class='key'>{{ keyTrans('website') }}:</span>
  35. <span class='value'>
  36. <a target='_blank' href='{{ attribute(tags, 'contact:website')|websiteUrl }}'>{{ attribute(tags, 'contact:website') }}</a>
  37. </span>
  38. </li>
  39. {% endif %}
  40. {% if tags.phone %}
  41. <li class='hasSymbol'>
  42. <i class="fa fa-phone" aria-hidden="true"></i>
  43. <span class='key'>{{ keyTrans('phone') }}:</span>
  44. <span class='value'>
  45. <a target='_blank' href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
  46. </span>
  47. </li>
  48. {% endif %}
  49. {% if attribute(tags, 'contact:phone') %}
  50. <li class='hasSymbol'>
  51. <i class="fa fa-phone" aria-hidden="true"></i>
  52. <span class='key'>{{ keyTrans('phone') }}:</span>
  53. <span class='value'>
  54. <a target='_blank' href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
  55. </span>
  56. </li>
  57. {% endif %}
  58. {% if attribute(tags, 'contact:email') %}
  59. <li class='hasSymbol'>
  60. <i class="fa fa-envelope" aria-hidden="true"></i>
  61. <span class='key'>{{ keyTrans('email') }}:</span>
  62. <span class='value'>
  63. <a target='_blank' href='mailto:{{ attribute(tags, 'contact:email') }}'>
  64. {{ attribute(tags, 'contact:email') }}
  65. </a>
  66. </span>
  67. </li>
  68. {% endif %}
  69. {% if attribute(tags, 'email') %}
  70. <li class='hasSymbol'>
  71. <i class="fa fa-envelope" aria-hidden="true"></i>
  72. <span class='key'>{{ keyTrans('email') }}:</span>
  73. <span class='value'>
  74. <a target='_blank' href='mailto:{{ attribute(tags, 'email') }}'>
  75. {{ attribute(tags, 'email') }}
  76. </a>
  77. </span>
  78. </li>
  79. {% endif %}
  80. {% if tags.opening_hours %}
  81. <li class='hasSymbol'>
  82. <i class="fa fa-clock-o" aria-hidden="true"></i>
  83. <span class='key'>{{ keyTrans('opening_hours') }}:</span>
  84. <span class='value'>
  85. {{ tags.opening_hours }}
  86. </span>
  87. </li>
  88. {% endif %}
  89. {% set payment = tagsPrefix(tags, 'payment:') %}
  90. {% if payment %}
  91. <li class='hasSymbol'>
  92. <i class="fa fa-money" aria-hidden="true"></i>
  93. <span class='key'>{{ keyTrans('payment') }}:</span>
  94. <span class='value'>
  95. {% set i = 0 %}
  96. {% for k, tag in payment %}
  97. {%- if i > 0 %},{% endif %}
  98. <span title="{{ tagTrans(k, tags[tag]) }}">{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s>{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}</span>
  99. {% set i = i + 1 -%}
  100. {% endfor %}
  101. </span>
  102. </li>
  103. {% endif %}
  104. {% if attribute(tags, 'wheelchair') %}
  105. <li class='hasSymbol'>
  106. <i class="fa fa-info-circle" aria-hidden="true"></i>
  107. <span class='key'>{{ trans('facilities') }}:</span>
  108. <span class='value'>
  109. <ul>
  110. {% if attribute(tags, 'wheelchair') %}
  111. <li class='hasSymbol'>
  112. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true"></i>
  113. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  114. <span class='value'>
  115. {{ tagTrans('wheelchair', tags.wheelchair) }}
  116. <ul>
  117. {% if attribute(tags, 'toilets:wheelchair') %}
  118. <li class='hasSymbol'>
  119. <span class='{{ attribute(tags, 'toilets:wheelchair') }} symbol'>&#128701;</span>
  120. <span class='key'>{{ keyTrans('toilets:wheelchair') }}:</span>
  121. <span class='value'>{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}</span>
  122. </li>
  123. {% endif %}
  124. </ul>
  125. </span>
  126. </li>
  127. {% endif %}
  128. </ul>
  129. </span>
  130. </li>
  131. {% endif %}
  132. {% if tags.start_date %}
  133. <li class='hasSymbol'>
  134. <i class="fa fa-clock-o" aria-hidden="true"></i>
  135. <span class='key'>{{ keyTrans('start_date') }}:</span>
  136. <span class='value'>{{ tags.start_date|osmFormatDate }}</span>
  137. </li>
  138. {% endif %}
  139. {% if tags.opening_date %}
  140. <li class='hasSymbol'>
  141. <i class="fa fa-clock-o" aria-hidden="true"></i>
  142. <span class='key'>{{ keyTrans('opening_date') }}:</span>
  143. <span class='value'>{{ tags.opening_date|osmFormatDate }}</span>
  144. </li>
  145. {% endif %}
  146. </ul>