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
537 B

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