summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-05-15 22:45:14 -0700
committersyeopite <syeopite@syeopite.dev>2021-06-19 04:17:49 -0700
commitd793d4ba78e331e17690940fcc1a53d65b09ee22 (patch)
tree5b72517bada5f7cd3e7c3e8e8410456a9bfaac7b /src
parent2f54ec4e18d20a0d3a36e8e192389819b57d8dc3 (diff)
downloadinvidious-d793d4ba78e331e17690940fcc1a53d65b09ee22.tar.gz
invidious-d793d4ba78e331e17690940fcc1a53d65b09ee22.tar.bz2
invidious-d793d4ba78e331e17690940fcc1a53d65b09ee22.zip
Add switch invidious instance btn to all chan tabs
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/community.ecr3
-rw-r--r--src/invidious/views/playlists.ecr5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecr
index 3c4eaabb..b0092e5f 100644
--- a/src/invidious/views/community.ecr
+++ b/src/invidious/views/community.ecr
@@ -40,6 +40,9 @@
<div class="pure-g h-box">
<div class="pure-u-1-3">
<a href="https://www.youtube.com/channel/<%= channel.ucid %>/community"><%= translate(locale, "View channel on YouTube") %></a>
+ <div class="pure-u-1 pure-md-1-3">
+ <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a>
+ </div>
<% if !channel.auto_generated %>
<div class="pure-u-1 pure-md-1-3">
<a href="/channel/<%= channel.ucid %>"><%= translate(locale, "Videos") %></a>
diff --git a/src/invidious/views/playlists.ecr b/src/invidious/views/playlists.ecr
index 44bdb94d..975ccd6c 100644
--- a/src/invidious/views/playlists.ecr
+++ b/src/invidious/views/playlists.ecr
@@ -42,6 +42,11 @@
<div class="pure-u-1 pure-md-1-3">
<a href="https://www.youtube.com/channel/<%= channel.ucid %>/playlists"><%= translate(locale, "View channel on YouTube") %></a>
</div>
+
+ <div class="pure-u-1 pure-md-1-3">
+ <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a>
+ </div>
+
<div class="pure-u-1 pure-md-1-3">
<a href="/channel/<%= channel.ucid %>"><%= translate(locale, "Videos") %></a>
</div>