templating: Move actions into template
This commit is contained in:
parent
313af2b9e3
commit
202599aaeb
23 changed files with 153 additions and 105 deletions
|
|
@ -59,8 +59,10 @@ type legalContext struct {
|
|||
}
|
||||
|
||||
func (legal *Legal) context(r *http.Request) (lc legalContext, err error) {
|
||||
legal.Dependencies.Custom.Update(&lc, r, []component.MenuItem{
|
||||
{Title: "Legal", Path: "/legal/"},
|
||||
legal.Dependencies.Custom.Update(&lc, r, custom.BaseContextGaps{
|
||||
Crumbs: []component.MenuItem{
|
||||
{Title: "Legal", Path: "/legal/"},
|
||||
},
|
||||
})
|
||||
|
||||
lc.LegalNotices = cli.LegalNotices
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue