From c3f16be5c4b0b6e04f95af8ffcd4cc2f7b2e4be6 Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:51:13 +0200 Subject: [PATCH] Move error message and action links before video title Error reason, subreason, and 'After which you should try to' links now appear above the

title, making them the first thing users see when a video fails to play. --- src/invidious/views/embed.ecr | 14 +++++--------- src/invidious/views/watch.ecr | 23 ++++++++++------------- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index efaed016..6f793b1d 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -34,15 +34,11 @@ <% if video.reason.nil? %> <%= rendered "components/player" %> <% else %> -
-
-

- <%= I18n.translate(preferences.locale, "error_from_youtube_unplayable") %>
- <%= video.reason %> - <% if video.subreason %>
<%= video.subreason %><% end %> -

-
-
+

+ <%= I18n.translate(preferences.locale, "error_from_youtube_unplayable") %> + <%= video.reason %> + <% if video.subreason %>
<%= video.subreason %><% end %> +

<% end %> diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 07a3344b..2bdeb2e0 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -75,19 +75,18 @@ we're going to need to do it here in order to allow for translations.
<%= rendered "components/player" %>
-<% else %> -
-
-

- <%= I18n.translate(locale, "error_from_youtube_unplayable") %>
- <%= video.reason %> - <% if video.subreason %>
<%= video.subreason %><% end %> -

-
-
<% end %>
+ <% if video.reason %> +

+ <%= I18n.translate(locale, "error_from_youtube_unplayable") %> <%= video.reason %> +

+ <% if video.subreason %> +

<%= video.subreason %>

+ <% end %> + <%= error_redirect_helper(env) %> + <% end %>

<%= title %> <% if params.listen %> @@ -107,9 +106,7 @@ we're going to need to do it here in order to allow for translations.

<% end %> - <% if video.reason %> - <%= error_redirect_helper(env) %> - <% elsif video.premiere_timestamp.try &.> Time.utc %> + <% if video.premiere_timestamp.try &.> Time.utc %>

<%= video.premiere_timestamp.try { |t| I18n.translate(locale, "Premieres in `x`", recode_date((t - Time.utc).ago, locale)) } %>