mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-17 18:18:30 +00:00
Move channel views to separate directory
(cherry picked from commit f849cad4e2
)
This commit is contained in:
parent
7460528121
commit
3c9fac0bf4
@ -38,7 +38,7 @@ module Invidious::Routes::Channels
|
|||||||
count, items = get_60_videos(channel.ucid, channel.author, page, channel.auto_generated, sort_by)
|
count, items = get_60_videos(channel.ucid, channel.author, page, channel.auto_generated, sort_by)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "channel"
|
templated "channel/channel"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.playlists(env)
|
def self.playlists(env)
|
||||||
@ -59,7 +59,7 @@ module Invidious::Routes::Channels
|
|||||||
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
|
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
|
||||||
items.each(&.author = "")
|
items.each(&.author = "")
|
||||||
|
|
||||||
templated "playlists"
|
templated "channel/playlists"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.community(env)
|
def self.community(env)
|
||||||
@ -88,7 +88,7 @@ module Invidious::Routes::Channels
|
|||||||
return error_template(500, ex)
|
return error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "community"
|
templated "channel/community"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.about(env)
|
def self.about(env)
|
||||||
@ -109,7 +109,7 @@ module Invidious::Routes::Channels
|
|||||||
next error_template(500, ex)
|
next error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
templated "channel_about"
|
templated "channel/about"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Redirects brand url channels to a normal /channel/:ucid route
|
# Redirects brand url channels to a normal /channel/:ucid route
|
||||||
|
Loading…
Reference in New Issue
Block a user