You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
537 B
22 lines
537 B
package viewmodel
|
|
|
|
import (
|
|
"git.aiterp.net/AiteRP/aitestory/model"
|
|
"git.aiterp.net/gisle/wrouter/auth"
|
|
)
|
|
|
|
// PageList is a view model for rendering the front page
|
|
type PageList struct {
|
|
Base
|
|
Headers []model.Header
|
|
ActiveCategory model.PageCategory
|
|
Categories []model.PageCategory
|
|
ActiveTag model.Tag
|
|
FavoriteTags []model.Tag
|
|
}
|
|
|
|
// Setup sets up the page model and the base, and should
|
|
// be run after the details have been filled in.
|
|
func (pl *PageList) Setup(user *auth.User) {
|
|
pl.setupBase(user, "Index")
|
|
}
|