package adminview
import (
"fmt"
"git.haelnorr.com/h/oslstats/internal/db"
)
templ RolesList(roles []*db.Role) {
Role Management
| Name |
Description |
Type |
Actions |
if len(roles) == 0 {
| No roles found |
} else {
for _, role := range roles {
@roleRow(role)
}
}
}
templ roleRow(role *db.Role) {
| { role.DisplayName } |
{ role.Description } |
if role.IsSystem {
SYSTEM
} else {
Custom
}
|
|
}