% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @topics, route: fn p -> ~p"/forums/#{@forum}?#{p}" end) %>
Topic | Last Post |
---|---|
<%= if topic.sticky do %>
<% end %>
<%= if topic.locked_at do %>
<% end %>
<%= if topic.poll do %>
<% end %>
<%= link(topic.title, to: ~p"/forums/#{@forum}/topics/#{topic}") %>
Posted
<%= pretty_time(topic.created_at) %>
by
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: topic, conn: @conn) %>
|
<%= if topic.last_post do %>
<%= link("Go to post", to: ~p"/forums/#{topic.forum}/topics/#{topic}?#{[post_id: topic.last_post]}" <> "#post_#{topic.last_post.id}") %>
by
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: topic.last_post, conn: @conn) %>
<%= pretty_time(topic.last_post.created_at) %> <% end %> |