mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-16 01:48:51 +00:00
HTML: Use the new pagination component for history/subscriptions
This commit is contained in:
@@ -102,6 +102,10 @@ module Invidious::Routes::Feeds
|
||||
end
|
||||
env.set "user", user
|
||||
|
||||
# Used for pagination links
|
||||
base_url = "/feed/subscriptions"
|
||||
base_url += "?max_results=#{max_results}" if env.params.query.has_key?("max_results")
|
||||
|
||||
templated "feeds/subscriptions"
|
||||
end
|
||||
|
||||
@@ -129,6 +133,10 @@ module Invidious::Routes::Feeds
|
||||
end
|
||||
watched ||= [] of String
|
||||
|
||||
# Used for pagination links
|
||||
base_url = "/feed/history"
|
||||
base_url += "?max_results=#{max_results}" if env.params.query.has_key?("max_results")
|
||||
|
||||
templated "feeds/history"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user