1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.EmailView do
8 import Phoenix.HTML.Link
9 alias Pleroma.Web.Gettext
11 def avatar_url(user) do
12 Pleroma.User.avatar_url(user)
15 def format_date(date) when is_binary(date) do
17 |> Timex.parse!("{ISO:Extended:Z}")
18 |> Timex.format!("{Mshort} {D}, {YYYY} {h24}:{m}")
21 def admin_user_url(%{id: id}) do
22 Pleroma.Web.Endpoint.url() <> "/pleroma/admin/#/users/" <> id