akkoma/lib/pleroma/web/templates/twitter_api/remote_follow/follow.html.eex

12 lines
595 B
Elixir
Raw Normal View History

<%= if @error == :error do %>
2022-02-21 16:42:25 -07:00
<h2><%= Gettext.dpgettext("static_pages", "remote follow error", "Error fetching user") %></h2>
<% else %>
2022-02-21 16:42:25 -07:00
<h2><%= Gettext.dpgettext("static_pages", "remote follow header", "Remote follow") %></h2>
<img height="128" width="128" src="<%= avatar_url(@followee) %>">
<p><%= @followee.nickname %></p>
<%= form_for @conn, ~p"/ostatus_subscribe", [as: "user"], fn f -> %>
<%= hidden_input f, :id, value: @followee.id %>
2022-02-21 16:42:25 -07:00
<%= submit Gettext.dpgettext("static_pages", "remote follow authorization button", "Authorize") %>
<% end %>
<% end %>