analytics/lib/plausible_web/views/billing_view.ex
hq1 74675f0cbc
Move dogfooding to full build (#3576)
* Move dogfooding to `extra/`

* Remove unused view functions
2023-12-04 10:30:20 +01:00

13 lines
297 B
Elixir

defmodule PlausibleWeb.BillingView do
use PlausibleWeb, :view
def present_date(date) do
Date.from_iso8601!(date)
|> Timex.format!("{D} {Mshort} {YYYY}")
end
def present_currency("USD"), do: "$"
def present_currency("EUR"), do: ""
def present_currency("GBP"), do: "£"
end