{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* operator_entitlement_set_rules_tray.html The tray's own lines, rendered through Binding.Message into the rules form's tray under the table (design D13 of staged-rule-changes; spec entitlement-set-management "One tray under the table carries the batch and its commit"). Context: server.EntitlementSetRuleTrayView. The heading is focusable, because staging, removing and undoing put focus here. The population is stated once for the whole batch, as the lead-in to the lines, and no per-pool consequence is computed: the tray runs no dry run (design D5). Above the cap it states which path the commit will take, before it is taken. The tray carries no control of its own: a rule's reduction policy is a field of its row (decision 1, 2026-09-19), so a line is its sentence and Undo. */}}

Nothing has been changed.

{{ if .AboveCap }}

Recomputation continues after the change is applied.

{{ end }} {{ if .ReachesNoPool }}

This rule type reaches no pool.

{{ end }} {{/* The lead-in comes last, because the library renders the delta lines right after this fragment: the colon opens onto them. */}}

{{- if eq .PoolCount 0 }}Applying to no pools: {{- else }}Applying to {{ .Pools }} {{ if eq .PoolCount 1 }}pool{{ else }}pools{{ end }} in {{ .Orgs }} {{ if eq .OrgCount 1 }}organization{{ else }}organizations{{ end }}:{{ end -}}

{{/* entitlementSetRuleLine is one staged delta's narrative, rendered into that delta's tray line (forms.StagedDelta.Line). Context: server.EntitlementSetRuleLineView. The sentences are the ledger's own, without the History line: what a change keeps is History's fact, and the tray is about what is being applied. The policies read as their labels lowered ("clamp becomes force reduce"). A carried edit that moves nothing says so; staging refuses such a row, so only a crafted batch carries one, and the commit refuses it. */}} {{ define "entitlementSetRuleLine" }} {{- if eq .Verb "add" -}} {{- if .Boolean }}{{ .Label }}: provided by this set. {{- else }}{{ .Label }}: no rule becomes limit {{ .LimitAfter }}{{ if .PerUnit }} for each unit{{ end }}.{{ end -}} {{- else if eq .Verb "edit" -}} {{- if .Unchanged }}{{ .Label }}: unchanged.{{ end -}} {{- if .LimitChanged }}{{ .Label }}: limit {{ .LimitBefore }} becomes limit {{ .LimitAfter }}.{{ end -}} {{- if .PerUnitChanged }} {{ .Label }}: per unit {{ if .PerUnitBefore }}yes{{ else }}no{{ end }} becomes {{ if .PerUnit }}yes{{ else }}no{{ end }}.{{ end -}} {{- if .PolicyChanged }} {{ .Label }}: reduction policy {{ .PolicyBefore }} becomes {{ .PolicyAfter }}.{{ end -}} {{- else -}} {{- if .Boolean }}{{ .Label }}: no longer provided by this set. {{- else }}{{ .Label }}: limit {{ .LimitBefore }} is withdrawn from this set.{{ end -}} {{- end -}} {{ end }}