2019-12-20 13:34:14 +00:00
|
|
|
<%= if @error == :error do %>
|
2022-02-21 23:42:25 +00:00
|
|
|
<h2><%= Gettext.dpgettext("static_pages", "remote follow error", "Error fetching user") %></h2>
|
2019-12-20 13:34:14 +00:00
|
|
|
<% else %>
|
2022-02-21 23:42:25 +00:00
|
|
|
<h2><%= Gettext.dpgettext("static_pages", "remote follow header", "Remote follow") %></h2>
|
2019-12-20 13:34:14 +00:00
|
|
|
<img height="128" width="128" src="<%= avatar_url(@followee) %>">
|
|
|
|
<p><%= @followee.nickname %></p>
|
2021-05-18 22:11:25 +00:00
|
|
|
<%= form_for @conn, Routes.remote_follow_path(@conn, :do_follow), [as: "user"], fn f -> %>
|
2019-12-20 13:34:14 +00:00
|
|
|
<%= hidden_input f, :id, value: @followee.id %>
|
2022-02-21 23:42:25 +00:00
|
|
|
<%= submit Gettext.dpgettext("static_pages", "remote follow authorization button", "Authorize") %>
|
2019-12-20 13:34:14 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|