This post is pending approval from a staff member.
<%= if can?(@conn, :approve, @post) do %>
-
<%= link(to: ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/approve", data: [confirm: "Are you sure?"], method: "post", class: "button") do %>
Approve
<% end %>
-
Reject
<%= form_for :post, ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/hide", [class: "togglable-delete-form hidden flex", id: "inline-reject-form-post-#{@post.id}"], fn f -> %>
<%= text_input(f, :deletion_reason, class: "input input--wide", placeholder: "Deletion Reason", id: "inline-reject-reason-post-#{@post.id}", required: true) %>
<%= submit("Delete", class: "button") %>
<% end %>
<% end %>
<% end %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @post, conn: @conn) %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @post, awards: true, conn: @conn) %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @post, conn: @conn) %>
<%= if @post.hidden_from_users do %>
<%= if can?(@conn, :hide, @post) do %>
<%= if @post.destroyed_content do %>
<% else %>
<%= @body %>
<% end %>
<% end %>
<% else %>
<%= @body %>
<% end %>
<%= render(PhilomenaWeb.PostView, "_post_options.html", conn: @conn, post: @post) %>
<%= if can?(@conn, :hide, @post) and not hide_staff_tools?(@conn) do %>
<%= cond do %>
<% @post.hidden_from_users and not @post.destroyed_content -> %>
<%= link(to: ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/hide", data: [confirm: "Are you sure?"], method: "delete", class: "communication__interaction") do %>
Restore
<%= if can?(@conn, :delete, @post) do %>
<%= link(to: ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/delete", data: [confirm: "Are you sure?"], method: "post", class: "communication__interaction") do %>
Delete Contents
<% end %>
<% end %>
<% end %>
<% not @post.hidden_from_users and not @post.destroyed_content -> %>
Delete
<% true -> %>
<% end %>
<%= if can?(@conn, :show, :ip_address) do %>
<%= link_to_ip(@conn, @post.ip) %>
<%= link_to_fingerprint(@conn, @post.fingerprint) %>
<% end %>
<%= form_for :post, ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/hide", [class: "togglable-delete-form hidden flex", id: "inline-del-form-post-#{@post.id}"], fn f -> %>
<%= text_input(f, :deletion_reason, class: "input input--wide", placeholder: "Deletion Reason", id: "inline-del-reason-post-#{@post.id}", required: true) %>
<%= submit("Delete", class: "button") %>
<% end %>
<% end %>