% ucid = video.ucid %> <% title = HTML.escape(video.title) %> <% author = HTML.escape(video.author) %> <% content_for "header" do %> "> <%= rendered "components/player_sources" %>
<% if env.get("preferences").as(Preferences).automatic_instance_redirect%> "><%= translate(locale, "Switch Invidious Instance") %> <% else %> <%= translate(locale, "Switch Invidious Instance") %> <% end %>
<%= translate(locale, "videoinfo_invidious_embed_link") %>
<% if params.annotations %> <%= translate(locale, "Hide annotations") %> <% else %> <%=translate(locale, "Show annotations")%> <% end %>
<% if user %> <% playlists = Invidious::Database::Playlists.select_user_created_playlists(user.email) %> <% if !playlists.empty? %> <% end %> <% end %> <%= Invidious::Frontend::WatchPage.download_widget(locale, video, video_assets) %><%= number_with_separator(video.views) %>
<%= number_with_separator(video.likes) %>
<%= translate(locale, "Genre: ") %> <% if !video.genre_url %> <%= video.genre %> <% else %> <%= video.genre %> <% end %>
<% if video.license %> <% if video.license.empty? %><%= translate(locale, "License: ") %><%= translate(locale, "Standard YouTube license") %>
<% else %><%= translate(locale, "License: ") %><%= video.license %>
<% end %> <% end %><%= translate(locale, "Family friendly? ") %><%= translate_bool(locale, video.is_family_friendly) %>
<% if video.allowed_regions.size != REGIONS.size %><% if video.allowed_regions.size < REGIONS.size // 2 %> <%= translate(locale, "Whitelisted regions: ") %><%= video.allowed_regions.join(", ") %> <% else %> <%= translate(locale, "Blacklisted regions: ") %><%= (REGIONS.to_a - video.allowed_regions).join(", ") %> <% end %>
<% end %>