mirror of
https://github.com/algora-io/tv.git
synced 2024-11-26 01:00:20 +02:00
add links to timestamps
This commit is contained in:
parent
01ba80b8ae
commit
795e92289f
@ -221,9 +221,14 @@ defmodule AlgoraWeb.VideoLive do
|
||||
)
|
||||
]}>
|
||||
<div :for={subtitle <- @subtitles} id={"subtitle-#{subtitle.id}"} class="px-4">
|
||||
<span class="font-semibold text-indigo-400">
|
||||
<.link
|
||||
class="font-semibold text-indigo-400"
|
||||
navigate={
|
||||
~p"/#{@video.channel_handle}/#{@video.id}?t=#{trunc(subtitle.start)}"
|
||||
}
|
||||
>
|
||||
<%= Library.to_hhmmss(subtitle.start) %>
|
||||
</span>
|
||||
</.link>
|
||||
<span class="font-medium text-gray-100">
|
||||
<%= subtitle.body %>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user