package viewmodel import ( "fmt" "git.aiterp.net/gisle/wrouter/auth" ) // PageSource is the view model used to view the page's source. // It's got no extra data on its own. type PageSource struct { Base PageBase } // Setup sets up the page view model. It should be calles last func (pv *PageSource) Setup(user *auth.User) { pv.HideMenu = false pv.setupBase(user, pv.Page.Name, fmt.Sprintf("/page/source/%s", pv.Page.ID)) }