2017-07-21 09:01:34 +00:00
|
|
|
component ProfileFollowers(followers []*arn.User, viewUser *arn.User, user *arn.User, uri string)
|
|
|
|
ProfileHeader(viewUser, user, uri)
|
|
|
|
|
|
|
|
if len(followers) > 0
|
2017-07-21 09:25:53 +00:00
|
|
|
UserGrid(followers)
|
|
|
|
else
|
|
|
|
p.no-data.mountable= viewUser.Nick + " doesn't have a follower yet."
|
|
|
|
|
|
|
|
component UserGrid(users []*arn.User)
|
|
|
|
.user-avatars
|
|
|
|
each user in users
|
|
|
|
if user.Nick != ""
|
|
|
|
if user.IsActive()
|
2017-07-21 09:01:34 +00:00
|
|
|
.mountable
|
|
|
|
Avatar(user)
|
2017-07-21 09:25:53 +00:00
|
|
|
else
|
|
|
|
.mountable
|
|
|
|
.inactive-user
|
|
|
|
Avatar(user)
|