From 650b44ade241145fd108d126663557969d61b242 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 5 Oct 2018 10:08:24 -0500 Subject: [PATCH] Improve comment templating --- src/invidious/comments.cr | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 44fb291a..45307bf7 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -104,19 +104,20 @@ def template_youtube_comments(comments) html += <<-END_HTML
-
+
-
+

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

+

#{child["contentHtml"]}

+ #{recode_date(Time.epoch(child["published"].as_i64))} ago + | #{child["likeCount"]} - #{child["author"]} - - #{recode_date(Time.epoch(child["published"].as_i64))} ago -

-
-

#{child["contentHtml"]}

- #{replies_html} +

+ #{replies_html}
@@ -157,9 +158,9 @@ def template_reddit_comments(root) content = <<-END_HTML

[ - ] - #{score} #{author} - - #{recode_date(child.created_utc)} ago + #{score} points + #{recode_date(child.created_utc)} ago

#{body_html}