projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incorrect fallback when English is set to first language
[akkoma]
/
lib
/
pleroma
/
web
/
views
/
email_view.ex
diff --git
a/lib/pleroma/web/views/email_view.ex
b/lib/pleroma/web/views/email_view.ex
index b506a234b636f4d2a204448eb11ef984c271d449..2ef049d27b387344e82169604318f83e6046e0f2 100644
(file)
--- a/
lib/pleroma/web/views/email_view.ex
+++ b/
lib/pleroma/web/views/email_view.ex
@@
-1,7
+1,12
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.EmailView do
use Pleroma.Web, :view
import Phoenix.HTML
import Phoenix.HTML.Link
defmodule Pleroma.Web.EmailView do
use Pleroma.Web, :view
import Phoenix.HTML
import Phoenix.HTML.Link
+ alias Pleroma.Web.Gettext
def avatar_url(user) do
Pleroma.User.avatar_url(user)
def avatar_url(user) do
Pleroma.User.avatar_url(user)
@@
-12,4
+17,8
@@
defmodule Pleroma.Web.EmailView do
|> Timex.parse!("{ISO:Extended:Z}")
|> Timex.format!("{Mshort} {D}, {YYYY} {h24}:{m}")
end
|> Timex.parse!("{ISO:Extended:Z}")
|> Timex.format!("{Mshort} {D}, {YYYY} {h24}:{m}")
end
+
+ def admin_user_url(%{id: id}) do
+ Pleroma.Web.Endpoint.url() <> "/pleroma/admin/#/users/" <> id
+ end
end
end