From 9e4d0bd3a5a8e94d227f3417658ff4a2461c8e87 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 16 Jan 2018 13:58:08 -0600 Subject: Add video,js, Genesis 3:6 --- src/views/layout.ecr | 5 +++ src/views/watch.ecr | 95 +++++++++++++++++++++++++++------------------------- 2 files changed, 55 insertions(+), 45 deletions(-) (limited to 'src') diff --git a/src/views/layout.ecr b/src/views/layout.ecr index 8a2c26b3..e951ccc4 100644 --- a/src/views/layout.ecr +++ b/src/views/layout.ecr @@ -9,6 +9,11 @@ + + + + + <%= yield_content "header" %>Invidious diff --git a/src/views/watch.ecr b/src/views/watch.ecr index f3763b56..8a16dbca 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -2,22 +2,7 @@ <%= video.info["title"] + " - " %> <% end %> - - - + + -

- <%= video.info["title"] %> - <% if listen == "true" %> +

+ <%= video.info["title"] %> + <% if listen == "true" %> - - - <% else %> + + + <% else %> - - - <% end %> -

+ + + <% end %> + -
-
-

<%= views %>

-

<%= likes %>

-

<%= dislikes %>

-

Wilson Score : <%= ci_lower_bound(likes, likes + dislikes).round(4) %>

-

Rating : <%= rating.round(4) %> / 5

-

Engagement : <%= engagement.round(2) %>%

-
+
+
+

<%= views %>

+

<%= likes %>

+

<%= dislikes %>

+

Wilson Score : <%= ci_lower_bound(likes, likes + dislikes).round(4) %>

+

Rating : <%= rating.round(4) %> / 5

+

Engagement : <%= engagement.round(2) %>%

+
-
-

"><%= video.info["author"] %>

-

<%= description %>

-
+
+

+ "> +

<%= video.info["author"] %>

+ +

+ <%= description %> +
-
- <% rvs.each do |rv| %> +
+ <% rvs.each do |rv| %> <% if rv.has_key?("id") %> -

"><%= rv["title"] %>

+

"><%= rv["title"] %>

<% end %> - <% end %> -
+ <% end %>
+
-- cgit v1.2.3