mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Move channel views to separate directory
(cherry picked from commit f849cad4e2
)
This commit is contained in:
parent
7460528121
commit
3c9fac0bf4
5 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ module Invidious::Routes::Channels
|
|||
count, items = get_60_videos(channel.ucid, channel.author, page, channel.auto_generated, sort_by)
|
||||
end
|
||||
|
||||
templated "channel"
|
||||
templated "channel/channel"
|
||||
end
|
||||
|
||||
def self.playlists(env)
|
||||
|
@ -59,7 +59,7 @@ module Invidious::Routes::Channels
|
|||
items = items.select(SearchPlaylist).map(&.as(SearchPlaylist))
|
||||
items.each(&.author = "")
|
||||
|
||||
templated "playlists"
|
||||
templated "channel/playlists"
|
||||
end
|
||||
|
||||
def self.community(env)
|
||||
|
@ -88,7 +88,7 @@ module Invidious::Routes::Channels
|
|||
return error_template(500, ex)
|
||||
end
|
||||
|
||||
templated "community"
|
||||
templated "channel/community"
|
||||
end
|
||||
|
||||
def self.about(env)
|
||||
|
@ -109,7 +109,7 @@ module Invidious::Routes::Channels
|
|||
next error_template(500, ex)
|
||||
end
|
||||
|
||||
templated "channel_about"
|
||||
templated "channel/about"
|
||||
end
|
||||
|
||||
# Redirects brand url channels to a normal /channel/:ucid route
|
||||
|
|
Loading…
Reference in a new issue