{{/* org-tabs renders the organization sub-navigation. Data: a map with Slug, Active ("home" | "repeaters" | "members" | "config") and IsMember (the Members tab only shows for members — it exposes personal info). Nil-safe: a missing map renders empty links (harmless for the empty-data compose test). Links are same-host relative so they work on both the app host (signed-in) and the root host (anonymous). */}} {{/* org-header is the shared chrome for every org tab, so the Actions menu (member views) and the "Go to organization" CTA (public views) stay consistent across tabs — the parallel to repeater-header. Pass the full page data (it reads .Nav.* plus the renderer-injected .AppURL). .Nav.Manage picks Actions vs CTA. */}} {{define "org-header"}}
Organization{{if and (not .Nav.Manage) .Nav.CanGoToOrg}} · public preview{{end}}

{{.Nav.Name}}

{{if .Nav.Manage}} {{else if .Nav.CanGoToOrg}} {{template "icon-arrow-right" "me-1"}}Go to organization {{else if .Nav.CanJoin}} {{template "icon-users" "me-1"}}Join organization {{else}} Sign in to join {{end}}
{{end}} {{define "org-tabs"}} {{end}}