File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
templates/components/forms/group Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ export default class ViewRoute extends Route.extend(AuthenticatedRouteMixin) {
3131 sort : 'name'
3232 } ) ,
3333 group : this . store . findRecord ( 'group' , params . group_id , {
34- include : 'events,follower,user'
34+ include : 'events,follower,followers, user'
3535 } )
3636 } ) ;
3737 }
3838}
39+
Original file line number Diff line number Diff line change 8080 <i class =" users icon" ></i >
8181 ({{ @group.followerCount }} {{ t ' followers' }} )
8282 </div >
83+ {{ #if @group.followers }}
84+ <div class =" d-flex content-center items-center wrap mt-4" >
85+ {{ #each @group.followers as |follower index |}}
86+ {{ #if (lt index 6 )}}
87+ <a href ={{ if follower.user.isProfilePublic (href-to ' public.sessions.user.view' follower.user.id ) ' #' }}
88+ class =" pointer"
89+ data-tooltip ={{ follower.user.resolvedName }} >
90+ <img
91+ class =" ui tiny avatar image mb-2"
92+ src ={{ or follower.user.thumbnailImageUrl follower.user.avatarUrl ' /images/placeholders/avatar.png' }} />
93+ </a >
94+ {{ else }}
95+ {{ #if (eq index 6 )}}
96+ <span >{{ t ' and' }} {{ sub @group.followerCount index }} {{ t ' others' }} </span >
97+ {{ /if }}
98+ {{ /if }}
99+ {{ /each }}
100+ </div >
101+ {{ /if }}
83102 </div >
84103 </div >
85104 <Modals::EventShareModal @isOpen ={{ this.isShareModalOpen }} @event ={{ this.eventToShare }} />
You can’t perform that action at this time.
0 commit comments