From f7125c12048d66b11c2dcf12d6f1bcde35ffaf3d Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 6 Oct 2018 22:20:40 -0500 Subject: Move watch page JS into seperate file --- src/invidious/comments.cr | 4 +- src/invidious/views/watch.ecr | 104 ++++++++++++------------------------------ 2 files changed, 30 insertions(+), 78 deletions(-) (limited to 'src') diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index ec89c66b..ccd0f8cb 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -109,7 +109,7 @@ def template_youtube_comments(comments)

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

- [ - ] + [ - ] #{author} #{score} points #{recode_date(child.created_utc)} ago diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 4f842c4c..4eaaf9a6 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -22,6 +22,7 @@ + <%= rendered "components/player_sources" %> <%= HTML.escape(video.title) %> - Invidious <% end %> @@ -144,61 +145,6 @@