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.

180 lines
5.5 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 attribute(tags, 'name:etymology') %}
  23. <li class='hasSymbol'>
  24. <i class="fa fa-book" aria-hidden="true"></i>
  25. <span class='key'>{{ keyTrans('name:etymology') }}:</span>
  26. <span class='value'>{{ enumerate(attribute(tags, "name:etymology")) }}</span>
  27. </li>
  28. {% endif %}
  29. {% if tags.website %}
  30. <li class='hasSymbol'>
  31. <i class="fa fa-globe" aria-hidden="true"></i>
  32. <span class='key'>{{ keyTrans('website') }}:</span>
  33. <span class='value'>
  34. <a target='_blank' href='{{ tags.website|websiteUrl }}'>{{ tags.website }}</a>
  35. </span>
  36. </li>
  37. {% endif %}
  38. {% if attribute(tags, 'contact:website') %}
  39. <li class='hasSymbol'>
  40. <i class="fa fa-globe" aria-hidden="true"></i>
  41. <span class='key'>{{ keyTrans('website') }}:</span>
  42. <span class='value'>
  43. <a target='_blank' href='{{ attribute(tags, 'contact:website')|websiteUrl }}'>{{ attribute(tags, 'contact:website') }}</a>
  44. </span>
  45. </li>
  46. {% endif %}
  47. {% if tags.phone %}
  48. <li class='hasSymbol'>
  49. <i class="fa fa-phone" aria-hidden="true"></i>
  50. <span class='key'>{{ keyTrans('phone') }}:</span>
  51. <span class='value'>
  52. <a target='_blank' href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
  53. </span>
  54. </li>
  55. {% endif %}
  56. {% if attribute(tags, 'contact:phone') %}
  57. <li class='hasSymbol'>
  58. <i class="fa fa-phone" aria-hidden="true"></i>
  59. <span class='key'>{{ keyTrans('phone') }}:</span>
  60. <span class='value'>
  61. <a target='_blank' href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
  62. </span>
  63. </li>
  64. {% endif %}
  65. {% if attribute(tags, 'contact:email') %}
  66. <li class='hasSymbol'>
  67. <i class="fa fa-envelope" aria-hidden="true"></i>
  68. <span class='key'>{{ keyTrans('email') }}:</span>
  69. <span class='value'>
  70. <a target='_blank' href='mailto:{{ attribute(tags, 'contact:email') }}'>
  71. {{ attribute(tags, 'contact:email') }}
  72. </a>
  73. </span>
  74. </li>
  75. {% endif %}
  76. {% if attribute(tags, 'email') %}
  77. <li class='hasSymbol'>
  78. <i class="fa fa-envelope" aria-hidden="true"></i>
  79. <span class='key'>{{ keyTrans('email') }}:</span>
  80. <span class='value'>
  81. <a target='_blank' href='mailto:{{ attribute(tags, 'email') }}'>
  82. {{ attribute(tags, 'email') }}
  83. </a>
  84. </span>
  85. </li>
  86. {% endif %}
  87. {% if tags.opening_hours %}
  88. <li class='hasSymbol'>
  89. <i class="fa fa-clock-o" aria-hidden="true"></i>
  90. <span class='key'>{{ keyTrans('opening_hours') }}:</span>
  91. <span class='value'>
  92. {{ tags.opening_hours }}
  93. </span>
  94. </li>
  95. {% endif %}
  96. {% set payment = tagsPrefix(tags, 'payment:') %}
  97. {% if payment %}
  98. <li class='hasSymbol'>
  99. <i class="fa fa-money" aria-hidden="true"></i>
  100. <span class='key'>{{ keyTrans('payment') }}:</span>
  101. <span class='value'>
  102. {% set i = 0 %}
  103. {% for k, tag in payment %}
  104. {%- if i > 0 %},{% endif %}
  105. <span title="{{ tagTrans(k, tags[tag]) }}">{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s>{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}</span>
  106. {% set i = i + 1 -%}
  107. {% endfor %}
  108. </span>
  109. </li>
  110. {% endif %}
  111. {% if attribute(tags, 'wheelchair') %}
  112. <li class='hasSymbol'>
  113. <i class="fa fa-info-circle" aria-hidden="true"></i>
  114. <span class='key'>{{ trans('facilities') }}:</span>
  115. <span class='value'>
  116. <ul>
  117. {% if attribute(tags, 'wheelchair') %}
  118. <li class='hasSymbol'>
  119. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true"></i>
  120. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  121. <span class='value'>
  122. {{ tagTrans('wheelchair', tags.wheelchair) }}
  123. <ul>
  124. {% if attribute(tags, 'toilets:wheelchair') %}
  125. <li class='hasSymbol'>
  126. <span class='{{ attribute(tags, 'toilets:wheelchair') }} symbol'>&#128701;</span>
  127. <span class='key'>{{ keyTrans('toilets:wheelchair') }}:</span>
  128. <span class='value'>{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}</span>
  129. </li>
  130. {% endif %}
  131. </ul>
  132. </span>
  133. </li>
  134. {% endif %}
  135. </ul>
  136. </span>
  137. </li>
  138. {% endif %}
  139. {% if tags.year_of_construction or tags.start_date or tags.opening_date or tags.end_date %}
  140. <li class='hasSymbol'>
  141. <i class="fa fa-clock-o" aria-hidden="true"></i>
  142. {% if tags.year_of_construction %}
  143. <span class='key'>{{ keyTrans('year_of_construction') }}:</span>
  144. <span class='value'>{{ tags.year_of_construction|osmFormatDate }}</span>
  145. <br/>
  146. {% endif %}
  147. {% if tags.start_date %}
  148. <span class='key'>{{ keyTrans('start_date') }}:</span>
  149. <span class='value'>{{ tags.start_date|osmFormatDate }}</span>
  150. <br/>
  151. {% endif %}
  152. {% if tags.opening_date %}
  153. <span class='key'>{{ keyTrans('opening_date') }}:</span>
  154. <span class='value'>{{ tags.opening_date|osmFormatDate }}</span>
  155. {% endif %}
  156. {% if tags.end_date %}
  157. <span class='key'>{{ keyTrans('end_date') }}:</span>
  158. <span class='value'>{{ tags.end_date|osmFormatDate }}</span>
  159. {% endif %}
  160. </li>
  161. {% endif %}
  162. </ul>