Browse Source

Popup/Details: include description, start_date, opening_date, (material)

pedestrian
parent
commit
8fcc67e13f
  1. 32
      detailsBody.html
  2. 24
      popupBody.html

32
detailsBody.html

@ -1,4 +1,12 @@
<ul> <ul>
{% set hasDescription = tagsPrefix(tags, 'description:') %}
{% if tags.description or hasDescription %}
<li class='hasSymbol'>
<i class="fa fa-info" aria-hidden="true"></i>
<span class='value'>{{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0])) }}</span>
</li>
{% endif %}
{% set address = tagsPrefix(tags, 'addr:') %} {% set address = tagsPrefix(tags, 'addr:') %}
{% if address %} {% if address %}
<li class='hasSymbol'> <li class='hasSymbol'>
@ -133,4 +141,28 @@
</li> </li>
{% endif %} {% endif %}
{% if tags.start_date %}
<li class='hasSymbol'>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('start_date') }}:</span>
<span class='value'>{{ enumerate(tags.start_date) }}</span>
</li>
{% endif %}
{% if tags.opening_date %}
<li class='hasSymbol'>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('opening_date') }}:</span>
<span class='value'>{{ enumerate(tags.opening_date) }}</span>
</li>
{% endif %}
{% if tags.material %}
<li class='hasSymbol'>
<img data-src="maki:warehouse">
<span class='key'>{{ keyTrans('material') }}:</span>
<span class='value'>{{ tagTransList('material', tags.material) }}</span>
</li>
{% endif %}
</ul> </ul>

24
popupBody.html

@ -1,4 +1,12 @@
<ul> <ul>
{% set hasDescription = tagsPrefix(tags, 'description:') %}
{% if tags.description or hasDescription %}
<li class='hasSymbol'>
<i class="fa fa-info" aria-hidden="true"></i>
<span class='value'>{{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0])) }}</span>
</li>
{% endif %}
{% set address = tagsPrefix(tags, 'addr:') %} {% set address = tagsPrefix(tags, 'addr:') %}
{% if address %} {% if address %}
<li class='hasSymbol'> <li class='hasSymbol'>
@ -139,4 +147,20 @@
<span class='value'><a href="https://{{ wikipedia[1] }}.wikipedia.org/wiki/{{ wikipedia[2]|replace({ ' ': '_' }) }}">{{ wikipedia[2] }}</a></span> <span class='value'><a href="https://{{ wikipedia[1] }}.wikipedia.org/wiki/{{ wikipedia[2]|replace({ ' ': '_' }) }}">{{ wikipedia[2] }}</a></span>
{% endif %} {% endif %}
{% if tags.start_date %}
<li class='hasSymbol'>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('start_date') }}:</span>
<span class='value'>{{ enumerate(tags.start_date) }}</span>
</li>
{% endif %}
{% if tags.opening_date %}
<li class='hasSymbol'>
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('opening_date') }}:</span>
<span class='value'>{{ enumerate(tags.opening_date) }}</span>
</li>
{% endif %}
</ul> </ul>
Loading…
Cancel
Save