added teams

This commit is contained in:
2026-02-12 21:10:49 +11:00
parent 2afa32dd63
commit 6e779fa560
25 changed files with 1327 additions and 52 deletions

View File

@@ -21,6 +21,7 @@ func getNavItems() []NavItem {
return []NavItem{
{Name: "Seasons", Href: "/seasons"},
{Name: "Leagues", Href: "/leagues"},
{Name: "Teams", Href: "/teams"},
}
}
@@ -30,7 +31,7 @@ func getProfileItems(ctx context.Context) []ProfileItem {
{Name: "Profile", Href: "/profile"},
{Name: "Account", Href: "/account"},
}
cache := contexts.Permissions(ctx)
if cache != nil && cache.Roles["admin"] {
items = append(items, ProfileItem{
@@ -38,7 +39,7 @@ func getProfileItems(ctx context.Context) []ProfileItem {
Href: "/admin",
})
}
return items
}