mirror of
https://github.com/plausible/analytics.git
synced 2024-12-29 04:22:34 +03:00
74675f0cbc
* Move dogfooding to `extra/` * Remove unused view functions
13 lines
297 B
Elixir
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
|