podcasts added

This commit is contained in:
Benjamin Takats
2022-12-06 18:17:05 +01:00
parent 9d3670eb21
commit 660c7da394
30 changed files with 910 additions and 24 deletions

View File

@@ -11,4 +11,10 @@
Download
</x-button>
@endif
@if($row->type === 'podcast_episode')
<x-button amber href="{{ $row->episode->data['enclosureUrl'] }}" target="_blank">
<i class="fa fa-thin fa-headphones mr-2"></i>
Anhören
</x-button>
@endif
</div>

View File

@@ -1,5 +1,5 @@
<div class="flex items-center">
<div class="flex flex-wrap items-center">
@foreach($row->tags as $tag)
<x-badge>{{ $tag->name }}</x-badge>
<x-badge class="whitespace-nowrap m-1">{{ $tag->name }}</x-badge>
@endforeach
</div>

View File

@@ -30,10 +30,10 @@
<nav class="-mb-px flex space-x-8">
@foreach($libraries as $library)
@php
$currentLibraryClass = $currentTab === $library->name ? 'border-amber-500 text-amber-600' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300';
$currentLibraryClass = $currentTab === $library['name'] ? 'border-amber-500 text-amber-600' : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300';
@endphp
<a href="{{ route(request()->route()->getName(), ['country' => $country, 'currentTab' => $library->name]) }}"
class="{{ $currentLibraryClass }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ $library->name }}</a>
<a href="{{ route(request()->route()->getName(), ['country' => $country, 'currentTab' => $library['name']]) }}"
class="{{ $currentLibraryClass }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ $library['name'] }}</a>
@endforeach
</nav>
</div>
@@ -42,6 +42,7 @@
<livewire:frontend.search-by-tag-in-library/>
<div class="my-12">
<livewire:tables.library-item-table :currentTab="$currentTab"/>
</div>
</div>