package systemviews
templ appFrameComponent(page renderedPage, theme shellTheme, body templ.Component) {
if page.subtitle != "" {
{ page.subtitle }
if page.subtitleDetail != "" {
{ page.subtitleDetail }
}
}
@body
}
templ Section(className string, title string) {
{ title }
{ children... }
}
templ Meta(text string) {
{ text }
}
templ EmptyState(message string) {
}
templ LoadingPanel(message string) {
{ message }
}
templ LoadingCard(label string) {
{ label }
}
templ Alert(kind string, message string) {
if message != "" {
{ message }
}
}
templ List() {
}
templ ListRow() {
{ children... }
}
templ Button(label string, action string, classes string, attrs templ.Attributes, disabled bool) {
}
templ KeyList(keys []string) {
if len(keys) == 0 {
Unassigned
} else {
for _, key := range keys {
{ key }
}
}
}
templ KV(rows []kvPair) {
if len(rows) == 0 {
@EmptyState("No configuration details")
} else {
for _, row := range rows {
- { row.Label }
- { row.Value }
}
}
}