% route = fn p -> ~p"/forums/#{@forum}/topics/#{@topic}?#{p}" end %> <% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @posts, route: route, last: true) %>
Reason: <%= @topic.deletion_reason %>
<%= if can?(@conn, :hide, @topic) do %>Deleted by: <%= link(@topic.deleted_by.name, to: ~p"/profiles/#{@topic.deleted_by}") %>
<%= link(to: ~p"/forums/#{@forum}/topics/#{@topic}/hide", method: :delete, class: "button") do %> Restore <% end %>
<% end %>Locked <%= pretty_time(@topic.locked_at) %>
Lock reason: <%= @topic.lock_reason %>
<%= if can?(@conn, :hide, @topic) and not is_nil(@topic.locked_by) do %>Locked by: <%= link(@topic.locked_by.name, to: ~p"/profiles/#{@topic.locked_by}") %>
<% end %>You're looking at a thread with over 200,000 posts in it!
For various reasons, we'd like to ask you to start a new topic.
<% true -> %> <% end %> <%= if can?(@conn, :hide, @topic) do %><%= if not @topic.hidden_from_users do %> <%= if @topic.sticky do %> <%= link(to: ~p"/forums/#{@forum}/topics/#{@topic}/stick", method: :delete, class: "button") do %> Unstick <% end %> <% else %> <%= link(to: ~p"/forums/#{@forum}/topics/#{@topic}/stick", method: :post, class: "button") do %> Stick <% end %> <% end %> <%= if @topic.locked_at do %> <%= link(to: ~p"/forums/#{@forum}/topics/#{@topic}/lock", method: :delete, class: "button") do %> Unlock <% end %> <% else %> <%= form_for :topic, ~p"/forums/#{@forum}/topics/#{@topic}/lock", [method: :post, class: "hform"], fn f -> %>