Browse Source

More contact information

heritage
parent
commit
85a38870b1
  1. 62
      commonBody.html
  2. 34
      detailsBody.html

62
commonBody.html

@ -13,6 +13,26 @@
</li>
{% endif %}
{% if tags.website %}
<li class='hasSymbol'>
<i class="fa fa-globe" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('website') }}:</span>
<span class='value'>
<a href='{{ tags.website }}'>{{ tags.website }}</a>
</span>
</li>
{% endif %}
{% if attribute(tags, 'contact:website') %}
<li class='hasSymbol'>
<i class="fa fa-globe" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('website') }}:</span>
<span class='value'>
<a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
</span>
</li>
{% endif %}
{% if tags.phone %}
<li class='hasSymbol'>
<i class="fa fa-phone" aria-hidden="true"></i>
@ -23,6 +43,48 @@
</li>
{% endif %}
{% if attribute(tags, 'contact:phone') %}
<li class='hasSymbol'>
<i class="fa fa-phone" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('phone') }}:</span>
<span class='value'>
<a href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
</span>
</li>
{% endif %}
{% if attribute(tags, 'contact:email') or tags.email %}
<li class='hasSymbol'>
<i class="fa fa-user-circle" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('contact') }}:</span>
<span class='value'>
{% if attribute(tags, 'contact:email') %}
<a href='mailto:{{ attribute(tags, 'contact:email') }}'>
<i class="fa fa-envelope" aria-hidden="true"></i>
</a>
{% endif %}
{% if attribute(tags, 'email') %}
<a href='mailto:{{ attribute(tags, 'email') }}'>
<i class="fa fa-envelope" aria-hidden="true"></i>
</a>
{% endif %}
</span>
</li>
{% endif %}
{% if attribute(tags, 'contact:website') %}
<li class='hasSymbol'>
<i class="fa fa-globe" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('website') }}:</span>
<span class='value'>
<a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
</span>
</li>
{% endif %}
{% if tags.opening_hours %}
{% set oh_state = openingHoursState(tags.opening_hours) %}
{% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}

34
detailsBody.html

@ -23,6 +23,40 @@
</li>
{% endif %}
{% if attribute(tags, 'contact:phone') %}
<li class='hasSymbol'>
<i class="fa fa-phone" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('phone') }}:</span>
<span class='value'>
<a href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
</span>
</li>
{% endif %}
{% if attribute(tags, 'contact:email') %}
<li class='hasSymbol'>
<i class="fa fa-envelope" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('email') }}:</span>
<span class='value'>
<a href='mailto:{{ attribute(tags, 'contact:email') }}'>
{{ attribute(tags, 'contact:email') }}
</a>
</span>
</li>
{% endif %}
{% if attribute(tags, 'email') %}
<li class='hasSymbol'>
<i class="fa fa-envelope" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('email') }}:</span>
<span class='value'>
<a href='mailto:{{ attribute(tags, 'email') }}'>
{{ attribute(tags, 'email') }}
</a>
</span>
</li>
{% endif %}
{% if tags.opening_hours %}
{% set oh_state = openingHoursState(tags.opening_hours) %}
{% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}

Loading…
Cancel
Save