|
30 | 30 | {% set profile = user.profile | default({}) %} |
31 | 31 | {% set tasks = user.tasks | default({}) %} |
32 | 32 | {% set startDate = ((profile.startMonth or '') + ' ' + (profile.startYear or '')) | trim %} |
| 33 | + {% set shouldShowRegion = profile.workplace == 'home' or profile.workplace == 'not-applicable' %} |
33 | 34 | {% set selectedInterests = profile.interests | default([]) %} |
34 | 35 | {% if selectedInterests.length %} |
35 | 36 | {% set interestsSummary %} |
|
85 | 86 | key: { text: "Place of work" }, |
86 | 87 | value: { text: profile.workplaceLabel or profile.placeSearch or 'Not provided' }, |
87 | 88 | actions: { items: [ { href: "/learner-profile/place-of-work", text: "Change", visuallyHiddenText: "place of work" } ] } |
88 | | - }, |
89 | | - { |
90 | | - key: { text: "Region" }, |
91 | | - value: { text: profile.region or 'Not provided' }, |
92 | | - actions: { items: [ { href: "/learner-profile/region", text: "Change", visuallyHiddenText: "region" } ] } |
93 | | - }, |
| 89 | + } |
| 90 | + ]) %} |
| 91 | + {% if shouldShowRegion %} |
| 92 | + {% set rows = rows.concat([ |
| 93 | + { |
| 94 | + key: { text: "Region" }, |
| 95 | + value: { text: profile.region or 'Not provided' }, |
| 96 | + actions: { items: [ { href: "/learner-profile/region", text: "Change", visuallyHiddenText: "region" } ] } |
| 97 | + } |
| 98 | + ]) %} |
| 99 | + {% endif %} |
| 100 | + {% set rows = rows.concat([ |
94 | 101 | { |
95 | 102 | key: { text: "Your interests" }, |
96 | 103 | value: interestsValue, |
|
0 commit comments