mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add /feed/top and /feed/popular
This commit is contained in:
parent
2ea580e18e
commit
19bf0ccbf0
3 changed files with 22 additions and 0 deletions
|
@ -1669,6 +1669,14 @@ end
|
|||
|
||||
# Feeds
|
||||
|
||||
get "/feed/top" do |env|
|
||||
templated "top"
|
||||
end
|
||||
|
||||
get "/feed/popular" do |env|
|
||||
templated "popular"
|
||||
end
|
||||
|
||||
get "/feed/trending" do |env|
|
||||
trending_type = env.params.query["type"]?
|
||||
region = env.params.query["region"]?
|
||||
|
|
7
src/invidious/views/popular.ecr
Normal file
7
src/invidious/views/popular.ecr
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="pure-g">
|
||||
<% popular_videos.each_slice(4) do |slice| %>
|
||||
<% slice.each do |item| %>
|
||||
<%= rendered "components/item" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
7
src/invidious/views/top.ecr
Normal file
7
src/invidious/views/top.ecr
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="pure-g">
|
||||
<% top_videos.each_slice(4) do |slice| %>
|
||||
<% slice.each do |item| %>
|
||||
<%= rendered "components/item" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
Loading…
Reference in a new issue