{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* operator_entitlement_set_rule_change_message.html The rule change preview's narrative: what a review-details link outside this change renders from the engine's batch dry run (staged-rule-changes D5). Nothing calls it today; the tray states the population and one line per delta instead (operator_entitlement_set_rules_tray.html). It is kept whole because the buckets it draws are the detail that link restores: what is being applied, who carries the set, and how each carrying pool moves. Context: *server.RuleChangePreviewView. Every sentence here is design.md "Every visible string"; none of them explains the interface. */}}
{{- 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 .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 -}}
{{ if .ReachesNoPool }}This rule type reaches no pool.
{{ else }}{{- if eq .PoolCount 0 }}No pool carries this set. {{- else }}{{ .Pools }} {{ if eq .PoolCount 1 }}pool{{ else }}pools{{ end }} in {{ .Orgs }} {{ if eq .OrgCount 1 }}organization{{ else }}organizations{{ end }} {{ if eq .PoolCount 1 }}carries{{ else }}carry{{ end }} this set.{{ end -}}
{{ if .Exact }}{{ .AtOrOverNow }} are already at or over their limit for {{ .Label }}.
Recomputation continues after the change is applied.
{{ end }} {{ end }} {{ if .ClampResolution }}The limit applies now. Usage above it is kept.
{{ end }} {{ if .Consequence }}{{ .Consequence }}
{{ end }}