diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-13 10:16:01 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-13 10:37:29 -0500 |
| commit | c776e1f82aabea3cdd65f64a2049af3be55ddb3b (patch) | |
| tree | 9119237a79fd31d8e08984e86d70d944096c852f | |
| parent | dc2fde6c3853f0e169e7a6f875b7818579393f21 (diff) | |
| download | invidious-c776e1f82aabea3cdd65f64a2049af3be55ddb3b.tar.gz invidious-c776e1f82aabea3cdd65f64a2049af3be55ddb3b.tar.bz2 invidious-c776e1f82aabea3cdd65f64a2049af3be55ddb3b.zip | |
Add author thumbnail and published to YouTube comments
| -rw-r--r-- | src/invidious/comments.cr | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 575561d2..246f3967 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -88,15 +88,20 @@ def template_youtube_comments(comments) html += <<-END_HTML <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> - <a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> - <i class="icon ion-ios-thumbs-up"></i> #{child["likeCount"]} - <b><a href="#{child["authorUrl"]}">#{child["author"]}</a></b> - </p> - <div> - #{child["content"]} - #{replies_html} + <a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> + <i class="icon ion-ios-thumbs-up"></i> #{child["likeCount"]} + <b><a href="#{child["authorUrl"]}">#{child["author"]}</a></b> + - #{recode_date(Time.epoch(child["published"].as_i64))} ago + </p> + <div> + #{child["content"]} + #{replies_html} + </div> </div> </div> </div> |
