Derive DNP types from reasons (#81)

* derive dnp types from reasons

* improve styling
This commit is contained in:
Nick 2020-04-07 00:52:14 -04:00 committed by GitHub
parent 306f4521e5
commit 7c1f5c5095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,15 +58,8 @@ defmodule Philomena.DnpEntries.DnpEntry do
do: changeset do: changeset
def types do def types do
[ reasons()
"No Edits", |> Enum.map(fn {title, _desc} -> title end)
"Artist Tag Change",
"Uploader Credit Change",
"Certain Type/Location Only",
"With Permission Only",
"Artist Upload Only",
"Other"
]
end end
def reasons do def reasons do