Merge pull request #1551 from saltycrys/add-embed-link

Add embed link to watch page
This commit is contained in:
TheFrenchGhosty
2020-12-08 21:30:13 +00:00
committed by GitHub
4 changed files with 22 additions and 8 deletions

View File

@@ -88,7 +88,11 @@
<div class="h-box">
<span id="watch-on-youtube">
<a href="https://www.youtube.com/watch?v=<%= video.id %>"><%= translate(locale, "Watch on YouTube") %></a>
(<a href="https://www.youtube.com/embed/<%= video.id %>"><%= translate(locale, "Embed") %></a>)
</span>
<p id="embed-link">
<a href="<%= embed_link %>"><%= translate(locale, "Embed Link") %></a>
</p>
<p id="annotations">
<% if params.annotations %>
<a href="/watch?<%= env.params.query %>&iv_load_policy=3">