61 lines
1.9 KiB
Plaintext
Raw Normal View History

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