2020-04-25 19:47:22 +00:00
|
|
|
<% newer = prev_page_path(@conn, @statuses_with_authors) %>
|
|
|
|
<%= if newer do %>
|
|
|
|
<p class="pagination-link">
|
|
|
|
<a href="<%= newer %>">Newer</a>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
2020-04-25 16:30:47 +00:00
|
|
|
<ul class="status-list">
|
2020-05-23 15:53:27 +00:00
|
|
|
<%= for {status, author, announced} <- @statuses_with_authors do %>
|
2020-04-22 02:06:48 +00:00
|
|
|
<li>
|
2020-05-23 15:53:27 +00:00
|
|
|
<%= if status.data["type"] == "Announce" do %>
|
|
|
|
<% {announced_status, announced_actor} = announced %>
|
2021-08-25 20:11:08 +00:00
|
|
|
<%= render "_action_status.html", conn: @conn, action: :announce, action_activity: status, action_actor: author, original_activity: announced_status, original_note: announced_status.object.data, original_actor: announced_actor %>
|
2020-05-23 15:53:27 +00:00
|
|
|
<% else %>
|
2021-08-25 20:11:08 +00:00
|
|
|
<%= render "_status.html", conn: @conn, author: author, status: status, note: status.object.data %>
|
2020-05-23 15:53:27 +00:00
|
|
|
<% end %>
|
2020-04-22 02:06:48 +00:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2020-04-25 19:47:22 +00:00
|
|
|
|
|
|
|
<% older = next_page_path(@conn, @statuses_with_authors) %>
|
|
|
|
<%= if older do %>
|
|
|
|
<p class="pagination-link">
|
|
|
|
<a href="<%= older %>">Older</a>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|