summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-03-26 18:43:56 -0700
committersyeopite <syeopite@syeopite.dev>2021-06-19 04:16:17 -0700
commitf3bc55e37e6fe38ce202a7afa10efd748e6b7b15 (patch)
treeabc5e449a5d29c2dc967d725728425a227609244
parent31fa3dfd590b00e5c994103f0b2fb1f1969d9b9d (diff)
downloadinvidious-f3bc55e37e6fe38ce202a7afa10efd748e6b7b15.tar.gz
invidious-f3bc55e37e6fe38ce202a7afa10efd748e6b7b15.tar.bz2
invidious-f3bc55e37e6fe38ce202a7afa10efd748e6b7b15.zip
Expose instance redirect to frontend
-rw-r--r--src/invidious/views/watch.ecr3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index baffa08b..67c116fb 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -109,6 +109,9 @@ we're going to need to do it here in order to allow for translations.
<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="watch-on-another-invidious-instance">
+ <a href="/redirect?id=<%= video.id %>"><%= translate(locale, "Watch on another Invidious Instance") %></a>
+ </p>
<p id="embed-link">
<a href="<%= embed_link %>"><%= translate(locale, "Embed Link") %></a>
</p>