1
0
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:
zafer 2024-05-05 23:24:05 +03:00
parent 01ba80b8ae
commit 795e92289f

View File

@ -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>