mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 18:31:07 +00:00
bd4fad3c58
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
22 lines
855 B
Elixir
22 lines
855 B
Elixir
defmodule Mobilizon.Web.EmailView do
|
|
use Mobilizon.Web, :view
|
|
|
|
alias Mobilizon.Service.Address
|
|
alias Mobilizon.Service.DateTime, as: DateTimeRenderer
|
|
import Mobilizon.Web.Gettext
|
|
import Mobilizon.Service.Metadata.Utils, only: [process_description: 1]
|
|
|
|
defdelegate datetime_to_string(datetime, locale \\ "en", format \\ :medium),
|
|
to: DateTimeRenderer
|
|
|
|
defdelegate datetime_to_time_string(datetime, locale \\ "en", format \\ :short),
|
|
to: DateTimeRenderer
|
|
|
|
defdelegate datetime_to_date_string(datetime, locale \\ "en", format \\ :short),
|
|
to: DateTimeRenderer
|
|
|
|
defdelegate datetime_tz_convert(datetime, timezone), to: DateTimeRenderer
|
|
defdelegate datetime_relative(datetime, locale \\ "en"), to: DateTimeRenderer
|
|
defdelegate render_address(address), to: Address
|
|
defdelegate is_same_day?(one, two), to: DateTimeRenderer
|
|
end
|