notify.moe/pages/support/support.go
2019-11-17 16:59:34 +09:00

20 lines
375 B
Go

package support
import (
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components"
)
// Get support page.
func Get(ctx aero.Context) error {
user := arn.GetUserFromContext(ctx)
profileLink := "/"
if user != nil {
profileLink = "/+" + user.Nick
}
return ctx.HTML(components.Support(profileLink, user))
}