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)) } %>