From 7c1f5c50957e5c72a11558f996f52a515773a913 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 7 Apr 2020 00:52:14 -0400 Subject: [PATCH] Derive DNP types from reasons (#81) * derive dnp types from reasons * improve styling --- lib/philomena/dnp_entries/dnp_entry.ex | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/philomena/dnp_entries/dnp_entry.ex b/lib/philomena/dnp_entries/dnp_entry.ex index 201fe73e..a178cdcf 100644 --- a/lib/philomena/dnp_entries/dnp_entry.ex +++ b/lib/philomena/dnp_entries/dnp_entry.ex @@ -58,15 +58,8 @@ defmodule Philomena.DnpEntries.DnpEntry do do: changeset def types do - [ - "No Edits", - "Artist Tag Change", - "Uploader Credit Change", - "Certain Type/Location Only", - "With Permission Only", - "Artist Upload Only", - "Other" - ] + reasons() + |> Enum.map(fn {title, _desc} -> title end) end def reasons do