Show friends on anime

This commit is contained in:
2017-07-21 11:25:53 +02:00
parent c0e324cefd
commit 22fe164f34
7 changed files with 47 additions and 13 deletions

View File

@ -2,10 +2,18 @@ component ProfileFollowers(followers []*arn.User, viewUser *arn.User, user *arn.
ProfileHeader(viewUser, user, uri)
if len(followers) > 0
.user-avatars
each user in followers
if user.Nick != ""
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()
.mountable
Avatar(user)
else
p.no-data.mountable= viewUser.Nick + " doesn't have a follower yet."
else
.mountable
.inactive-user
Avatar(user)