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

Service Accounts

Manage application credentials for automated processes

Total Service Accounts
{fmt.Sprintf("%d", data.TotalAccounts)}
Active Accounts
{fmt.Sprintf("%d", data.ActiveAccounts)}
Last Updated
{data.LastUpdated.Format("15:04")}
Service Accounts
for _, sa := range data.ServiceAccounts { } if len(data.ServiceAccounts) == 0 { }
ID Parent User Access Key Status Created Actions
{sa.ID}
{sa.ParentUser} {sa.AccessKeyId} if sa.Status == dash.StatusActive { Active } else { Inactive } {sa.CreateDate.Format("2006-01-02")}
No service accounts found

Create your first service account for automated processes.

Last updated: {data.LastUpdated.Format("2006-01-02 15:04:05")}
}