Files
member-console/internal/embeds/templates/partials/ui_section_header.html
T
cgalo5758 408fa6f5a6 Add page anatomy parts and UI quality gate
- Add shared ui_*.html parts (pageHeader, sectionHeader, statusBadge,
  emptyState) parsed into every template set
- Add anatomy lint rules with a shrinking allowlist and screen-coverage
  check
- Add make screens capture harness with contact sheets and baseline diff
- Compose member and FedWiki regions server-side so pages arrive
  complete
- Rebuild Domains and Integrations on the parts as pilots
2026-08-30 04:05:31 -05:00

14 lines
1.0 KiB
HTML

{{/* Page anatomy: in-page section headers (docs/design-system.md §6; spec
page-anatomy "Section headers are uniform"). Pipeline:
server.SectionHeader. sectionHeader titles a section outside the box
its content sits in (h2.h5, optional muted count or one action).
sectionSummary is the same header as the <summary> of a native
<details>, for a secondary section that opens on demand; the count
rides in parentheses so the closed disclosure still says how much it
holds. */}}
{{ define "sectionHeader" }}<div class="d-flex align-items-center justify-content-between gap-3 mt-4 mb-2 app-section-header">
<h2 class="h5 mb-0">{{ .Title }}</h2>
{{ if .Action }}<a href="{{ .Action.URL }}" class="btn btn-sm btn-outline-secondary">{{ .Action.Label }}</a>{{ else if .Count }}<span class="text-body-secondary small">{{ .Count }}</span>{{ end }}
</div>{{ end }}
{{ define "sectionSummary" }}<summary class="app-section-header mb-2"><h2 class="h5 d-inline mb-0">{{ .Title }}{{ if .Count }} ({{ .Count }}){{ end }}</h2></summary>{{ end }}