2019-08-27 00:39:35 +00:00
|
|
|
component Users(users []*arn.User, followerCount map[string]int, url string)
|
2017-07-06 20:23:32 +00:00
|
|
|
h1.page-title Users
|
2018-03-10 15:42:39 +00:00
|
|
|
UsersTabs(url)
|
2017-07-19 11:08:12 +00:00
|
|
|
|
2019-08-28 02:24:39 +00:00
|
|
|
.user-cards
|
2017-06-10 00:51:11 +00:00
|
|
|
each user in users
|
2019-08-27 00:39:35 +00:00
|
|
|
UserCard(user, stringutils.Plural(followerCount[user.ID], "follower"))
|
2017-10-07 08:52:59 +00:00
|
|
|
|
2019-08-27 15:46:28 +00:00
|
|
|
component UsersByCountry(users []*arn.User, followerCount map[string]int, countryName string)
|
2018-11-06 11:20:19 +00:00
|
|
|
if len(users) == 0
|
2018-11-21 09:12:29 +00:00
|
|
|
p.no-data.mountable= "Seems like there are no active users in " + stringutils.Capitalize(countryName)
|
2018-11-06 11:20:19 +00:00
|
|
|
else
|
|
|
|
h1= "Users in " + users[0].Location.CountryName
|
|
|
|
|
2019-08-28 02:24:39 +00:00
|
|
|
.user-cards
|
2018-11-06 11:20:19 +00:00
|
|
|
each user in users
|
2019-08-27 15:46:28 +00:00
|
|
|
UserCard(user, stringutils.Plural(followerCount[user.ID], "follower"))
|
2018-11-06 11:20:19 +00:00
|
|
|
|
2018-03-10 15:42:39 +00:00
|
|
|
component ProUsers(users []*arn.User, url string)
|
|
|
|
h1.page-title Supporters
|
|
|
|
UsersTabs(url)
|
|
|
|
|
2019-08-28 02:24:39 +00:00
|
|
|
.user-cards
|
2018-03-10 15:42:39 +00:00
|
|
|
each user in users
|
2019-08-28 02:24:39 +00:00
|
|
|
UserCard(user, "until " + user.ProExpires[:10])
|
2018-03-10 15:42:39 +00:00
|
|
|
|
2019-09-01 07:39:17 +00:00
|
|
|
footer.footer.mountable
|
2018-03-10 15:42:39 +00:00
|
|
|
p We are thankful to everyone supporting the site!
|
2017-11-30 15:40:52 +00:00
|
|
|
|
2018-03-10 15:42:39 +00:00
|
|
|
component UserLists(groups []*utils.UserList, url string)
|
|
|
|
h1.page-title Users
|
|
|
|
UsersTabs(url)
|
2017-11-30 15:40:52 +00:00
|
|
|
|
|
|
|
each group in groups
|
|
|
|
h3.user-list-name.mountable= group.Name
|
|
|
|
|
2019-08-28 02:24:39 +00:00
|
|
|
.user-cards
|
2017-11-30 15:40:52 +00:00
|
|
|
each user in group.Users
|
2019-08-28 02:24:39 +00:00
|
|
|
UserCard(user, stringutils.Capitalize(user.Role))
|
2017-11-30 15:40:52 +00:00
|
|
|
|
2017-11-30 16:20:15 +00:00
|
|
|
component StaffRecruitment
|
2019-09-01 07:39:17 +00:00
|
|
|
footer.footer.mountable
|
2017-11-30 16:20:15 +00:00
|
|
|
p
|
2018-04-10 10:54:48 +00:00
|
|
|
a(href="https://github.com/animenotifier/notify.moe#installation", target="_blank", rel="noopener") Interested in contributing code?
|
2017-11-30 16:20:15 +00:00
|
|
|
br
|
|
|
|
a(href="https://discord.gg/0kimAmMCeXGXuzNF", target="_blank", rel="noopener") Interested in editing data?
|
|
|
|
|
2018-03-10 15:42:39 +00:00
|
|
|
component UsersTabs(url string)
|
2017-10-07 08:52:59 +00:00
|
|
|
.tabs
|
|
|
|
Tab("Active", "users", "/users")
|
2018-03-10 15:42:39 +00:00
|
|
|
Tab("Games", "gamepad", "/users/games/osu")
|
|
|
|
Tab("Editors", "pencil", "/users/editors")
|
|
|
|
Tab("Supporters", "heart", "/users/pro")
|
|
|
|
Tab("Staff", "user-secret", "/users/staff")
|
2018-04-16 21:01:34 +00:00
|
|
|
//- Tab("Map", "map", "/users/map")
|
2018-03-10 15:42:39 +00:00
|
|
|
|
|
|
|
if strings.Contains(url, "/users/games")
|
|
|
|
.tabs
|
|
|
|
Tab("Osu", "gamepad", "/users/games/osu")
|
2018-10-30 20:24:12 +00:00
|
|
|
Tab("Overwatch", "overwatch", "/users/games/overwatch")
|
|
|
|
Tab("FFXIV", "gamepad", "/users/games/ffxiv")
|