forked from midou/invidious
56ebef4352
Fixes: * Sanitize user-provided content in HTML (Fixes #2193) * Fix encoding of search query in prev/next pages (Fixes #2229) * Fix some issues introduced with #2196: - Fix alignment of all <h3> elements (Move the inline style from the parent to the <h3> element) - Add missing comma on 'dir' HTML attribute (Typo introduced by PR #2196) Code cleaning: * Remove unnecessary 'each_sclice' + 'each' double loop in ECR files * Clean the player's <source> list generation code (in player.ecr)
19 lines
491 B
Plaintext
19 lines
491 B
Plaintext
<% content_for "header" do %>
|
|
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
|
|
<title>
|
|
<% if env.get("preferences").as(Preferences).default_home != "Popular" %>
|
|
<%= translate(locale, "Popular") %> - Invidious
|
|
<% else %>
|
|
Invidious
|
|
<% end %>
|
|
</title>
|
|
<% end %>
|
|
|
|
<%= rendered "components/feed_menu" %>
|
|
|
|
<div class="pure-g">
|
|
<% popular_videos.each do |item| %>
|
|
<%= rendered "components/item" %>
|
|
<% end %>
|
|
</div>
|