Skip to content

Commit

Permalink
Move channel views to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
syeopite committed Jun 24, 2021
1 parent e9dcac9 commit f5a0a6b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/invidious/routes/channels.cr
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
items.reject! &.paid
end

templated "channel"
templated "channel/channel"
end

def playlists(env)
Expand All @@ -59,7 +59,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
items = items.select { |item| item.is_a?(SearchPlaylist) }.map { |item| item.as(SearchPlaylist) }
items.each { |item| item.author = "" }

templated "playlists"
templated "channel/playlists"
end

def community(env)
Expand Down Expand Up @@ -88,7 +88,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
return error_template(500, ex)
end

templated "community"
templated "channel/community"
end

def channels(env)
Expand Down Expand Up @@ -126,7 +126,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], nil, nil).not_nil!
end

templated "channels"
templated "channel/featured_channels"
end

def featured_channel_category(env)
Expand All @@ -151,7 +151,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
title = env.params.query["title"]?

featured_channel_categories = fetch_channel_featured_channels(ucid, channel.tabs["channels"], category_param, continuation, title).not_nil!
templated "channels"
templated "channel/featured_channels"
end

def about(env)
Expand All @@ -161,7 +161,7 @@ class Invidious::Routes::Channels < Invidious::Routes::BaseRoute
end
locale, user, subscriptions, continuation, ucid, channel = data

templated "channel_about"
templated "channel/about"
end

private def fetch_basic_information(env)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f5a0a6b

Please sign in to comment.