From 6044c6640707399393dcbec2867707786014b585 Mon Sep 17 00:00:00 2001 From: broquemonsieur Date: Sat, 10 Aug 2024 18:37:10 -0700 Subject: [PATCH] Set up for theme toggling --- src/invidious/helpers/errors.cr | 1 + src/invidious/views/error.ecr | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index acabb1f2..dc24b173 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -85,6 +85,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, mess locale = env.get("preferences").as(Preferences).locale + error_message = translate(locale, message) unfound_tv_box_dark_theme = File.read("assets/404_tv_box_dark_theme.svg") next_steps = error_redirect_helper(env) diff --git a/src/invidious/views/error.ecr b/src/invidious/views/error.ecr index 80305be0..6cf33f26 100644 --- a/src/invidious/views/error.ecr +++ b/src/invidious/views/error.ecr @@ -3,6 +3,9 @@ <% end %>
+ + <%= error_message %> + <%= unfound_tv_box_dark_theme %> <%= next_steps %>