diff --git a/app/Views/_assets/admin.ts b/app/Views/_assets/admin.ts index d05abf00..1c54fec2 100644 --- a/app/Views/_assets/admin.ts +++ b/app/Views/_assets/admin.ts @@ -5,6 +5,7 @@ import MarkdownEditor from "./modules/MarkdownEditor"; import MultiSelect from "./modules/MultiSelect"; import SidebarToggler from "./modules/SidebarToggler"; import Slugify from "./modules/Slugify"; +import Soundbites from "./modules/Soundbites"; import Time from "./modules/Time"; import Tooltip from "./modules/Tooltip"; @@ -17,3 +18,4 @@ SidebarToggler(); ClientTimezone(); DateTimePicker(); Time(); +Soundbites(); diff --git a/app/Views/_assets/soundbites.ts b/app/Views/_assets/soundbites.ts deleted file mode 100644 index fa8b6be1..00000000 --- a/app/Views/_assets/soundbites.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Soundbites from "./modules/Soundbites"; - -Soundbites(); diff --git a/app/Views/admin/_layout.php b/app/Views/admin/_layout.php index 3f1289cc..6a8d1706 100644 --- a/app/Views/admin/_layout.php +++ b/app/Views/admin/_layout.php @@ -10,7 +10,6 @@ - diff --git a/app/Views/episode.php b/app/Views/episode.php index 08a6ae11..2fbcf29a 100644 --- a/app/Views/episode.php +++ b/app/Views/episode.php @@ -15,7 +15,6 @@ - @@ -106,54 +105,7 @@ Your browser does not support the audio tag. - - - soundbites) > 0): ?> -
- lang('Episode.soundbites'), - 'cell' => function ($soundbite) { - return icon_button( - 'play', - lang('Episode.soundbites_form.play'), - null, - ['variant' => 'primary'], - [ - 'class' => 'mb-1 mr-1', - 'data-type' => 'play-soundbite', - 'data-soundbite-start-time' => - $soundbite->start_time, - 'data-soundbite-duration' => $soundbite->duration, - ] - ); - }, - ], - [ - 'header' => lang('Episode.soundbites_form.start_time'), - 'cell' => function ($soundbite) { - return format_duration($soundbite->start_time); - }, - ], - [ - 'header' => lang('Episode.soundbites_form.duration'), - 'cell' => function ($soundbite) { - return format_duration($soundbite->duration); - }, - ], - [ - 'header' => lang('Episode.soundbites_form.label'), - 'cell' => function ($soundbite) { - return $soundbite->label; - }, - ], - ], - $episode->soundbites - ) ?> -
- - +
description_html ?>