{{/* abono-paywall — what stands where locked content would be: why it is locked, and the way in. A reader who is not signed in is asked to sign in (they cannot buy as no one); a signed-in reader sees the plans, or a link to them. The block is a padded box when it holds only words and a button; with the picker inline the plan boxes are the boxes, and it is a plain section. Keys: Offers []abono.Offer, required — from Service.Offers SignedIn bool, required SigninURL string — where "sign in" goes; used when not SignedIn Action string — where the buy forms post; used when SignedIn PlansURL string, optional — when set, a signed-in reader gets a "see plans" link there instead of the picker inline L *ui.Localizer */}} {{define "abono-paywall"}}{{$L := localizer $}}

{{T $L "abono.paywall.title"}}

{{T $L "abono.paywall.body"}}

{{if .SignedIn}}{{with opt . "PlansURL"}}

{{T $L "abono.button.see_plans"}}

{{else}}{{template "abono-plan-picker" dict "L" $L "Offers" $.Offers "Action" (or (opt $ "Action") "")}}{{end}}{{else}}

{{T $L "abono.paywall.signin_prompt"}}

{{T $L "abono.paywall.signin"}}

{{end}}{{end}}