philomena/lib/philomena_web/templates/dnp_entry/index.html.slime

76 lines
2.5 KiB
Text
Raw Normal View History

2019-11-29 22:47:41 +01:00
h2 The Do-Not-Post (DNP) List
/ Information block
h3 Information
.block
.block__header
span.block__header__title About
.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
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: Routes.dnp_entry_path(@conn, :new)
br
= link "My Listings", to: Routes.dnp_entry_path(@conn, :index, 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: Routes.profile_artist_link_path(@conn, :new, @current_user)
2019-12-31 05:03:44 +01:00
| .
- true ->
' 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
- route = fn p -> Routes.dnp_entry_path(@conn, :index, p) end
- 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
span.block__header__title.page__title The DNP List
.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
= 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
= link "More Info", to: Routes.dnp_entry_path(@conn, :show, entry)
2020-12-11 17:53:40 +01:00
.block__header.page__header
.page__pagination = pagination