{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* operator_entitlement_set_detail.html Composite per-entitlement-set detail page. Addressable at /operator/entitlement-sets/{setID}; rendered as the operator.html BodyTemplate by GetEntitlementSetDetailPage and swapped into #operator-body by the in-page mutation re-renders. Built from the page-anatomy parts: the header carries the set's own name below the Products / Entitlement sets trail; the sections (Details, Add rule, Rules) are titled by sectionHeader outside their boxes, supplied by operator_entitlement_set_edit.html and operator_entitlement_set_rules.html. */}} {{ template "pageHeader" .Header }} {{ if .Error }} {{ end }} {{ template "operator_entitlement_set_edit.html" .Edit }} {{ template "operator_entitlement_set_rules.html" .Rules }} {{/* History (design.md A15): the set's ledger of committed rule changes, boxed below Rules, newest first, ten rows a page under the h_ prefix so its pager leaves the rest of the page's state alone. Every label is the row's own write-time snapshot, so a later rename of the set, the resource key or an organization does not rewrite what an operator read months ago. */}} {{ template "sectionHeader" .History.HistoryHeader }} {{/* #set-history-panel: scoped swap target for this list's pager, so paging never scrolls the page (History.Nav.Target). */}}
{{ if .History.Error }} {{ else if eq (len .History.Changes) 0 }} {{ template "emptyState" .History.NoHistory }} {{ else }}
{{ range .History.Changes }} {{ end }}
Change Resource What changed Pools Note By When
{{ if .HasBadge }}{{ template "statusBadge" .ChangeBadge }}{{ end }} {{ if .ResourceLabel }}{{ .ResourceLabel }} ({{ .ResourceKey }}){{ else }}{{ .ResourceKey }}{{ end }} {{ if .Changed }}{{ range .Changed }}
{{ . }}
{{ end }}{{ else }}{{ end }}
{{ .PoolsLine }}
{{ if .OverUsageLine }}
{{ .OverUsageLine }}
{{ end }}
{{ .Note }} {{ if .ActorName }}{{ .ActorName }}{{ else }}{{ .ActorType }}{{ end }} {{ .When }}
{{ template "listPager" .History.Nav }} {{ end }}