{{/* abono-account: the membership section of your own account page, not a page of its own. Each holding as a plan and a status line, a billing button for each Stripe customer the reader pays through, a link to the plans for one who holds nothing that grants, and the problem the billing button came back with. Call it from your account page with AbonoPages.Account(r) as data: {{template "abono-account" (withL .Abono $L)}} Data: Holdings []abono.Holding, newest first Now time.Time, the moment they are described at Manage bool, there is billing to manage Customers []string, the reader's Stripe customers, one button each Granted bool, something grants access now BillingAction string, where the billing button posts PlansURL string, the pricing page Error string, a message key, or "" L the request's localizer */}} {{define "abono-account"}}{{$L := localizer $}}

{{T $L "abono.pages.account_title"}}

{{with .Error}}{{template "callout" dict "L" $L "Tone" "negative" "Focus" true "Body" (T $L .)}}{{end}} {{if .Holdings}} {{else}}

{{T $L "abono.pages.account_none"}}

{{end}} {{if .Manage}}

{{T $L "abono.pages.account_manage_help"}}

{{range .Customers}}{{template "abono-billing-button" dict "L" $L "Action" $.BillingAction "Customer" .}} {{end}}{{end}} {{if not .Granted}}

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

{{end}}
{{end}}