mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Implement video filters
This commit is contained in:
parent
aa953dc796
commit
db7ccabb3b
19 changed files with 790 additions and 9 deletions
|
|
@ -8,6 +8,15 @@ mixin video_list_item(className, video, instanceOrigin, options = {})
|
|||
img(src=`/vi/${video.videoId}/mqdefault.jpg` width=320 height=180 alt="").image
|
||||
if video.second__lengthText != undefined
|
||||
span.duration= video.second__lengthText
|
||||
details.thumbnail__more
|
||||
summary.thumbnail__show-more ×
|
||||
.thumbnail__options-container
|
||||
.thumbnail__options-list
|
||||
- const paramsBase = {}
|
||||
- if (url) paramsBase.referrer = url.pathname + (url.search && "?" + url.search)
|
||||
a(href=`/filters?${new URLSearchParams({"channel-id": video.authorId, label: video.author, ...paramsBase})}`).menu-look Hide this channel
|
||||
a(href=`/filters?${new URLSearchParams({title: video.title, ...paramsBase})}`).menu-look Hide by title
|
||||
a(href="/filters").menu-look Edit all filters
|
||||
.info
|
||||
div.title: a(href=link).title-link= video.title
|
||||
div.author-line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue