{{ define "subscription_plans" }} {{ if not .HideBilling }} {{ if not .Tiers }} {{/* Billing is enabled (HideBilling=false) but no tiers were returned — covers the config-loaded-but-empty case. Explicit copy beats silent render. */}}

Available Plans

Plan information is temporarily unavailable. Check back in a minute.

{{ else }}

Available Plans

{{ range .Tiers }}
{{ if .IsCurrent }}Current{{ end }}
{{ .Name }}
{{ if .Description }}

{{ .Description }}

{{ end }} {{ if .Features }}
    {{ range .Features }}
  • {{ . }}
  • {{ end }}
{{ end }}
{{ if and .IsCurrent (not $.SubscriptionID) (or .PriceCentsMonthly .PriceCentsYearly) }} {{/* Current tier with optional support pricing */}}
Free
{{ if .PriceMonthly }}
{{ .PriceMonthly }} to support
{{ else if .PriceYearly }}
{{ .PriceYearly }} to support
{{ end }} {{ else if .PriceMonthly }}
{{ .PriceMonthly }}
{{ if .PriceYearly }}
or {{ .PriceYearly }}
{{ end }} {{ else if .PriceYearly }}
{{ .PriceYearly }}
{{ else }}
Free
{{ end }}
{{ if not .IsCurrent }} {{ if or .PriceCentsMonthly .PriceCentsYearly }} {{ if $.SubscriptionID }} Change Plan {{ else }} Upgrade {{ end }} {{ end }} {{ else if and (not $.SubscriptionID) (or .PriceCentsMonthly .PriceCentsYearly) }} Become a Supporter {{ end }}
{{ end }}
{{ if .SubscriptionID }}
Manage Billing
{{ end }}
{{ end }} {{ end }} {{ end }}