From 99cf17a28434e57ac601c0eba9e48a79d2b71f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Calzado?= Date: Fri, 17 Sep 2021 16:53:26 +0200 Subject: [PATCH] Show user region in profile --- .../views/profile/profile-form/profile-form-view.js | 5 +++-- .../dashboard/views/profile/profile-form/profile-form.tpl | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js index 83e9436035..5c184d9046 100644 --- a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js +++ b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form-view.js @@ -86,7 +86,7 @@ module.exports = CoreView.extend({ description: this._userModel.get('description'), twitter_username: this._userModel.get('twitter_username'), disqus_shortname: this._userModel.get('disqus_shortname'), - available_for_hire: this._userModel.get('available_for_hire') + available_for_hire: this._userModel.get('available_for_hire'), }, isViewer: this._userModel.isViewer(), isInsideOrg: this._userModel.isInsideOrg(), @@ -97,7 +97,8 @@ module.exports = CoreView.extend({ canChangeEmail: this._userModel.get('can_change_email'), industries: INDUSTRIES, company_employees_ranges: COMPANY_EMPLOYEES_RANGES, - use_cases: USE_CASES + use_cases: USE_CASES, + region: this._configModel.get('region') })); this._initViews(); diff --git a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form.tpl b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form.tpl index aaeefb552f..b1be2f4583 100644 --- a/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form.tpl +++ b/lib/assets/javascripts/dashboard/views/profile/profile-form/profile-form.tpl @@ -31,6 +31,9 @@ <% } else if (role === 'builder') { %> <%= _t('profile.views.form.builder') %>

<%= _t('profile.views.form.write_access') %>

+ <% if (region) { %> +

<%= region %>

+ <% } %> <% } else { %> <%= role %>