Add 'Show as Playlist' to Channel Page [Try 2]

This commit is contained in:
DCCXX 2022-11-19 22:13:16 +01:00 committed by GitHub
parent 516efd2df3
commit 4d3a9f9da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,13 @@
<a href="https://redirect.invidious.io<%= env.request.path %>"><%= translate(locale, "Switch Invidious Instance") %></a>
<% end %>
</div>
<div class="pure-u-1 pure-md-1-3">
<% if channel.auto_generated %>
<b><%= translate(locale, "View as Playlist") %></b>
<% else %>
<a href="/playlist?list=<%= ucid %>"><%= translate(locale, "View as Playlist") %></a>
<% end %>
</div>
<% if !channel.auto_generated %>
<div class="pure-u-1 pure-md-1-3">
<b><%= translate(locale, "Videos") %></b>