diff options
| author | Agustin Ferrari <agustinferrari@gmx.com> | 2019-01-30 09:28:28 -0300 |
|---|---|---|
| committer | Agustin Ferrari <agustinferrari@gmx.com> | 2019-01-30 09:28:28 -0300 |
| commit | 55118a676883e6e5ce551ec6c22074893f38b8bc (patch) | |
| tree | f02d53f4332a8dbd06e0d486bf7b631187a6d8a9 /src | |
| parent | ff09a7255ac03dfd7d828aaaf872b263c4c9cee4 (diff) | |
| download | invidious-55118a676883e6e5ce551ec6c22074893f38b8bc.tar.gz invidious-55118a676883e6e5ce551ec6c22074893f38b8bc.tar.bz2 invidious-55118a676883e6e5ce551ec6c22074893f38b8bc.zip | |
Change color to the links and add a couple of improvements in the comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/comments.cr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 87065b5f..3b9dd8eb 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -329,7 +329,9 @@ def template_youtube_comments(comments, locale) <a href="#{child["authorUrl"]}">#{child["author"]}</a> </b> <p style="white-space:pre-wrap">#{child["contentHtml"]}</p> - #{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64)))} + <span title="#{Time.unix(child["published"].as_i64).to_s(translate(locale,"%A %B %-d, %Y"))}">#{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64)))}</span> + | + <a href="https://www.youtube.com/watch?v=%s&lc=#{child["commentId"]}" title="#{translate(locale, "Youtube permalink of the comment")}">[YT]</a> | <i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])} </p> |
