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