|
|
|
@ -116,28 +116,28 @@ function toggle_comments(target) {
|
|
|
|
|
<div class="pure-g">
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<p><i class="fa fa-eye" aria-hidden="true"></i> <%= number_with_separator(video.views) %></p>
|
|
|
|
|
<p><i class="fa fa-thumbs-up" aria-hidden="true"></i> <%= number_with_separator(video.likes) %></p>
|
|
|
|
|
<p><i class="fa fa-thumbs-down" aria-hidden="true"></i> <%= number_with_separator(video.dislikes) %></p>
|
|
|
|
|
<p id="Wilson">Wilson Score : <%= video.wilson_score.round(4) %></p>
|
|
|
|
|
<p id="Rating">Rating : <%= rating.round(4) %> / 5</p>
|
|
|
|
|
<p id="Engagement">Engagement : <%= engagement.round(2) %>%</p>
|
|
|
|
|
</div>
|
|
|
|
|
<p><i class="fa fa-eye" aria-hidden="true"></i> <%= number_with_separator(video.views) %></p>
|
|
|
|
|
<p><i class="fa fa-thumbs-up" aria-hidden="true"></i> <%= number_with_separator(video.likes) %></p>
|
|
|
|
|
<p><i class="fa fa-thumbs-down" aria-hidden="true"></i> <%= number_with_separator(video.dislikes) %></p>
|
|
|
|
|
<p id="Wilson">Wilson Score : <%= video.wilson_score.round(4) %></p>
|
|
|
|
|
<p id="Rating">Rating : <%= rating.round(4) %> / 5</p>
|
|
|
|
|
<p id="Engagement">Engagement : <%= engagement.round(2) %>%</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5">
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<p>
|
|
|
|
|
<a href="https://youtube.com/channel/<%= video.info["ucid"] %>">
|
|
|
|
|
<h3><%= video.info["author"] %></h3>
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<b>Shared <%= video.published.to_s("%B %-d, %Y") %></b>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<a href="https://youtube.com/channel/<%= video.info["ucid"] %>">
|
|
|
|
|
<h3><%= video.info["author"] %></h3>
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<b>Shared <%= video.published.to_s("%B %-d, %Y") %></b>
|
|
|
|
|
</p>
|
|
|
|
|
<div style="overflow-wrap:break-word; word-wrap:break-word;">
|
|
|
|
|
<%= video.description %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= video.description %>
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="margin-left:1em; margin-right:1em;">
|
|
|
|
|
<% if reddit_thread && !reddit_html.empty? %>
|
|
|
|
|
<div>
|
|
|
|
@ -154,21 +154,23 @@ function toggle_comments(target) {
|
|
|
|
|
<%= reddit_html %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
|
|
|
<div class="h-box">
|
|
|
|
|
<% rvs.each do |rv| %>
|
|
|
|
|
<% if rv.has_key?("id") %>
|
|
|
|
|
<a href="/watch?v=<%= rv["id"] %>">
|
|
|
|
|
<img style="width:100%;" alt="thumbnail" src="<%= rv["iurlmq"] %>">
|
|
|
|
|
<p style="width:100%"><%= rv["title"] %></p>
|
|
|
|
|
<p><b style="width: 100%"><%= rv["author"] %></b></p>
|
|
|
|
|
</a>
|
|
|
|
|
<% rvs.each do |rv| %>
|
|
|
|
|
<% if rv.has_key?("id") %>
|
|
|
|
|
<a href="/watch?v=<%= rv["id"] %>">
|
|
|
|
|
<img style="width:100%;" alt="thumbnail" src="<%= rv["iurlmq"] %>">
|
|
|
|
|
<p style="width:100%"><%= rv["title"] %></p>
|
|
|
|
|
<p>
|
|
|
|
|
<b style="width: 100%"><%= rv["author"] %></b>
|
|
|
|
|
</p>
|
|
|
|
|
</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|