From 5c52c8c89c8e201c0ea376a4519b63ed322c21aa Mon Sep 17 00:00:00 2001 From: nsyed22 Date: Thu, 5 Dec 2024 16:12:47 -0500 Subject: [PATCH 1/2] add parenthesis around ccs --- templates/account/user_pref_metadata.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/account/user_pref_metadata.html b/templates/account/user_pref_metadata.html index ddacc36f6..cbb1e098b 100644 --- a/templates/account/user_pref_metadata.html +++ b/templates/account/user_pref_metadata.html @@ -6,7 +6,9 @@

Language(s): {{form.data.languages|join(', ') }}

{% endif %} {% if form.data.locations %} -

Location(s): {{form.data.locations|join(', ') }}

+

Location(s): + {% for location in form.data.locations %} {{ '(' ~ location ~ ')' if location|length == 2 else location }}{% if not loop.last %}, {% endif %} {% endfor %} +

{% endif %} {% if form.data.work_hours_from %}

Available: {{form.data.work_hours_from}} - {{form.data.work_hours_to}} {{form.data.timezone}}

From 3267f4763366cf704ca8e0ddb2179b2833ee23aa Mon Sep 17 00:00:00 2001 From: nsyed22 Date: Fri, 6 Dec 2024 12:28:30 -0500 Subject: [PATCH 2/2] no comma before cc --- templates/account/user_pref_metadata.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/account/user_pref_metadata.html b/templates/account/user_pref_metadata.html index cbb1e098b..a4e6641b2 100644 --- a/templates/account/user_pref_metadata.html +++ b/templates/account/user_pref_metadata.html @@ -7,7 +7,7 @@ {% endif %} {% if form.data.locations %}

Location(s): - {% for location in form.data.locations %} {{ '(' ~ location ~ ')' if location|length == 2 else location }}{% if not loop.last %}, {% endif %} {% endfor %} + {% for location in form.data.locations %} {{ '(' ~ location ~ ')' if location|length == 2 else location }}{% if not loop.last and location|length == 2 %}, {% endif %} {% endfor %}

{% endif %} {% if form.data.work_hours_from %}