<.link navigate={~p"/sources"}> <.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" />

Source #<%= @source.id %>

Relationships

<.list> <:item title="media_profile"> <.link navigate={~p"/media_profiles/#{@source.media_profile_id}"} class="hover:text-secondary duration-200 ease-in-out" > <%= @source.media_profile.name %>

Attributes

<.list_items_from_map map={Map.from_struct(@source)} />

Downloaded Media

<%= if match?([_|_], @downloaded_media) do %> <.table rows={@downloaded_media} table_class="text-black dark:text-white"> <:col :let={media_item} label="Title"> <%= StringUtils.truncate(media_item.title, 50) %> <:col :let={media_item} label="" class="flex place-content-evenly"> <.link navigate={~p"/sources/#{@source.id}/media/#{media_item.id}"} class="hover:text-secondary duration-200 ease-in-out mx-0.5" > <.icon name="hero-eye" /> <% else %>

Nothing Here!

<% end %>

Pending Media

<%= if match?([_|_], @pending_media) do %> <.table rows={@pending_media} table_class="text-black dark:text-white"> <:col :let={media_item} label="Title"> <%= StringUtils.truncate(media_item.title, 50) %> <:col :let={media_item} label="" class="flex place-content-evenly"> <.link navigate={~p"/sources/#{@source.id}/media/#{media_item.id}"} class="hover:text-secondary duration-200 ease-in-out mx-0.5" > <.icon name="hero-eye" /> <% else %>

Nothing Here!

<% end %>
<.link href={~p"/sources/#{@source}"} method="delete" data-confirm="Are you sure you want to delete this source (leaving files in place)? This cannot be undone." > <.button color="bg-meta-1" rounding="rounded-full"> Delete Source <.link href={~p"/sources/#{@source}?delete_files=true"} method="delete" data-confirm="Are you sure you want to delete this source and it's files on disk? This cannot be undone." class="mt-5 md:mt-0" > <.button color="bg-meta-1" rounding="rounded-full"> Delete Source and Files