Browse Source

Separate payment options by ','

pedestrian
parent
commit
881c988749
  1. 5
      detailsBody.html
  2. 5
      popupBody.html

5
detailsBody.html

@ -93,8 +93,11 @@
<i class="fa fa-money" aria-hidden="true"></i> <i class="fa fa-money" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('payment') }}:</span> <span class='key'>{{ keyTrans('payment') }}:</span>
<span class='value'> <span class='value'>
{% set i = 0 %}
{% for k, tag in payment %} {% for k, tag in payment %}
{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s> {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
{%- if i > 0 %},{% endif %}
{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s>{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
{% set i = i + 1 -%}
{% endfor %} {% endfor %}
</span> </span>
</li> </li>

5
popupBody.html

@ -91,8 +91,11 @@
<i class="fa fa-money" aria-hidden="true"></i> <i class="fa fa-money" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('payment') }}:</span> <span class='key'>{{ keyTrans('payment') }}:</span>
<span class='value'> <span class='value'>
{% set i = 0 %}
{% for k, tag in payment %} {% for k, tag in payment %}
{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s> {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
{%- if i > 0 %},{% endif %}
{% if tags[tag] == 'no' %}<s>{{ keyTrans(tag, { default: k }) }}</s>{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
{% set i = i + 1 -%}
{% endfor %} {% endfor %}
</span> </span>
</li> </li>

Loading…
Cancel
Save