Add feed menu to popular, top, and trending

This commit is contained in:
Omar Roth 2019-02-08 10:34:32 -06:00
parent 9698988be3
commit 3cce74d364
3 changed files with 75 additions and 0 deletions

View file

@ -1,7 +1,32 @@
<% content_for "header" do %> <% content_for "header" do %>
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
<title><%= translate(locale, "Popular") %> - Invidious</title> <title><%= translate(locale, "Popular") %> - Invidious</title>
<% end %> <% end %>
<div class="h-box pure-g">
<div class="pure-u-1-4"></div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g">
<div class="pure-u-1-3">
<a href="/feed/popular" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Popular") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/top" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Top") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/trending" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Trending") %>
</a>
</div>
</div>
</div>
<div class="pure-u-1-4"></div>
</div>
<div class="pure-g"> <div class="pure-g">
<% popular_videos.each_slice(4) do |slice| %> <% popular_videos.each_slice(4) do |slice| %>
<% slice.each do |item| %> <% slice.each do |item| %>

View file

@ -1,7 +1,32 @@
<% content_for "header" do %> <% content_for "header" do %>
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
<title><%= translate(locale, "Top") %> - Invidious</title> <title><%= translate(locale, "Top") %> - Invidious</title>
<% end %> <% end %>
<div class="h-box pure-g">
<div class="pure-u-1-4"></div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g">
<div class="pure-u-1-3">
<a href="/feed/popular" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Popular") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/top" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Top") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/trending" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Trending") %>
</a>
</div>
</div>
</div>
<div class="pure-u-1-4"></div>
</div>
<div class="pure-g"> <div class="pure-g">
<% top_videos.each_slice(4) do |slice| %> <% top_videos.each_slice(4) do |slice| %>
<% slice.each do |item| %> <% slice.each do |item| %>

View file

@ -1,7 +1,32 @@
<% content_for "header" do %> <% content_for "header" do %>
<meta name="description" content="<%= translate(locale, "An alternative front-end to YouTube") %>">
<title><%= translate(locale, "Trending") %> - Invidious</title> <title><%= translate(locale, "Trending") %> - Invidious</title>
<% end %> <% end %>
<div class="h-box pure-g">
<div class="pure-u-1-4"></div>
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g">
<div class="pure-u-1-3">
<a href="/feed/popular" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Popular") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/top" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Top") %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/feed/trending" style="text-align:center;" class="pure-menu-heading">
<%= translate(locale, "Trending") %>
</a>
</div>
</div>
</div>
<div class="pure-u-1-4"></div>
</div>
<div class="pure-g h-box"> <div class="pure-g h-box">
<div class="pure-u-2-3"> <div class="pure-u-2-3">
<form class="pure-form pure-form-aligned" action="/feed/trending" method="get"> <form class="pure-form pure-form-aligned" action="/feed/trending" method="get">