{{/* abono/pricing: GET /subscribe, every plan on sale, each a card whose button starts Checkout. When nothing is for sale (Stripe is off, or no plan has a price on sale) it says so instead. Data: Title string, the page title's message key Open bool, something is for sale Cards []abonoCard, {Offer, Interval, Action}: one per plan and interval, for the abono-plan-card partial L the request's localizer */}} {{define "content"}}{{$L := localizer $}} {{if .Open}} {{template "page-header" dict "L" $L "Title" (T $L "abono.pages.pricing_title") "Sub" (T $L "abono.pages.pricing_intro")}} {{range .Cards}}{{template "abono-plan-card" dict "L" $L "Offer" .Offer "Interval" .Interval "Action" .Action}} {{end}} {{else}} {{template "page-header" dict "L" $L "Title" (T $L "abono.pages.pricing_title")}} {{template "empty-state" dict "L" $L "Title" (T $L "abono.pages.closed_title") "Body" (T $L "abono.pages.closed_body")}} {{end}} {{end}}