mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 15:02:14 +05:30
Compare commits
10 Commits
3ebd75b5dd
...
13cee4ec5d
Author | SHA1 | Date | |
---|---|---|---|
|
13cee4ec5d | ||
|
577058617f | ||
|
5e87b32530 | ||
|
270468e2eb | ||
|
a9600c8c7c | ||
|
e9e89a58f7 | ||
|
f8793c6d9f | ||
|
824206612d | ||
|
6044c66407 | ||
|
c6409c77a4 |
1261
assets/404_tv_box_dark_theme.svg
Normal file
1261
assets/404_tv_box_dark_theme.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 38 KiB |
1261
assets/404_tv_box_light_theme.svg
Normal file
1261
assets/404_tv_box_light_theme.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 38 KiB |
@ -816,3 +816,9 @@ h1, h2, h3, h4, h5, p,
|
||||
#download_widget {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 404 TV Box */
|
||||
.error-page {
|
||||
width: 50%;
|
||||
height: auto;
|
||||
}
|
@ -74,6 +74,8 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
|
||||
# Don't show the usual "next steps" widget. The same options are
|
||||
# proposed above the error message, just worded differently.
|
||||
next_steps = ""
|
||||
unfound_tv_box_dark_theme = File.read("assets/404_tv_box_dark_theme.svg")
|
||||
unfound_tv_box_light_theme = File.read("assets/404_tv_box_light_theme.svg")
|
||||
|
||||
return templated "error"
|
||||
end
|
||||
@ -85,6 +87,8 @@ 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")
|
||||
unfound_tv_box_light_theme = File.read("assets/404_tv_box_light_theme.svg")
|
||||
next_steps = error_redirect_helper(env)
|
||||
|
||||
return templated "error"
|
||||
|
@ -1,8 +1,23 @@
|
||||
<%
|
||||
dark_mode = env.get("preferences").as(Preferences).dark_mode
|
||||
%>
|
||||
|
||||
<% content_for "header" do %>
|
||||
<title><%= "Error" %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<div class="h-box">
|
||||
<div style="display: flex; flex-direction: column; align-items: center;">
|
||||
<%= error_message %>
|
||||
<% if dark_mode == "dark" %>
|
||||
<div style="width: 100px; height: auto;">
|
||||
<img src="/404_tv_box_dark_theme.svg" alt="SVG Image" style="width: 100px; height: auto;">
|
||||
</div>
|
||||
<% else %>
|
||||
<div style="width: 100px; height: auto;">
|
||||
<img src="/404_tv_box_light_theme.svg" alt="SVG Image" style="width: 100px; height: auto;">
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<%= next_steps %>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user