2019-11-01 00:44:43 +00:00
|
|
|
<header>
|
2019-11-05 06:02:10 +00:00
|
|
|
<h1><%= link instance_name(), to: "/" %></h1>
|
2019-10-30 03:55:43 +00:00
|
|
|
|
2019-11-01 00:44:43 +00:00
|
|
|
<h3>
|
|
|
|
<form class="pull-right collapse" method="POST" action="<%= Helpers.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>
|
2020-04-03 11:03:32 +00:00
|
|
|
<%= raw Formatter.emojify(@user.name, @user.emoji) %> |
|
2020-03-30 00:01:09 +00:00
|
|
|
<%= link "@#{@user.nickname}@#{Endpoint.host()}", to: (@user.uri || @user.ap_id) %>
|
2019-11-01 00:44:43 +00:00
|
|
|
</h3>
|
|
|
|
<p><%= raw @user.bio %></p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<div class="activity-stream">
|
|
|
|
<%= for activity <- @timeline do %>
|
|
|
|
<%= render("_notice.html", Map.put(activity, :selected, false)) %>
|
|
|
|
<% end %>
|
2019-11-05 06:49:05 +00:00
|
|
|
<p id="pagination">
|
|
|
|
<%= if @prev_page_id do %>
|
|
|
|
<%= link "«", to: "?min_id=" <> @prev_page_id %>
|
|
|
|
<% end %>
|
|
|
|
<%= if @prev_page_id && @next_page_id, do: " | " %>
|
|
|
|
<%= if @next_page_id do %>
|
|
|
|
<%= link "»", to: "?max_id=" <> @next_page_id %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2019-11-01 00:44:43 +00:00
|
|
|
</div>
|
|
|
|
</main>
|