diff --git a/app/assets/javascripts/discourse/controllers/user.js.es6 b/app/assets/javascripts/discourse/controllers/user.js.es6 index 24b26957da3..618e6396099 100644 --- a/app/assets/javascripts/discourse/controllers/user.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user.js.es6 @@ -71,6 +71,7 @@ export default Ember.Controller.extend(CanCheckEmails, { if (!Ember.isEmpty(siteUserFields)) { const userFields = this.get('model.user_fields'); return siteUserFields.filterProperty('show_on_profile', true).sortBy('position').map(field => { + field.dasherized_name = field.get('name').dasherize(); const value = userFields ? userFields[field.get('id').toString()] : null; return Ember.isEmpty(value) ? null : Ember.Object.create({ value, field }); }).compact(); diff --git a/app/assets/javascripts/discourse/templates/user/user.hbs b/app/assets/javascripts/discourse/templates/user/user.hbs index 9c3b28877fb..76df13bf95d 100644 --- a/app/assets/javascripts/discourse/templates/user/user.hbs +++ b/app/assets/javascripts/discourse/templates/user/user.hbs @@ -90,12 +90,14 @@
{{#each uf in publicUserFields}} {{#if uf.value}} -
+
{{uf.field.name}}: {{uf.value}}
{{/if}} {{/each}} + + {{plugin-outlet "user-profile-public-fields"}}
{{/if}}