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.

117 lines
3.4 KiB

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