Add reddit comments

This commit is contained in:
Omar Roth
2018-03-03 15:06:14 -06:00
parent 2e892e8dd4
commit 24cea8f3e7
3 changed files with 152 additions and 18 deletions

View File

@@ -60,6 +60,10 @@ var player = videojs('player', options, function() {
}
});
});
function dismiss(target) {
target.style.display = 'none';
}
</script>
<h1>
@@ -94,6 +98,16 @@ var player = videojs('player', options, function() {
<div style="margin-right:1em;">
<%= video.description %>
</div>
<% if reddit_thread && !reddit_comments.as_a.empty? %>
<hr style="margin-right:1em;">
<div style="margin-right:1em;">
<h3><%= reddit_thread.data.title %></h3>
<b>
<a target="_blank" class="link" href="https://reddit.com<%= reddit_thread.data.permalink %>">View comments on Reddit</a>
</b>
<%= template_comments(reddit_comments) %>
</div>
<% end %>
</div>
<div class="pure-u-1 pure-u-md-1-5">