mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Initial commit
This commit is contained in:
parent
90e94d4e6c
commit
c6409c77a4
3 changed files with 1265 additions and 3 deletions
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 |
|
@ -74,7 +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")
|
||||
|
||||
return templated "error"
|
||||
end
|
||||
|
||||
|
@ -84,7 +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)
|
||||
|
||||
return templated "error"
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
<% end %>
|
||||
|
||||
<div class="h-box">
|
||||
<%= error_message %>
|
||||
<%= unfound_tv_box_dark_theme %>
|
||||
<%= next_steps %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue