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

  1. package viewmodel
  2. import (
  3. "git.aiterp.net/AiteRP/aitestory/model"
  4. "git.aiterp.net/gisle/wrouter/auth"
  5. )
  6. // IndexList is a view model for rendering the front page
  7. type IndexList struct {
  8. Base
  9. IndexBase
  10. Headers []model.Header
  11. ActiveCategory model.PageCategory
  12. FavoriteTags []model.Tag
  13. }
  14. // Setup sets up the page model and the base, and should
  15. // be run after the details have been filled in.
  16. func (il *IndexList) Setup(user *auth.User, viewPath string, viewTitle string) {
  17. il.setupMenu()
  18. il.setupBase(user, viewTitle, viewPath)
  19. }