summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-07-31 19:29:16 -0500
committerOmar Roth <omarroth@protonmail.com>2019-07-31 19:29:16 -0500
commitf71d5c429d4e3abc4e6a7eaf461fd46587316121 (patch)
tree954a798ad8e6becc37e457b20c964cbb38ac742d /src
parentdce5816b18e201a66419010a1b2e0e7e24a6f1db (diff)
downloadinvidious-f71d5c429d4e3abc4e6a7eaf461fd46587316121.tar.gz
invidious-f71d5c429d4e3abc4e6a7eaf461fd46587316121.tar.bz2
invidious-f71d5c429d4e3abc4e6a7eaf461fd46587316121.zip
Add description to channel pages
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/channel.ecr4
-rw-r--r--src/invidious/views/community.ecr4
-rw-r--r--src/invidious/views/playlists.ecr4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr
index 624dbe9c..9e7ec88c 100644
--- a/src/invidious/views/channel.ecr
+++ b/src/invidious/views/channel.ecr
@@ -28,6 +28,10 @@
</div>
<div class="h-box">
+ <p><span style="white-space:pre"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
+</div>
+
+<div class="h-box">
<% ucid = channel.ucid %>
<% author = channel.author %>
<% sub_count_text = number_to_short_text(channel.sub_count) %>
diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecr
index 705d06a8..732ae9bd 100644
--- a/src/invidious/views/community.ecr
+++ b/src/invidious/views/community.ecr
@@ -27,6 +27,10 @@
</div>
<div class="h-box">
+ <p><span style="white-space:pre"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
+</div>
+
+<div class="h-box">
<% ucid = channel.ucid %>
<% author = channel.author %>
<% sub_count_text = number_to_short_text(channel.sub_count) %>
diff --git a/src/invidious/views/playlists.ecr b/src/invidious/views/playlists.ecr
index 1825bb48..216f4475 100644
--- a/src/invidious/views/playlists.ecr
+++ b/src/invidious/views/playlists.ecr
@@ -27,6 +27,10 @@
</div>
<div class="h-box">
+ <p><span style="white-space:pre"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
+</div>
+
+<div class="h-box">
<% ucid = channel.ucid %>
<% author = channel.author %>
<% sub_count_text = number_to_short_text(channel.sub_count) %>