diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-31 19:29:16 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-31 19:29:16 -0500 |
| commit | f71d5c429d4e3abc4e6a7eaf461fd46587316121 (patch) | |
| tree | 954a798ad8e6becc37e457b20c964cbb38ac742d /src | |
| parent | dce5816b18e201a66419010a1b2e0e7e24a6f1db (diff) | |
| download | invidious-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.ecr | 4 | ||||
| -rw-r--r-- | src/invidious/views/community.ecr | 4 | ||||
| -rw-r--r-- | src/invidious/views/playlists.ecr | 4 |
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) %> |
