Add author thumbnail and published to YouTube comments

pull/116/head
Omar Roth 6 years ago
parent dc2fde6c38
commit c776e1f82a

@ -88,11 +88,15 @@ def template_youtube_comments(comments)
html += <<-END_HTML html += <<-END_HTML
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1"> <div class="pure-u-2-24">
<img style="width:90%; padding-right:1em; padding-top:1em;" src="#{child["authorThumbnails"][0]["url"]}">
</div>
<div class="pure-u-22-24">
<p> <p>
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> <a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a>
<i class="icon ion-ios-thumbs-up"></i> #{child["likeCount"]} <i class="icon ion-ios-thumbs-up"></i> #{child["likeCount"]}
<b><a href="#{child["authorUrl"]}">#{child["author"]}</a></b> <b><a href="#{child["authorUrl"]}">#{child["author"]}</a></b>
- #{recode_date(Time.epoch(child["published"].as_i64))} ago
</p> </p>
<div> <div>
#{child["content"]} #{child["content"]}
@ -100,6 +104,7 @@ def template_youtube_comments(comments)
</div> </div>
</div> </div>
</div> </div>
</div>
END_HTML END_HTML
end end

Loading…
Cancel
Save