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.

19 lines
400 B

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