2022-03-24 17:31:57 +01:00
|
|
|
.block
|
|
|
|
.block__header
|
2023-11-23 17:07:49 +01:00
|
|
|
.approval-grid
|
2022-03-24 17:31:57 +01:00
|
|
|
.approval-items--main
|
|
|
|
span ID
|
|
|
|
span Image
|
|
|
|
span Uploader
|
|
|
|
span Time
|
|
|
|
.approval-items--footer.hide-mobile
|
|
|
|
span.hide-mobile Actions
|
|
|
|
= for image <- @images do
|
|
|
|
.block__content.alternating-color
|
|
|
|
.approval-grid
|
|
|
|
.approval-items--main
|
2024-06-06 22:28:35 +02:00
|
|
|
span = link ">>#{image.id}", to: ~p"/images/#{image}"
|
2023-06-02 19:37:03 +02:00
|
|
|
.approval-items__details class=class_for_image(image)
|
|
|
|
span = image_thumb(@conn, image)
|
|
|
|
span = warning_text(image)
|
2022-03-24 17:31:57 +01:00
|
|
|
span
|
|
|
|
= if image.user do
|
2024-06-06 22:28:35 +02:00
|
|
|
= link image.user.name, to: ~p"/profiles/#{image.user}"
|
2022-03-24 17:31:57 +01:00
|
|
|
- else
|
|
|
|
em>
|
2024-06-06 22:28:35 +02:00
|
|
|
= truncated_ip_link(image.ip)
|
2022-03-24 17:31:57 +01:00
|
|
|
= link_to_fingerprint(@conn, image.fingerprint)
|
|
|
|
span = pretty_time(image.created_at)
|
|
|
|
.approval-items--footer
|
|
|
|
= if can?(@conn, :approve, image) do
|
2024-06-06 22:28:35 +02:00
|
|
|
= button_to "Approve", ~p"/images/#{image}/approve", method: "post", class: "button button--success"
|
2022-03-24 17:31:57 +01:00
|
|
|
= if can?(@conn, :hide, image) do
|
2024-06-06 22:28:35 +02:00
|
|
|
= form_for :image, ~p"/images/#{image}/delete", [method: "post"], fn f ->
|
2022-03-24 17:31:57 +01:00
|
|
|
.field.field--inline
|
|
|
|
= text_input f, :deletion_reason, class: "input input--wide", placeholder: "Rule violation", required: true
|
2024-04-28 18:51:40 +02:00
|
|
|
= submit "Delete", class: "button button--danger button--separate-left"
|