-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.go
30 lines (26 loc) · 978 Bytes
/
menu.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Package site - Content managed by Project Forge, see [projectforge.md] for details.
package site
import (
"context"
"admini.dev/admini/app"
"admini.dev/admini/app/lib/menu"
"admini.dev/admini/app/lib/user"
"admini.dev/admini/app/util"
)
const (
keyAbout = "about"
keyContrib = "contributing"
keyCustomizing = "customizing"
keyDownload = "download"
keyInstall = "install"
keyTech = "technology"
)
func Menu(_ context.Context, _ *app.State, _ *user.Profile, _ user.Accounts, _ util.Logger) menu.Items {
return menu.Items{
{Key: keyInstall, Title: "Install", Icon: "code", Route: "/" + keyInstall},
{Key: keyDownload, Title: "Download", Icon: "download", Route: "/" + keyDownload},
{Key: keyCustomizing, Title: "Customizing", Icon: "code", Route: "/" + keyCustomizing},
{Key: keyContrib, Title: "Contributing", Icon: "gift", Route: "/" + keyContrib},
{Key: keyTech, Title: "Technology", Icon: "cog", Route: "/" + keyTech},
}
}