mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
21 lines
1 KiB
Text
21 lines
1 KiB
Text
span.image_uploader
|
|
' by
|
|
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @image, awards: true, conn: @conn
|
|
|
|
= if can?(@conn, :show, :ip_address) and not hide_staff_tools?(@conn) do
|
|
=> link_to_ip(@conn, @image.ip)
|
|
=> link_to_fingerprint(@conn, @image.fingerprint)
|
|
a#edit-uploader href="#" data-click-hide=".image_uploader" data-click-show="#uploader-form"
|
|
i.fas.fa-edit
|
|
|
|
= if can?(@conn, :show, :ip_address) do
|
|
= form_for @changeset, Routes.image_uploader_path(@conn, :update, @image), [class: "block__content hidden", id: "uploader-form", data: [remote: "true", method: "put"]], fn f ->
|
|
=> label f, :username, "Uploader"
|
|
=> text_input f, :username, value: username(@image.user), class: "input input--short input--small"
|
|
|
|
=> label f, :anonymous
|
|
= checkbox f, :anonymous, class: "checkbox"
|
|
|
|
= submit "Save Changes", class: "button button--small", data: [disable_with: raw("Saving…")]
|
|
|
|
div Changes IP to '127.0.0.1' and FP to 'ffff'. Empty for anonymous.
|