* [Unrelated] updated module name for existing liveview module * Updated toggle component and moved MP index table to a liveview * [WIP] reverted MP index table; added source count to MP index * Moved new live table to sources index * Added 'enabled' boolean to sources * Got 'enabled' logic working re: downloading pending media * Updated sources context to do the right thing when a source is updated * Docs and tests * Updated slow indexing to maintain its old schedule if re-enabled * Hooked up the enabled toggle to the sources page * [Unrelated] added direct links to various tabs on the sources table * More tests * Removed unneeded guard in * Removed outdated comment
18 lines
692 B
Text
18 lines
692 B
Text
<div class="mb-6 flex gap-3 flex-row items-center justify-between">
|
|
<h2 class="text-title-md2 font-bold text-black dark:text-white">Sources</h2>
|
|
<nav>
|
|
<.link href={~p"/sources/new"}>
|
|
<.button color="bg-primary" rounding="rounded-lg">
|
|
<span class="font-bold mx-2">+</span> New <span class="hidden sm:inline pl-1">Source</span>
|
|
</.button>
|
|
</.link>
|
|
</nav>
|
|
</div>
|
|
|
|
<div class="rounded-sm border border-stroke bg-white shadow-default dark:border-strokedark dark:bg-boxdark">
|
|
<div class="max-w-full overflow-x-auto">
|
|
<div class="flex flex-col gap-10 min-w-max">
|
|
<%= live_render(@conn, PinchflatWeb.Sources.IndexTableLive) %>
|
|
</div>
|
|
</div>
|
|
</div>
|