Add thumbs up to comments score
This commit is contained in:
parent
03f1ab45c6
commit
1fb0e1991b
|
@ -569,7 +569,7 @@ def template_youtube_comments(comments)
|
|||
<div class="pure-g">
|
||||
<div class="pure-u-1">
|
||||
<p>
|
||||
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> #{child["likeCount"]} <b>#{child["author"]}</b>
|
||||
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> <i class="icon ion-ios-thumbs-up"></i> #{child["likeCount"]} <b>#{child["author"]}</b>
|
||||
</p>
|
||||
<div>
|
||||
#{child["content"]}
|
||||
|
@ -613,7 +613,7 @@ def template_reddit_comments(root)
|
|||
|
||||
content = <<-END_HTML
|
||||
<p>
|
||||
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> #{score} <b>#{author}</b>
|
||||
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> <i class="icon ion-ios-thumbs-up"></i> #{score} <b>#{author}</b>
|
||||
</p>
|
||||
<div>
|
||||
#{body_html}
|
||||
|
@ -684,13 +684,13 @@ def add_alt_links(html)
|
|||
|
||||
alt_link = <<-END_HTML
|
||||
<a href="#{alt_url}">
|
||||
<i class="icon ion-ios-link" aria-hidden="true"></i>
|
||||
<i class="icon ion-ios-link"></i>
|
||||
</a>
|
||||
END_HTML
|
||||
elsif url.host == "youtu.be"
|
||||
alt_link = <<-END_HTML
|
||||
<a href="/watch?v=#{url.path.try &.lchop("/")}&#{url.query}">
|
||||
<i class="icon ion-ios-link" aria-hidden="true"></i>
|
||||
<i class="icon ion-ios-link"></i>
|
||||
</a>
|
||||
END_HTML
|
||||
elsif url.to_s == "#"
|
||||
|
|
|
@ -315,11 +315,11 @@ get_youtube_comments();
|
|||
<%= HTML.escape(video.title) %>
|
||||
<% if listen %>
|
||||
<a href="/watch?<%= env.params.query %>">
|
||||
<i class="icon ion-ios-videocam" aria-hidden="true"></i>
|
||||
<i class="icon ion-ios-videocam"></i>
|
||||
</a>
|
||||
<% else %>
|
||||
<a href="/watch?<%= env.params.query %>&listen=true">
|
||||
<i class="icon ion-ios-volume-high" aria-hidden="true"></i>
|
||||
<i class="icon ion-ios-volume-high"></i>
|
||||
</a>
|
||||
<% end %>
|
||||
</h1>
|
||||
|
@ -328,9 +328,9 @@ get_youtube_comments();
|
|||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-1-5">
|
||||
<div class="h-box">
|
||||
<p><i class="icon ion-ios-eye" aria-hidden="true"></i> <%= number_with_separator(video.views) %></p>
|
||||
<p><i class="icon ion-ios-thumbs-up" aria-hidden="true"></i> <%= number_with_separator(video.likes) %></p>
|
||||
<p><i class="icon ion-ios-thumbs-down" aria-hidden="true"></i> <%= number_with_separator(video.dislikes) %></p>
|
||||
<p><i class="icon ion-ios-eye"></i> <%= number_with_separator(video.views) %></p>
|
||||
<p><i class="icon ion-ios-thumbs-up"></i> <%= number_with_separator(video.likes) %></p>
|
||||
<p><i class="icon ion-ios-thumbs-down"></i> <%= number_with_separator(video.dislikes) %></p>
|
||||
<p id="Genre">Genre : <%= video.genre %></p>
|
||||
<p id="FamilyFriendly">Family Friendly? <%= video.is_family_friendly %></p>
|
||||
<p id="Wilson">Wilson Score : <%= video.wilson_score.round(4) %></p>
|
||||
|
|
Loading…
Reference in a new issue