Added user lists by country

This commit is contained in:
2018-11-06 20:20:19 +09:00
parent 57297c7de2
commit de8fec3114
5 changed files with 30 additions and 18 deletions

View File

@ -6,6 +6,16 @@ component Users(users []*arn.User, url string)
each user in users
Avatar(user)
component UsersByCountry(users []*arn.User, countryName string)
if len(users) == 0
p.no-data.mountable= "Seems like there are no users in " + stringutils.Capitalize(countryName)
else
h1= "Users in " + users[0].Location.CountryName
.user-avatars.mountable
each user in users
Avatar(user)
component ProUsers(users []*arn.User, url string)
h1.page-title Supporters
UsersTabs(url)