The backend for the AiteStory website
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
551 B

package viewmodel
import (
"git.aiterp.net/AiteRP/aitestory/model"
"git.aiterp.net/gisle/wrouter/auth"
)
// IndexList is a view model for rendering the front page
type IndexList struct {
Base
IndexBase
Headers []model.Header
ActiveCategory model.PageCategory
FavoriteTags []model.Tag
}
// Setup sets up the page model and the base, and should
// be run after the details have been filled in.
func (il *IndexList) Setup(user *auth.User, viewPath string, viewTitle string) {
il.setupMenu()
il.setupBase(user, viewTitle, viewPath)
}