28 lines
879 B
Elixir
28 lines
879 B
Elixir
<% newer = prev_page_path(@conn, @statuses_with_authors) %>
|
|
<%= if newer do %>
|
|
<p class="pagination-link">
|
|
<a href="<%= newer %>">Newer</a>
|
|
</p>
|
|
<% end %>
|
|
|
|
<ul class="status-list">
|
|
<%= for {status, author, announced} <- @statuses_with_authors do %>
|
|
<li>
|
|
<%= if status.data["type"] == "Announce" do %>
|
|
<% {announced_status, announced_actor} = announced %>
|
|
<%= render "_status.html", conn: @conn, announcer: author, status: announced_status, note: announced_status.data["object"], author: announced_actor %>
|
|
<% else %>
|
|
<%= render "_status.html", conn: @conn, author: author, status: status, note: status.data["object"] %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
<% older = next_page_path(@conn, @statuses_with_authors) %>
|
|
<%= if older do %>
|
|
<p class="pagination-link">
|
|
<a href="<%= older %>">Older</a>
|
|
</p>
|
|
<% end %>
|
|
|