package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ Groups(data dash.GroupsPageData) {

Groups

Manage IAM groups for organizing users and policies

Total Groups
{fmt.Sprintf("%d", data.TotalGroups)}
Active Groups
{fmt.Sprintf("%d", data.ActiveGroups)}
Groups
if len(data.Groups) == 0 {

No groups found. Create a group to get started.

} else {
for _, group := range data.Groups { }
Name Members Policies Status Actions
{group.Name} {fmt.Sprintf("%d", group.MemberCount)} {fmt.Sprintf("%d", group.PolicyCount)} if group.Status == "enabled" { Enabled } else { Disabled }
}
}