Added basic quote display

This commit is contained in:
Scott
2017-12-03 22:33:24 +01:00
parent d4d7294f4e
commit f9c6711e8e
5 changed files with 93 additions and 0 deletions

16
pages/quotes/quotes.go Normal file
View File

@ -0,0 +1,16 @@
package quotes
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
// Get renders the quotes page.
func Get(ctx *aero.Context) string {
user := utils.GetUser(ctx)
quotes := arn.AllQuotes()
return ctx.HTML(components.Quotes(quotes, user))
}