rastrillo / abono Public

Clone
git clone https://amadan.net/rastrillo/abono

Plain git — no account needed to clone.

Download

Download this file

1{{/* abono-price — one price with its interval: "€5.00 a month" in the
2 catalog's words. Used by the plan card; not for an app to call.
3
4 Keys:
5 Price abono.Price, required — a price Stripe has been read for
6 (a currency); the caller checks that
7 L *ui.Localizer */}}
8{{define "abono-price"}}{{$L := localizer $}}{{$m := money $L .Price.Amount .Price.Currency}}{{if eq .Price.Interval "month"}}{{Tf $L "abono.price.per_month" "amount" $m}}{{else if eq .Price.Interval "year"}}{{Tf $L "abono.price.per_year" "amount" $m}}{{else}}{{$m}}{{end}}{{end}}
9