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.

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