Show user region in profile

pull/16349/head
Moisés Calzado 3 years ago
parent 721a1254d2
commit 99cf17a284

@ -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();

@ -31,6 +31,9 @@
<% } else if (role === 'builder') { %>
<span class="UserRoleIndicator Builder CDB-Text CDB-Size-small is-semibold u-altTextColor"><%= _t('profile.views.form.builder') %></span>
<p class="CDB-Text CDB-Size-small u-altTextColor u-tSpace"><%= _t('profile.views.form.write_access') %></p>
<% if (region) { %>
<p class="CDB-Text CDB-Size-small u-altTextColor u-tSpace"><i class="CDB-IconFont CDB-IconFont-globe CDB-IconFont--withLabel"></i> <%= region %> </p>
<% } %>
<% } else { %>
<!-- for custom role names (via gears) -->
<span class="UserRoleIndicator Builder CDB-Text CDB-Size-small is-semibold u-altTextColor"><%= role %></span>

Loading…
Cancel
Save