mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-05 00:57:59 +01:00
34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
.block
|
|
.block__header
|
|
.approval-grid
|
|
.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
|
|
span = link ">>#{image.id}", to: ~p"/images/#{image}"
|
|
.approval-items__details class=class_for_image(image)
|
|
span = image_thumb(@conn, image)
|
|
span = warning_text(image)
|
|
span
|
|
= if image.user do
|
|
= link image.user.name, to: ~p"/profiles/#{image.user}"
|
|
- else
|
|
em>
|
|
= truncated_ip_link(image.ip)
|
|
= link_to_fingerprint(@conn, image.fingerprint)
|
|
span = pretty_time(image.created_at)
|
|
.approval-items--footer
|
|
= if can?(@conn, :approve, image) do
|
|
= button_to "Approve", ~p"/images/#{image}/approve", method: "post", class: "button button--success"
|
|
= if can?(@conn, :hide, image) do
|
|
= form_for :image, ~p"/images/#{image}/delete", [method: "post"], fn f ->
|
|
.field.field--inline
|
|
= text_input f, :deletion_reason, class: "input input--wide", placeholder: "Rule violation", required: true
|
|
= submit "Delete", class: "button button--danger button--separate-left"
|