New editor score system and new user lists

This commit is contained in:
2018-03-10 16:42:39 +01:00
parent 4d5dd97da4
commit 9958364b92
10 changed files with 133 additions and 57 deletions

View File

@ -1,17 +1,29 @@
component Users(users []*arn.User)
component Users(users []*arn.User, url string)
h1.page-title Users
UsersTabs
UsersTabs(url)
.user-avatars
each user in users
.mountable
Avatar(user)
component UserLists(groups []*utils.UserList)
h1.page-title Users
component ProUsers(users []*arn.User, url string)
h1.page-title Supporters
UsersTabs(url)
UsersTabs
.pro-avatars
each user in users
a.profile-image-container.mountable.ajax(href=user.Link())
ProfileImage(user)
.anime-grid-title
.anime-grid-title-text= user.Nick
.footer.mountable
p We are thankful to everyone supporting the site!
component UserLists(groups []*utils.UserList, url string)
h1.page-title Users
UsersTabs(url)
each group in groups
h3.user-list-name.mountable= group.Name
@ -28,10 +40,15 @@ component StaffRecruitment
br
a(href="https://discord.gg/0kimAmMCeXGXuzNF", target="_blank", rel="noopener") Interested in editing data?
component UsersTabs
component UsersTabs(url string)
.tabs
Tab("Active", "users", "/users")
//- Tab("No Avatar", "users", "/users/noavatar")
Tab("Osu", "gamepad", "/users/osu")
Tab("Overwatch", "overwatch", "/users/overwatch")
Tab("Staff", "user-secret", "/users/staff")
Tab("Games", "gamepad", "/users/games/osu")
Tab("Editors", "pencil", "/users/editors")
Tab("Supporters", "heart", "/users/pro")
Tab("Staff", "user-secret", "/users/staff")
if strings.Contains(url, "/users/games")
.tabs
Tab("Osu", "gamepad", "/users/games/osu")
Tab("Overwatch", "overwatch", "/users/games/overwatch")