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

<%= @source.custom_name %>

<.tabbed_layout> <:tab_append> <.button_dropdown text="Actions" class="justify-center w-full sm:w-50"> <:option> copied = false, 4000) "} > Copy RSS Feed <.icon name="hero-check" class="ml-2 h-4 w-4" /> <:option>
<:option> <.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." > Delete Source <:option> <.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" > Delete Source + Files <:tab title="Attributes">

Attributes

Media Profile: <.inline_link href={~p"/media_profiles/#{@source.media_profile_id}"}> <%= @source.media_profile.name %>
<.list_items_from_map map={Map.from_struct(@source)} />
<:tab title="Pending Media"> <%= if match?([_|_], @pending_media) do %>

Shows a maximum of 100 media items

<.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"> <.icon_link href={~p"/sources/#{@source.id}/media/#{media_item.id}"} icon="hero-eye" /> <% else %>

Nothing Here!

<% end %> <:tab title="Downloaded Media"> <%= if match?([_|_], @downloaded_media) do %>

Shows a maximum of 100 media items (<%= @total_downloaded %> total)

<.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"> <.icon_link href={~p"/sources/#{@source.id}/media/#{media_item.id}"} icon="hero-eye" /> <% else %>

Nothing Here!

<% end %> <:tab title="Pending Tasks"> <%= if match?([_|_], @pending_tasks) do %> <.table rows={@pending_tasks} table_class="text-black dark:text-white"> <:col :let={task} label="Worker"> <%= task.job.worker %> <:col :let={task} label="State"> <%= task.job.state %> <:col :let={task} label="Scheduled At"> <%= Calendar.strftime(task.job.scheduled_at, "%y-%m-%d %I:%M:%S %p %Z") %> <% else %>

Nothing Here!

<% end %>