mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-10 15:30:31 -04:00
Move feed views into their own directory
This commit is contained in:
parent
6e92541d1a
commit
abca5c6829
6 changed files with 5 additions and 5 deletions
|
@ -25,14 +25,14 @@ module Invidious::Routes::Feeds
|
||||||
item
|
item
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "view_all_playlists"
|
templated "feeds/playlists"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.popular(env)
|
def self.popular(env)
|
||||||
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
locale = LOCALES[env.get("preferences").as(Preferences).locale]?
|
||||||
|
|
||||||
if CONFIG.popular_enabled
|
if CONFIG.popular_enabled
|
||||||
templated "popular"
|
templated "feeds/popular"
|
||||||
else
|
else
|
||||||
message = translate(locale, "The Popular feed has been disabled by the administrator.")
|
message = translate(locale, "The Popular feed has been disabled by the administrator.")
|
||||||
templated "message"
|
templated "message"
|
||||||
|
@ -54,7 +54,7 @@ module Invidious::Routes::Feeds
|
||||||
return error_template(500, ex)
|
return error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "trending"
|
templated "feeds/trending"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.subscriptions(env)
|
def self.subscriptions(env)
|
||||||
|
@ -102,7 +102,7 @@ module Invidious::Routes::Feeds
|
||||||
user.notifications = [] of String
|
user.notifications = [] of String
|
||||||
env.set "user", user
|
env.set "user", user
|
||||||
|
|
||||||
templated "subscriptions"
|
templated "feeds/subscriptions"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.history(env)
|
def self.history(env)
|
||||||
|
@ -129,7 +129,7 @@ module Invidious::Routes::Feeds
|
||||||
end
|
end
|
||||||
watched ||= [] of String
|
watched ||= [] of String
|
||||||
|
|
||||||
templated "history"
|
templated "feeds/history"
|
||||||
end
|
end
|
||||||
|
|
||||||
# RSS feeds
|
# RSS feeds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue