From 842473dd37ed9059ffd74c3983bfdbaf75f652d4 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 20 Jan 2025 23:52:40 -0300 Subject: [PATCH] feat(errors): add embed link on error pages Closes https://git.nadeko.net/Fijxu/invidious/issues/73 --- src/invidious/helpers/errors.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index b7643194..317e04ed 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -180,6 +180,7 @@ def error_redirect_helper(env : HTTP::Server::Context) next_steps_text = translate(locale, "next_steps_error_message") refresh = translate(locale, "next_steps_error_message_refresh") go_to_youtube = translate(locale, "next_steps_error_message_go_to_youtube") + go_to_youtube_embed = translate(locale, "videoinfo_youTube_embed_link") switch_instance = translate(locale, "Switch Invidious Instance") return <<-END_HTML @@ -193,6 +194,7 @@ def error_redirect_helper(env : HTTP::Server::Context)
  • #{go_to_youtube} + (#{go_to_youtube_embed})
  • END_HTML