mirror of
https://github.com/iv-org/invidious.git
synced 2026-07-07 06:06:48 -05:00
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:
parent
842b12a551
commit
537c7a86ce
@ -108,12 +108,6 @@ we're going to need to do it here in order to allow for translations.
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if video.reason %>
|
<% 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) %>
|
<%= error_redirect_helper(env) %>
|
||||||
<% elsif video.premiere_timestamp.try &.> Time.utc %>
|
<% elsif video.premiere_timestamp.try &.> Time.utc %>
|
||||||
<h3>
|
<h3>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user