<% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @topics, route: fn p -> ~p"/forums/#{@forum}?#{p}" end) %>

<%= @forum.name %>

<%= link("Forums", to: ~p"/forums") %> » <%= link(@forum.name, to: ~p"/forums/#{@forum}") %> New Topic Search Posts <%= @forum.topic_count %> topics
<%= for topic <- @topics do %> <% end %>
Topic Posts 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) %>
<%= topic.post_count %> <%= 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 %>
<% # - if current_user %> <% # = render partial: 'topics/form' %>