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.

147 lines
4.2 KiB

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('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.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 href='{{ tags.website }}'>{{ 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 href='{{ attribute(tags, 'contact:website') }}'>{{ 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 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 href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
  48. </span>
  49. </li>
  50. {% endif %}
  51. {% if tags.phone %}
  52. <li class='hasSymbol'>
  53. <i class="fa fa-phone" aria-hidden="true"></i>
  54. <span class='key'>{{ keyTrans('phone') }}:</span>
  55. <span class='value'>
  56. <a href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
  57. </span>
  58. </li>
  59. {% endif %}
  60. {% if attribute(tags, 'contact:email') %}
  61. <li class='hasSymbol'>
  62. <i class="fa fa-envelope" aria-hidden="true"></i>
  63. <span class='key'>{{ keyTrans('email') }}:</span>
  64. <span class='value'>
  65. <a href='mailto:{{ attribute(tags, 'contact:email') }}'>
  66. {{ attribute(tags, 'contact:email') }}
  67. </a>
  68. </span>
  69. </li>
  70. {% endif %}
  71. {% if attribute(tags, 'email') %}
  72. <li class='hasSymbol'>
  73. <i class="fa fa-envelope" aria-hidden="true"></i>
  74. <span class='key'>{{ keyTrans('email') }}:</span>
  75. <span class='value'>
  76. <a href='mailto:{{ attribute(tags, 'email') }}'>
  77. {{ attribute(tags, 'email') }}
  78. </a>
  79. </span>
  80. </li>
  81. {% endif %}
  82. {% if tags.opening_hours %}
  83. {% set oh_state = openingHoursState(tags.opening_hours) %}
  84. {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}
  85. {% set oh_css = oh_css[oh_state] %}
  86. <li class='hasSymbol'>
  87. <i class="fa fa-clock-o {{ oh_css }}" aria-hidden="true"></i>
  88. <span class='key'>{{ keyTrans('opening_hours') }}:</span>
  89. <span class='value'>
  90. {{ trans(oh_state) }}<br />
  91. {{ tags.opening_hours }}
  92. </span>
  93. </li>
  94. {% endif %}
  95. {% set payment = tagsPrefix(tags, 'payment:') %}
  96. {% if payment %}
  97. <li class='hasSymbol'>
  98. <i class="fa fa-money" aria-hidden="true"></i>
  99. <span class='key'>{{ keyTrans('payment') }}:</span>
  100. <span class='value'>
  101. {% for k, tag in payment %}
  102. {% if tags[tag] == 'no' %}<s>{{ k }}</s> {% else %}{{ k }} {% endif %}
  103. {% endfor %}
  104. </span>
  105. </li>
  106. {% endif %}
  107. {% if attribute(tags, 'wheelchair') %}
  108. <li class='hasSymbol'>
  109. <i class="fa fa-info-circle" aria-hidden="true"></i>
  110. <span class='key'>{{ trans('facilities') }}:</span>
  111. <span class='value'>
  112. <ul>
  113. {% if attribute(tags, 'wheelchair') %}
  114. <li class='hasSymbol'>
  115. <i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true"></i>
  116. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  117. <span class='value'>
  118. {{ tagTrans('wheelchair', tags.wheelchair) }}
  119. <ul>
  120. {% if attribute(tags, 'toilets:wheelchair') %}
  121. <li class='hasSymbol'>
  122. <span class='{{ attribute(tags, 'toilets:wheelchair') }} symbol'>&#128701;</span>
  123. <span class='key'>{{ keyTrans('toilets:wheelchair') }}:</span>
  124. <span class='value'>{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}</span>
  125. </li>
  126. {% endif %}
  127. </ul>
  128. </span>
  129. </li>
  130. {% endif %}
  131. </ul>
  132. </span>
  133. </li>
  134. {% endif %}
  135. </ul>