clacks/lib/clacks_web/templates/frontend/_timeline.html.eex

23 lines
559 B
Elixir
Raw Normal View History

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">
<%= for {status, author} <- @statuses_with_authors do %>
<li>
2020-04-25 16:30:47 +00:00
<%= render "_status.html", conn: @conn, author: author, status: status, note: status.data["object"] %>
</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 %>