summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-05-27 14:54:50 -0500
committerOmar Roth <omarroth@protonmail.com>2019-05-27 14:54:50 -0500
commitfc346b4efd12651511fc419fd11e3aceb7478bbd (patch)
tree352d819d0005620a641c14f613b3b8571b74f4af /src
parentad09e734da9dc811d509cd9d9c7dc40f0fc44cbd (diff)
downloadinvidious-fc346b4efd12651511fc419fd11e3aceb7478bbd.tar.gz
invidious-fc346b4efd12651511fc419fd11e3aceb7478bbd.tar.bz2
invidious-fc346b4efd12651511fc419fd11e3aceb7478bbd.zip
Add 'View playlist on YouTube'
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/playlist.ecr16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/invidious/views/playlist.ecr b/src/invidious/views/playlist.ecr
index b43bd89c..f6921f9a 100644
--- a/src/invidious/views/playlist.ecr
+++ b/src/invidious/views/playlist.ecr
@@ -15,17 +15,27 @@
</div>
<div class="pure-g h-box">
- <div class="pure-u-1 pure-u-md-1-4">
- <a href="/channel/<%= playlist.ucid %>">
- <b><%= playlist.author %></b>
+ <div class="pure-u-1-3">
+ <a href="https://www.youtube.com/playlist?list=<%= playlist.id %>">
+ <%= translate(locale, "View playlist on YouTube") %>
</a>
+ <div class="pure-u-1 pure-md-1-3">
+ <a href="/channel/<%= playlist.ucid %>">
+ <b><%= playlist.author %></b>
+ </a>
+ </div>
</div>
+ <div class="pure-u-1-2"></div>
</div>
<div class="h-box">
<p><%= playlist.description_html %></p>
</div>
+<div class="h-box">
+ <hr>
+</div>
+
<div class="pure-g">
<% videos.each_slice(4) do |slice| %>
<% slice.each do |item| %>