fe
[akkoma] / lib / pleroma / web / views / email_view.ex
1 defmodule Pleroma.Web.EmailView do
2 use Pleroma.Web, :view
3 import Phoenix.HTML
4 import Phoenix.HTML.Link
5
6 def avatar_url(user) do
7 Pleroma.User.avatar_url(user)
8 end
9
10 def format_date(date) when is_binary(date) do
11 date
12 |> Timex.parse!("{ISO:Extended:Z}")
13 |> Timex.format!("{Mshort} {D}, {YYYY} {h24}:{m}")
14 end
15 end