Merge pull request #1927 from syeopite/add-link-to-yt

Add "Watch on Youtube" button next to audio mode Icon.
This commit is contained in:
TheFrenchGhosty 2021-03-26 17:23:00 +00:00 committed by GitHub
commit 533c6cefee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,10 @@
<b style="flex: 1;">
<a style="width:100%" href="/channel/<%= item.ucid %>"><%= item.author %></a>
</b>
<a title="Audio mode" href="/watch?v=<%= item.id %>&amp;listen=1">
<a title="<%=translate(locale, "Watch on YouTube")%>" href="https://www.youtube.com/watch?v=<%= item.id %>" style="margin-right: 5px;">
<i class="icon ion-logo-youtube"></i>
</a>
<a title="<%=translate(locale, "Audio mode")%>" href="/watch?v=<%= item.id %>&amp;listen=1">
<i class="icon ion-md-headset"></i>
</a>
</p>