<% items.each_slice(4) do |slice| %>
diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecr
index b0092e5f..a89a16d9 100644
--- a/src/invidious/views/community.ecr
+++ b/src/invidious/views/community.ecr
@@ -1,68 +1,9 @@
-<% content_for "header" do %>
-
- <% ucid = channel.ucid %>
- <% author = channel.author %>
- <% sub_count_text = number_to_short_text(channel.sub_count) %>
- <%= rendered "components/subscribe_widget" %>
-
+<% content_type = 2 %>
+<%
+# Make compiler happy
+%>
+<% sort_options = Tuple.new %>
+<%= rendered "components/channel-information" %>
<% if error_message %>
diff --git a/src/invidious/views/components/channel-information.ecr b/src/invidious/views/components/channel-information.ecr
new file mode 100644
index 00000000..6e636922
--- /dev/null
+++ b/src/invidious/views/components/channel-information.ecr
@@ -0,0 +1,146 @@
+<% content_for "header" do %>
+
<%= channel.author %> - Invidious
+
+<% end %>
+
+<% if channel.banner %>
+
+
">
+
+
+
+
+
+<% end %>
+
+
+
+
+
+
<%= channel.author %>
+
+
+
+
+
+
+
<%= channel.description_html %>
+
+
+
+ <% ucid = channel.ucid %>
+ <% author = channel.author %>
+ <% sub_count_text = number_to_short_text(channel.sub_count) %>
+ <%= rendered "components/subscribe_widget" %>
+
+
+
+
+
+
+
+
+
+
+
+ <% if content_type == 0 || content_type == 1 %>
+ <% route = content_type == 1 ? "/playlists" : "" %>
+ <% url = "/channel/#{channel.ucid + route}" %>
+ <% if env.params.query %>
+ <% url += "?#{env.params.query}"%>
+ <% end %>
+
+
+
+
+ <% end %>
+
+
+
+
+
diff --git a/src/invidious/views/playlists.ecr b/src/invidious/views/playlists.ecr
index 975ccd6c..09bde10c 100644
--- a/src/invidious/views/playlists.ecr
+++ b/src/invidious/views/playlists.ecr
@@ -1,87 +1,6 @@
-<% content_for "header" do %>
-
<%= channel.author %> - Invidious
-<% end %>
+<% content_type = 1 %>
-<% if channel.banner %>
-
-
">
-
-
-
-
-
-<% end %>
-
-
-
-
-
-
<%= channel.author %>
-
-
-
-
-
-
-
<%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %>
-
-
-
- <% ucid = channel.ucid %>
- <% author = channel.author %>
- <% sub_count_text = number_to_short_text(channel.sub_count) %>
- <%= rendered "components/subscribe_widget" %>
-
-
-
-
-
-
-
-
-
-
- <% if !channel.auto_generated %>
- <%= translate(locale, "Playlists") %>
- <% end %>
-
-
-
-
-
-
- <% {"last", "oldest", "newest"}.each do |sort| %>
-
- <% end %>
-
-
-
-
-
-
-
+<%= rendered "components/channel-information" %>
<% items.each_slice(4) do |slice| %>