2020-05-20 21:45:12 +00:00
|
|
|
<div class="h-card">
|
|
|
|
<h1 class="p-name"><%= @actor.data["preferredUsername"] %></h1>
|
|
|
|
<h2>
|
|
|
|
<a href="<%= @actor.ap_id %>" class="p-nickname u-url">
|
2020-04-26 18:45:51 +00:00
|
|
|
<%= display_username(@actor) %>
|
|
|
|
</a>
|
2020-05-20 21:45:12 +00:00
|
|
|
</h2>
|
2021-08-26 02:47:19 +00:00
|
|
|
<p><%= raw(@actor.data["summary"]) %></p>
|
2020-05-20 21:45:12 +00:00
|
|
|
</div>
|
2019-10-06 23:41:18 +00:00
|
|
|
|
2020-04-26 22:55:44 +00:00
|
|
|
<div class="actor-actions">
|
2021-08-25 20:29:06 +00:00
|
|
|
<%= unless @current_user == nil || @current_user.actor.ap_id == @actor.ap_id do %>
|
2020-04-26 22:55:44 +00:00
|
|
|
|
|
|
|
<%= case @following_state do %>
|
|
|
|
<% :not_following -> %>
|
|
|
|
<%= form_tag Routes.frontend_path(@conn, :follow, @actor.id), method: :post, class: "follow-form" do %>
|
|
|
|
<%= submit "Follow" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% :following -> %>
|
|
|
|
<%= form_tag Routes.frontend_path(@conn, :unfollow, @actor.id), method: :post, class: "follow-form" do %>
|
|
|
|
<%= submit "Unfollow" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% :pending -> %>
|
|
|
|
<!-- todo: cancel follow request -->
|
|
|
|
<button type="button">Pending</button>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2020-05-23 15:53:27 +00:00
|
|
|
<%= render "_timeline.html", conn: @conn, statuses_with_authors: @statuses_with_actor %>
|