65 lines
1.9 KiB
Plaintext
Raw Normal View History

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
UsersTabs(url)
2017-07-19 11:08:12 +00:00
2019-08-27 00:39:35 +00:00
.user-cards.mountable
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
2018-11-06 11:20:19 +00:00
component UsersByCountry(users []*arn.User, countryName string)
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-27 00:39:35 +00:00
.user-cards.mountable
2018-11-06 11:20:19 +00:00
each user in users
2019-08-27 00:39:35 +00:00
UserCard(user, "1 follower")
2018-11-06 11:20:19 +00:00
component ProUsers(users []*arn.User, url string)
h1.page-title Supporters
UsersTabs(url)
.pro-avatars
each user in users
a.profile-image-container.mountable(href=user.Link())
ProfileImage(user)
.image-title
.image-title-text= user.Nick
.footer.mountable
p We are thankful to everyone supporting the site!
2017-11-30 15:40:52 +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
.user-avatars
each user in group.Users
.mountable
Avatar(user)
2017-11-30 16:20:15 +00:00
component StaffRecruitment
.footer.mountable
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?
component UsersTabs(url string)
2017-10-07 08:52:59 +00: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 21:01:34 +00: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")