feat(views): Add icon for embed youtube video on thumbnails
All checks were successful
Invidious CI / build (push) Successful in 5m35s
All checks were successful
Invidious CI / build (push) Successful in 5m35s
This commit is contained in:
parent
842473dd37
commit
d77db9f595
2 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,7 @@
|
|||
else
|
||||
link_url = "/watch?v=#{item.id}"
|
||||
endpoint_params = "?v=#{item.id}"
|
||||
embed_id = item.id
|
||||
end
|
||||
-%>
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<div class="flex-right flexible">
|
||||
<div class="icon-buttons">
|
||||
<a title="<%=translate(locale, "videoinfo_youTube_embed_link")%>" rel="noreferrer noopener" href="https://www.youtube.com/embed/<%=embed_id%>">
|
||||
<i class="icon ion-md-open"></i>
|
||||
</a>
|
||||
<a title="<%=translate(locale, "videoinfo_watch_on_youTube")%>" rel="noreferrer noopener" href="https://www.youtube.com/watch<%=endpoint_params%>">
|
||||
<i class="icon ion-logo-youtube"></i>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue