diff --git a/app/assets/javascripts/discourse/components/groups-list.js.es6 b/app/assets/javascripts/discourse/components/groups-list.js.es6 deleted file mode 100644 index 09ac3c3dbad..00000000000 --- a/app/assets/javascripts/discourse/components/groups-list.js.es6 +++ /dev/null @@ -1,12 +0,0 @@ -/** - Displays a list of groups that a user belongs to. - - @class Discourse.GroupsListComponent - @extends Ember.Component - @namespace Discourse - @module Discourse -**/ -export default Em.Component.extend({ - classNames: ['groups'] -}); - diff --git a/app/assets/javascripts/discourse/templates/components/groups-list.hbs b/app/assets/javascripts/discourse/templates/components/groups-list.hbs deleted file mode 100644 index 95a012d1e19..00000000000 --- a/app/assets/javascripts/discourse/templates/components/groups-list.hbs +++ /dev/null @@ -1,6 +0,0 @@ -{{#if groups}} - {{i18n groups.title count=groups.length}}: - {{#each groups}} - {{#link-to 'group' this class="group-link"}}{{name}}{{/link-to}} - {{/each}} -{{/if}} diff --git a/app/assets/javascripts/discourse/templates/user/user.hbs b/app/assets/javascripts/discourse/templates/user/user.hbs index 062fa51f9f6..b9174f93b47 100644 --- a/app/assets/javascripts/discourse/templates/user/user.hbs +++ b/app/assets/javascripts/discourse/templates/user/user.hbs @@ -150,6 +150,14 @@ {{/if}} {{/if}} + {{#if custom_groups}} +
{{i18n groups.title count=custom_groups.length}}
+
+ {{#each custom_groups}} + {{#link-to 'group' this class="group-link"}}{{name}}{{/link-to}} + {{/each}} +
+ {{/if}} {{plugin-outlet "user-profile-secondary"}} diff --git a/app/assets/stylesheets/desktop/user.scss b/app/assets/stylesheets/desktop/user.scss index c06d52a22a1..3ab82cade16 100644 --- a/app/assets/stylesheets/desktop/user.scss +++ b/app/assets/stylesheets/desktop/user.scss @@ -217,6 +217,15 @@ color: $primary; } + dd.groups { + span:after { + content: ',' + } + span:last-of-type:after { + content:'' + } + } + dt { color: dark-light-diff($secondary, $primary, 50%, -40%); margin: 0;