Fix duplicate error reason display on watch page

- Keep error message only in player container placeholder (like YouTube does)
- Show only error_redirect_helper links below the title, no duplicate text
- Fixes visual duplication reported during review
This commit is contained in:
Emilien 2026-06-26 17:04:35 +02:00
parent 842b12a551
commit 537c7a86ce

View File

@ -108,12 +108,6 @@ we're going to need to do it here in order to allow for translations.
<% end %>
<% if video.reason %>
<h3>
<%= I18n.translate(locale, "error_from_youtube_unplayable") %> <%= video.reason %>
</h3>
<% if video.subreason %>
<p><%= video.subreason %></p>
<% end %>
<%= error_redirect_helper(env) %>
<% elsif video.premiere_timestamp.try &.> Time.utc %>
<h3>