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) }