summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-01-21 11:05:30 -0600
committerOmar Roth <omarroth@hotmail.com>2018-01-21 11:05:30 -0600
commit1305410f4d2e737ea1208ac822a41994dce02d11 (patch)
tree74b453c0387ce32b3a2328d26b69288b216b4c65 /src
parent02b6990240418d429aa61da0111010ea03a8c389 (diff)
downloadinvidious-1305410f4d2e737ea1208ac822a41994dce02d11.tar.gz
invidious-1305410f4d2e737ea1208ac822a41994dce02d11.tar.bz2
invidious-1305410f4d2e737ea1208ac822a41994dce02d11.zip
Move script tags into video view
Diffstat (limited to 'src')
-rw-r--r--src/views/watch.ecr9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/views/watch.ecr b/src/views/watch.ecr
index b9e537a5..db8457d2 100644
--- a/src/views/watch.ecr
+++ b/src/views/watch.ecr
@@ -1,5 +1,8 @@
<% content_for "header" do %>
-<%= video.info["title"] + " - " %>
+<link rel="stylesheet" href="/css/video-js.css">
+<script src="/js/video.js"></script>
+<script src="/js/videojs.hotkeys.min.js"></script>
+<title><%= video.info["title"] %> - Invidious</title>
<% end %>
<% if listen == "true" %>
@@ -71,10 +74,10 @@ var player = videojs('player', options, function() {
<div class="pure-u-1 pure-u-md-1-5">
<% rvs.each do |rv| %>
<% if rv.has_key?("id") %>
- <a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>">
+ <a class="link" href="/watch?v=<%= rv["id"] %>">
<img style="width:100%" alt="thumbnail" src="<%= rv["iurlmq"] %>">
</a>
- <p><a target="_blank" class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p>
+ <p><a class="link" href="/watch?v=<%= rv["id"] %>"><%= rv["title"] %></a></p>
<% end %>
<% end %>
</div>