Skip to content

Commit

Permalink
Add description to channel pages
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Aug 1, 2019
1 parent dce5816 commit f71d5c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/invidious/views/channel.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
</div>
</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 %>
Expand Down
4 changes: 4 additions & 0 deletions src/invidious/views/community.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
</div>
</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 %>
Expand Down
4 changes: 4 additions & 0 deletions src/invidious/views/playlists.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
</div>
</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 %>
Expand Down

0 comments on commit f71d5c4

Please sign in to comment.