Disable old profile pages

This commit is contained in:
2018-11-24 15:57:52 +09:00
parent 5668c66b31
commit cfb481df52
18 changed files with 280 additions and 283 deletions

View File

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