article.block.communication = if not @message.approved and (can?(@conn, :approve, @message) or @message.from_id == @conn.assigns.current_user.id) do .block__content .block.block--fixed.block--danger p i.fas.fa-exclamation-triangle> ' This private message is pending approval from a staff member. = if can?(@conn, :approve, @message) do p ul.horizontal-list li = link(to: ~p"/conversations/#{@message.conversation_id}/messages/#{@message}/approve", data: [confirm: "Are you sure?"], method: "post", class: "button") do i.fas.fa-check> ' Approve .block__content.flex.flex--no-wrap = render PhilomenaWeb.CommunicationView, "_body.html", object: %{user: @message.from, created_at: @message.created_at}, noanon: true, body: @body, conn: @conn, name: "message"