From 15d8ad30314de3e829c6ce1318ba6e92cb42ced5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 27 Aug 2018 22:18:41 +0200 Subject: [PATCH] Separate payment options by ',' --- detailsBody.html | 5 ++++- popupBody.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/detailsBody.html b/detailsBody.html index 17c97065..39ffac33 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -93,8 +93,11 @@ {{ keyTrans('payment') }}: + {% set i = 0 %} {% for k, tag in payment %} - {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %} + {%- if i > 0 %},{% endif %} + {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%} + {% set i = i + 1 -%} {% endfor %} diff --git a/popupBody.html b/popupBody.html index 46533572..b5089522 100644 --- a/popupBody.html +++ b/popupBody.html @@ -91,8 +91,11 @@ {{ keyTrans('payment') }}: + {% set i = 0 %} {% for k, tag in payment %} - {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %} + {%- if i > 0 %},{% endif %} + {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%} + {% set i = i + 1 -%} {% endfor %}