analytics / lib /plausible_web /views /billing_view.ex
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
88211d3 verified
Raw
History Blame Contribute Delete
291 Bytes
defmodule PlausibleWeb.BillingView do
use PlausibleWeb, :view
def present_date(date) do
Date.from_iso8601!(date)
|> Calendar.strftime("%-d %b %Y")
end
def present_currency("USD"), do: "$"
def present_currency("EUR"), do: "€"
def present_currency("GBP"), do: "£"
end