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.

20 lines
433 B

  1. package viewmodel
  2. import (
  3. "fmt"
  4. "git.aiterp.net/gisle/wrouter/auth"
  5. )
  6. // PageSource is the view model used to view the page's source.
  7. // It's got no extra data on its own.
  8. type PageSource struct {
  9. Base
  10. PageBase
  11. }
  12. // Setup sets up the page view model. It should be calles last
  13. func (pv *PageSource) Setup(user *auth.User) {
  14. pv.HideMenu = false
  15. pv.setupBase(user, pv.Page.Name, fmt.Sprintf("/page/source/%s", pv.Page.ID))
  16. }