* [WIP] updated the output of VideoCollection to include playlists * Updated source's name to collection_name; supported playlist ID/name fetching * Hooked up collection_type to form; refactored enqueue_pending_media_downloads * Added friendly_name to form * Added media profile link to source view * Updates comment
26 lines
677 B
Text
26 lines
677 B
Text
<.header>
|
|
Source <%= @source.id %>
|
|
<:subtitle>This is a source record from your database.</:subtitle>
|
|
<:actions>
|
|
<.link href={~p"/media_sources/sources/#{@source}/edit"}>
|
|
<.button>Edit source</.button>
|
|
</.link>
|
|
</:actions>
|
|
</.header>
|
|
|
|
<.list>
|
|
<:item title="media_profile">
|
|
<.link href={~p"/media_profiles/#{@source.media_profile}"}>
|
|
<%= @source.media_profile.name %>
|
|
</.link>
|
|
</:item>
|
|
|
|
<:item
|
|
:for={attr <- ~w(collection_type collection_name collection_id original_url friendly_name)a}
|
|
title={attr}
|
|
>
|
|
<%= Map.get(@source, attr) %>
|
|
</:item>
|
|
</.list>
|
|
|
|
<.back navigate={~p"/media_sources/sources"}>Back to sources</.back>
|