1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-14 04:17:29 +00:00

Add quality label on video page, move main element

This commit is contained in:
Cadence Ember 2021-12-16 12:16:03 +13:00
parent 5a5901db7d
commit 0dfa8ca2b6
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -20,11 +20,11 @@ block content
script(type="module" src=getStaticURL("html", "/static/js/continuous.js"))
noscript
meta(http-equiv="refresh" content=`${video.lengthSeconds+5};url=/watch?v=${first.videoId}&continuous=1&session-watched=${sessionWatchedNext}`)
main.video-page(class={
.video-page(class={
"video-page--recommended-below": settings.recommended_mode === 1,
"video-page--recommended-hidden": settings.recommended_mode === 2
})
.main-video-section
main.main-video-section
.video-container
- const format = formats[0]
if format
@ -69,7 +69,7 @@ block content
.button-container
+subscribe_button(video.authorId, subscribed, `/watch?v=${video.videoId}`).border-look
//- button.border-look#theatre Theatre
select(autocomplete="off").border-look#quality-select
select(aria-label="Quality" autocomplete="off").border-look#quality-select
each f in formats
option(value=f.itag)= f.cloudtube__label
//-