2019-12-04 23:56:13 +01:00
|
|
|
.block
|
|
|
|
.block__header
|
|
|
|
= @pagination
|
|
|
|
|
|
|
|
.block__content
|
|
|
|
table.table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th colspan=2 Image
|
2021-10-09 03:33:16 +02:00
|
|
|
th Source
|
|
|
|
th Action
|
2019-12-04 23:56:13 +01:00
|
|
|
th Timestamp
|
|
|
|
th User
|
|
|
|
|
|
|
|
tbody
|
|
|
|
= for source_change <- @source_changes do
|
|
|
|
tr
|
|
|
|
td.center
|
2024-04-29 02:55:27 +02:00
|
|
|
= link source_change.image_id, to: ~p"/images/#{source_change.image}"
|
2019-12-04 23:56:13 +01:00
|
|
|
td.center
|
|
|
|
= render PhilomenaWeb.ImageView, "_image_container.html", image: source_change.image, size: :thumb_tiny, conn: @conn
|
|
|
|
|
|
|
|
td
|
2021-10-09 03:33:16 +02:00
|
|
|
= source_change.source_url
|
|
|
|
|
|
|
|
= if source_change.added do
|
|
|
|
td.success Added
|
|
|
|
- else
|
|
|
|
td.danger Removed
|
|
|
|
|
2019-12-04 23:56:13 +01:00
|
|
|
td
|
|
|
|
= pretty_time(source_change.created_at)
|
|
|
|
|
2019-12-13 20:56:52 +01:00
|
|
|
td class=user_column_class(source_change)
|
2019-12-17 18:56:03 +01:00
|
|
|
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: source_change, conn: @conn
|
|
|
|
|
|
|
|
= if can?(@conn, :show, :ip_address) do
|
|
|
|
=> link_to_ip @conn, source_change.ip
|
|
|
|
=> link_to_fingerprint @conn,source_change.fingerprint
|
2019-12-04 23:56:13 +01:00
|
|
|
|
2019-12-13 20:56:52 +01:00
|
|
|
= if staff?(source_change) do
|
|
|
|
br
|
|
|
|
small
|
|
|
|
strong> Stop!
|
|
|
|
' This user is a staff member.
|
|
|
|
br
|
|
|
|
' Ask them before reverting their changes.
|
|
|
|
|
2019-12-04 23:56:13 +01:00
|
|
|
.block__header
|
2019-12-13 20:56:52 +01:00
|
|
|
= @pagination
|