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
| package site
import ( "context"
"{{{ .Package }}}/app" "{{{ .Package }}}/app/lib/menu" "{{{ .Package }}}/app/lib/user" "{{{ .Package }}}/app/util" )
const ( keyAbout = "about" keyContrib = "contributing" keyCustomizing = "customizing" keyDownload = "download" keyInstall = "install" keyTech = "technology" )
func Menu(_ context.Context, _ *app.State, _ *user.Profile, {{{ if .HasAccount }}}_ user.Accounts, {{{ end }}}_ 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}, } }
|