From e29bcc022b9cbef8a40907aa0a0834cac298d814 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Thu, 28 Dec 2023 15:42:55 -0800 Subject: [PATCH] Use backticks around generated content on the invoice page (#2020) --- .../html_client/mod_invoice_invoice.html.twig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/Invoice/html_client/mod_invoice_invoice.html.twig b/src/modules/Invoice/html_client/mod_invoice_invoice.html.twig index da090efea..76c2e6dbd 100644 --- a/src/modules/Invoice/html_client/mod_invoice_invoice.html.twig +++ b/src/modules/Invoice/html_client/mod_invoice_invoice.html.twig @@ -35,7 +35,7 @@ {% endif %} @@ -298,27 +298,27 @@ {% if settings.prompt_subscription %} if(supportsSubscription && invoiceSubscribable){ - document.getElementById('bodyText').textContent = "{{ 'The invoice you are paying and your chosen payment gateway both support subscription payments. What type of payment would you like to continue with?'|trans }}"; + document.getElementById('bodyText').textContent = `{{ 'The invoice you are paying and your chosen payment gateway both support subscription payments. What type of payment would you like to continue with?'|trans }}`; document.getElementById('subscription').hidden = false; } else if (!invoiceSubscribable) { - document.getElementById('bodyText').textContent = "{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}"; + document.getElementById('bodyText').textContent = `{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}`; document.getElementById('subscription').hidden = true; } else { if(canAnyGatewayDoSubs){ - document.getElementById('bodyText').textContent = "{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it. Optionally, you may choose a different payment gateway if you wish to pay using a subscription.'|trans }}"; + document.getElementById('bodyText').textContent = `{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it. Optionally, you may choose a different payment gateway if you wish to pay using a subscription.'|trans }}`; } else { - document.getElementById('bodyText').textContent = "{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}"; + document.getElementById('bodyText').textContent = `{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}`; } document.getElementById('subscription').hidden = true; } {% else %} - document.getElementById('bodyText').textContent = "{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}"; + document.getElementById('bodyText').textContent = `{{ 'If you are happy with the selected payment gateway, please use the button below to continue with it.'|trans }}`; document.getElementById('subscription').hidden = true; document.getElementById('single').hidden = true; document.getElementById('pay-nondescript').hidden = false; {% endif %} - document.getElementById('paymentPromptLabel').textContent = "{{ 'Pay with'|trans }}".concat(" ", title); + document.getElementById('paymentPromptLabel').textContent = `{{ 'Pay with'|trans }}`.concat(` `, title); document.getElementById('subscription').href = paymentLink; document.getElementById('pay-nondescript').href = paymentLink; paymentLink.searchParams.append('allow_subscription', 0);