From 1fb0e1991b708c8fc410b81b07a7eb493f959f10 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 3 Aug 2018 14:23:48 -0500 Subject: [PATCH] Add thumbs up to comments score --- src/invidious/helpers.cr | 8 ++++---- src/invidious/views/watch.ecr | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index 5bb30c07..314561e1 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -569,7 +569,7 @@ def template_youtube_comments(comments)

- [ - ] #{child["likeCount"]} #{child["author"]} + [ - ] #{child["likeCount"]} #{child["author"]}

#{child["content"]} @@ -613,7 +613,7 @@ def template_reddit_comments(root) content = <<-END_HTML

- [ - ] #{score} #{author} + [ - ] #{score} #{author}

#{body_html} @@ -684,13 +684,13 @@ def add_alt_links(html) alt_link = <<-END_HTML - + END_HTML elsif url.host == "youtu.be" alt_link = <<-END_HTML - + END_HTML elsif url.to_s == "#" diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index f135235b..3d165482 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -315,11 +315,11 @@ get_youtube_comments(); <%= HTML.escape(video.title) %> <% if listen %> - + <% else %> - + <% end %> @@ -328,9 +328,9 @@ get_youtube_comments();
-

<%= number_with_separator(video.views) %>

-

<%= number_with_separator(video.likes) %>

-

<%= number_with_separator(video.dislikes) %>

+

<%= number_with_separator(video.views) %>

+

<%= number_with_separator(video.likes) %>

+

<%= number_with_separator(video.dislikes) %>

Genre : <%= video.genre %>

Family Friendly? <%= video.is_family_friendly %>

Wilson Score : <%= video.wilson_score.round(4) %>