Started working on user map
This commit is contained in:
11
pages/users/map.go
Normal file
11
pages/users/map.go
Normal file
@ -0,0 +1,11 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Map shows a map of all users.
|
||||
func Map(ctx *aero.Context) string {
|
||||
return ctx.HTML(components.UserMap(ctx.URI()))
|
||||
}
|
8
pages/users/map.pixy
Normal file
8
pages/users/map.pixy
Normal file
@ -0,0 +1,8 @@
|
||||
component UserMap(url string)
|
||||
UsersTabs(url)
|
||||
h1 Map
|
||||
|
||||
.buttons
|
||||
button.action(data-action="showUserMap", data-trigger="click") Show
|
||||
|
||||
#user-map
|
3
pages/users/map.scarlet
Normal file
3
pages/users/map.scarlet
Normal file
@ -0,0 +1,3 @@
|
||||
// #user-map
|
||||
// width 100%
|
||||
// height 600px
|
@ -47,6 +47,7 @@ component UsersTabs(url string)
|
||||
Tab("Editors", "pencil", "/users/editors")
|
||||
Tab("Supporters", "heart", "/users/pro")
|
||||
Tab("Staff", "user-secret", "/users/staff")
|
||||
//- Tab("Map", "map", "/users/map")
|
||||
|
||||
if strings.Contains(url, "/users/games")
|
||||
.tabs
|
||||
|
Reference in New Issue
Block a user