Add detection for ad tags and category

This commit is contained in:
Omar Roth
2018-04-07 20:09:20 -05:00
parent 86bf5a6266
commit 44ebf0ed8e
2 changed files with 35 additions and 1 deletions

View File

@@ -121,13 +121,23 @@ function toggle_comments(target) {
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<div class="h-box">
<div style="overflow-wrap:break-word; word-wrap:break-word;" 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>
<% if ad_slots %>
<p>Ad Slots : <%= ad_slots %></p>
<% end %>
<% if engage_types %>
<p>Engage Types : <%= engage_types %></p>
<% end %>
<% if ad_tag %>
<p>Ad Category : <%= ad_category %></p>
<p>Ad Tags(?) : <%= k2 %></p>
<% end %>
</div>
</div>