1
0
mirror of https://passt.top/passt synced 2024-07-01 23:42:41 +00:00

test/lib/video: Fill in href attributes of video shortcuts

...so that they can be indexed.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-03-15 03:43:39 +01:00
parent e5eefe7743
commit 700ce1f875

View File

@ -141,7 +141,7 @@ video_time_now() {
video_link() {
[ ${VIDEO_LINKS_COUNT} -eq 0 ] && __sep="" || __sep=" |"
__id="video_link_${VIDEO_LINKS_COUNT}"
video_append_links "${__sep} <a id=\"${__id}\">${1}</a>"
video_append_links "${__sep} <a id=\"${__id}\" href=\"${1}\">${1}</a>"
video_append_links_js "[ '${__id}', $(($(video_time_now) - 1)) ],"
VIDEO_LINKS_COUNT=$((VIDEO_LINKS_COUNT + 1))