2019-11-29 22:47:41 +01:00
h2 The Do-Not-Post (DNP) List
/ Information block
h3 Information
.block
.block__header
2023-11-23 17:07:49 +01:00
span About
2019-11-29 22:47:41 +01:00
.block__content
2021-09-09 22:59:55 +02:00
p This is a list of artists who have asked us to place a restriction on the uploading of their artwork. These restrictions can include anything from requesting that no edits of their work be allowed, to requesting that no uploads be allowed unless uploaded by the artists themselves.
2019-11-29 22:47:41 +01:00
p We ask that you please respect the wishes of artists in regards to their artworks, and check the list before uploading. Note that just because an artist is not listed may not mean that their artwork is ok to post, especially if they have a note at their "source" that they do not wish for their artwork to be reposted.
br
2019-12-31 05:03:44 +01:00
.block
.block__header
2023-11-23 17:07:49 +01:00
span Manage My Listings
2019-12-31 05:03:44 +01:00
.block__content
= cond do
- not is_nil(@current_user) and Enum.any?(@linked_tags) ->
2024-06-06 22:28:35 +02:00
= link "Create an entry", to: ~p"/dnp/new"
2019-12-31 05:03:44 +01:00
br
2024-06-06 22:28:35 +02:00
= link "My Listings", to: ~p"/dnp?#{[mine: "1"]}"
2019-12-31 05:03:44 +01:00
- not is_nil(@current_user) ->
2020-11-24 22:23:35 +01:00
' You must have a verified artist link to create and manage DNP entries.
2024-06-06 22:28:35 +02:00
= link "Request an artist link", to: ~p"/profiles/#{@current_user}/artist_links/new"
2019-12-31 05:03:44 +01:00
| .
- true ->
2020-11-24 22:23:35 +01:00
' You must be logged in and have a verified artist link to create and manage DNP entries.
2019-12-31 05:03:44 +01:00
2019-11-29 22:47:41 +01:00
h3 The List
.block
2024-06-06 22:28:35 +02:00
- route = fn p -> ~p"/dnp?#{p}" end
2019-11-29 22:47:41 +01:00
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @dnp_entries, route: route, conn: @conn
2020-12-11 17:53:40 +01:00
.block__header.page__header
2023-11-23 17:07:49 +01:00
span.page__title The DNP List
2020-12-11 17:53:40 +01:00
.page__pagination = pagination
2019-11-29 22:47:41 +01:00
.block__content
table.table
thead
tr
th Tag
th Restriction
th Conditions
2019-12-12 22:44:50 +01:00
= if @status_column do
th Status
th Created
2019-11-29 22:47:41 +01:00
th Options
tbody
= for {body, entry} <- @dnp_entries do
tr
td
= render PhilomenaWeb.TagView, "_tag.html", tag: entry.tag, conn: @conn
2019-12-12 22:44:50 +01:00
2019-11-29 22:47:41 +01:00
td
= entry.dnp_type
2019-12-12 22:44:50 +01:00
2019-11-29 22:47:41 +01:00
td
2024-05-04 05:15:14 +02:00
= body
2019-12-12 22:44:50 +01:00
= if @status_column do
td
= pretty_state(entry)
td
= pretty_time(entry.created_at)
2019-11-29 22:47:41 +01:00
td
2024-06-06 22:28:35 +02:00
= link "More Info", to: ~p"/dnp/#{entry}"
2019-11-29 22:47:41 +01:00
2020-12-11 17:53:40 +01:00
.block__header.page__header
.page__pagination = pagination