mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-05 00:57:59 +01:00
75 lines
2.4 KiB
Text
75 lines
2.4 KiB
Text
h2 The Do-Not-Post (DNP) List
|
|
|
|
/ Information block
|
|
h3 Information
|
|
.block
|
|
.block__header
|
|
span.block__header__title About
|
|
.block__content
|
|
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.
|
|
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
|
|
|
|
.block
|
|
.block__header
|
|
span.block__header__title Manage My Listings
|
|
.block__content
|
|
= cond do
|
|
- not is_nil(@current_user) and Enum.any?(@linked_tags) ->
|
|
= link "Create an entry", to: ~p"/dnp/new"
|
|
br
|
|
= link "My Listings", to: ~p"/dnp?#{[mine: "1"]}"
|
|
|
|
- not is_nil(@current_user) ->
|
|
' You must have a verified artist link to create and manage DNP entries.
|
|
= link "Request an artist link", to: ~p"/profiles/#{@current_user}/artist_links/new"
|
|
| .
|
|
|
|
- true ->
|
|
' You must be logged in and have a verified artist link to create and manage DNP entries.
|
|
|
|
|
|
h3 The List
|
|
.block
|
|
- route = fn p -> ~p"/dnp?#{p}" end
|
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @dnp_entries, route: route, conn: @conn
|
|
|
|
.block__header.page__header
|
|
span.block__header__title.page__title The DNP List
|
|
.page__pagination = pagination
|
|
|
|
.block__content
|
|
table.table
|
|
thead
|
|
tr
|
|
th Tag
|
|
th Restriction
|
|
th Conditions
|
|
= if @status_column do
|
|
th Status
|
|
th Created
|
|
th Options
|
|
tbody
|
|
= for {body, entry} <- @dnp_entries do
|
|
tr
|
|
td
|
|
= render PhilomenaWeb.TagView, "_tag.html", tag: entry.tag, conn: @conn
|
|
|
|
td
|
|
= entry.dnp_type
|
|
|
|
td
|
|
= body
|
|
|
|
= if @status_column do
|
|
td
|
|
= pretty_state(entry)
|
|
|
|
td
|
|
= pretty_time(entry.created_at)
|
|
|
|
td
|
|
= link "More Info", to: ~p"/dnp/#{entry}"
|
|
|
|
.block__header.page__header
|
|
.page__pagination = pagination
|