diff options
Diffstat (limited to 'lib/pleroma/web/templates')
-rw-r--r-- | lib/pleroma/web/templates/frontend/mastodon/index.html.eex (renamed from lib/pleroma/web/templates/masto_fe/index.html.eex) | 4 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/_attachment.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex) | 0 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/_notice.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex) | 8 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/_user_card.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex) | 0 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/conversation.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/conversation.html.eex) | 0 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/error.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/error.html.eex) | 0 | ||||
-rw-r--r-- | lib/pleroma/web/templates/frontend/static/profile.html.eex (renamed from lib/pleroma/web/templates/static_fe/static_fe/profile.html.eex) | 4 | ||||
-rw-r--r-- | lib/pleroma/web/templates/layout/static_fe.html.eex | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/lib/pleroma/web/templates/masto_fe/index.html.eex b/lib/pleroma/web/templates/frontend/mastodon/index.html.eex index c330960fa..22f3f3b5a 100644 --- a/lib/pleroma/web/templates/masto_fe/index.html.eex +++ b/lib/pleroma/web/templates/frontend/mastodon/index.html.eex @@ -6,8 +6,8 @@ <title> <%= Config.get([:instance, :name]) %> </title> -<link rel="icon" type="image/png" href="/favicon.png"/> -<link rel="manifest" type="applicaton/manifest+json" href="<%= masto_fe_path(Pleroma.Web.Endpoint, :manifest) %>" /> +<link rel="icon" type="image/png" href="favicon.png"/> +<link rel="manifest" type="applicaton/manifest+json" href="<%= frontend_mastodon_path(Pleroma.Web.Endpoint, :manifest) %>" /> <meta name="theme-color" content="<%= Config.get([:manifest, :theme_color]) %>" /> diff --git a/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex b/lib/pleroma/web/templates/frontend/static/_attachment.html.eex index 4853e7f4b..4853e7f4b 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex +++ b/lib/pleroma/web/templates/frontend/static/_attachment.html.eex diff --git a/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex b/lib/pleroma/web/templates/frontend/static/_notice.html.eex index df0244795..07c80d72b 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex +++ b/lib/pleroma/web/templates/frontend/static/_notice.html.eex @@ -19,7 +19,7 @@ <%= for %{"name" => name, "url" => [url | _]} <- @attachment do %> <%= if @sensitive do %> <details class="nsfw"> - <summary><%= Gettext.gettext("sensitive media") %></summary> + <summary><%= gettext("sensitive media") %></summary> <div> <%= render("_attachment.html", %{name: name, url: url["href"], mediaType: fetch_media_type(url)}) %> @@ -33,9 +33,9 @@ </div> <%= if @selected do %> <dl class="counts"> - <dt><%= Gettext.gettext("replies") %></dt><dd><%= @counts.replies %></dd> - <dt><%= Gettext.gettext("announces") %></dt><dd><%= @counts.announces %></dd> - <dt><%= Gettext.gettext("likes") %></dt><dd><%= @counts.likes %></dd> + <dt><%= gettext("replies") %></dt><dd><%= @counts.replies %></dd> + <dt><%= gettext("announces") %></dt><dd><%= @counts.announces %></dd> + <dt><%= gettext("likes") %></dt><dd><%= @counts.likes %></dd> </dl> <% end %> </div> diff --git a/lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex b/lib/pleroma/web/templates/frontend/static/_user_card.html.eex index 977b894d3..977b894d3 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex +++ b/lib/pleroma/web/templates/frontend/static/_user_card.html.eex diff --git a/lib/pleroma/web/templates/static_fe/static_fe/conversation.html.eex b/lib/pleroma/web/templates/frontend/static/conversation.html.eex index 2acd84828..2acd84828 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/conversation.html.eex +++ b/lib/pleroma/web/templates/frontend/static/conversation.html.eex diff --git a/lib/pleroma/web/templates/static_fe/static_fe/error.html.eex b/lib/pleroma/web/templates/frontend/static/error.html.eex index d98a1eba7..d98a1eba7 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/error.html.eex +++ b/lib/pleroma/web/templates/frontend/static/error.html.eex diff --git a/lib/pleroma/web/templates/static_fe/static_fe/profile.html.eex b/lib/pleroma/web/templates/frontend/static/profile.html.eex index 3191bf450..1690c5edf 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/profile.html.eex +++ b/lib/pleroma/web/templates/frontend/static/profile.html.eex @@ -2,12 +2,12 @@ <h1><%= link instance_name(), to: "/" %></h1> <h3> - <form class="pull-right collapse" method="POST" action="<%= Helpers.util_path(@conn, :remote_subscribe) %>"> + <form class="pull-right collapse" method="POST" action="<%= util_path(@conn, :remote_subscribe) %>"> <input type="hidden" name="nickname" value="<%= @user.nickname %>"> <input type="hidden" name="profile" value=""> <button type="submit" class="collapse">Remote follow</button> </form> - <%= raw Formatter.emojify(@user.name, @user.emoji) %> | + <%= raw Pleroma.Emoji.Formatter.emojify(@user.name, @user.emoji) %> | <%= link "@#{@user.nickname}@#{Endpoint.host()}", to: (@user.uri || @user.ap_id) %> </h3> <p><%= raw @user.bio %></p> diff --git a/lib/pleroma/web/templates/layout/static_fe.html.eex b/lib/pleroma/web/templates/layout/static_fe.html.eex index 819632cec..b7ec4d0c9 100644 --- a/lib/pleroma/web/templates/layout/static_fe.html.eex +++ b/lib/pleroma/web/templates/layout/static_fe.html.eex @@ -5,7 +5,7 @@ <meta name="viewport" content="width=device-width,initial-scale=1,minimal-ui" /> <title><%= Pleroma.Config.get([:instance, :name]) %></title> <%= Phoenix.HTML.raw(assigns[:meta] || "") %> - <link rel="stylesheet" href="/static/static-fe.css"> + <link rel="stylesheet" href="<%= static_path(@conn, "/static-fe.css") %>"/> </head> <body> <div class="container"> |