2018-11-21 02:18:12 +09:00
|
|
|
<% content_for "header" do %>
|
2019-02-09 01:34:32 +09:00
|
|
|
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
|
2019-05-02 10:03:39 +09:00
|
|
|
<title>
|
2019-10-21 09:42:18 +09:00
|
|
|
<% if env.get("preferences").as(Preferences).default_home != "Trending" %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<%= translate(locale, "Trending") %> - Invidious
|
|
|
|
<% else %>
|
|
|
|
Invidious
|
|
|
|
<% end %>
|
|
|
|
</title>
|
2018-11-21 02:18:12 +09:00
|
|
|
<% end %>
|
2019-02-09 01:34:32 +09:00
|
|
|
|
2019-02-25 02:51:33 +09:00
|
|
|
<%= rendered "components/feed_menu" %>
|
2018-11-21 02:18:12 +09:00
|
|
|
|
2018-12-21 07:48:45 +09:00
|
|
|
<div class="pure-g h-box">
|
2019-04-15 09:04:10 +09:00
|
|
|
<div style="align-self:flex-end" class="pure-u-2-3">
|
|
|
|
<% if plid %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<a href="/playlist?list=<%= plid %>">
|
|
|
|
<%= translate(locale, "View as playlist") %>
|
|
|
|
</a>
|
2019-04-15 09:04:10 +09:00
|
|
|
<% end %>
|
2018-12-21 07:48:45 +09:00
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3">
|
2019-05-02 10:03:39 +09:00
|
|
|
<div class="pure-g" style="text-align:right">
|
2021-03-28 17:25:04 +09:00
|
|
|
<% {"Default", "Music", "Gaming", "Movies"}.each do |option| %>
|
2018-12-21 07:48:45 +09:00
|
|
|
<div class="pure-u-1 pure-md-1-3">
|
|
|
|
<% if trending_type == option %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<b><%= translate(locale, option) %></b>
|
2018-12-21 07:48:45 +09:00
|
|
|
<% else %>
|
2019-05-02 10:03:39 +09:00
|
|
|
<a href="/feed/trending?type=<%= option %>®ion=<%= region %>">
|
|
|
|
<%= translate(locale, option) %>
|
|
|
|
</a>
|
2018-12-21 07:48:45 +09:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="h-box">
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
|
2018-11-21 02:18:12 +09:00
|
|
|
<div class="pure-g">
|
2021-07-16 06:01:36 +09:00
|
|
|
<% trending.each do |item| %>
|
|
|
|
<%= rendered "components/item" %>
|
|
|
|
<% end %>
|
2018-11-21 02:18:12 +09:00
|
|
|
</div>
|
2022-11-09 07:18:24 +09:00
|
|
|
|
2023-02-20 04:41:18 +09:00
|
|
|
<script src="/js/watched_indicator.js"></script>
|