summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/templates/static_fe/static_fe/profile.html.eex
blob: 94063c92d631b2fd854b9e4b69f55eb20eb71884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<header>
  <h1><%= link instance_name(), to: "/" %></h1>

  <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>
    <%= raw Formatter.emojify(@user.name, emoji_for_user(@user)) %> |
    <%= link "@#{@user.nickname}@#{Endpoint.host()}", to: User.profile_url(@user) %>
  </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 %>
    <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>
  </div>
</main>