summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-05-06 19:41:07 +0200
committerSamantaz Fox <coding@samantaz.fr>2023-05-06 19:46:07 +0200
commit720789b6221518fd1614debfcee794a422df9466 (patch)
tree1641b873b4034d698cc40186d8ccbd7a38638c23 /src
parentce2649420fb868596bd926393fb1073d2671a4f5 (diff)
downloadinvidious-720789b6221518fd1614debfcee794a422df9466.tar.gz
invidious-720789b6221518fd1614debfcee794a422df9466.tar.bz2
invidious-720789b6221518fd1614debfcee794a422df9466.zip
HTML: wrap comments metadata in a paragraph
Diffstat (limited to 'src')
-rw-r--r--src/invidious/comments.cr2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index f43e39c6..01556099 100644
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@ -390,6 +390,7 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
end
html << <<-END_HTML
+ <p>
<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), locale))} #{child["isEdited"] == true ? translate(locale, "(edited)") : ""}</span>
|
END_HTML
@@ -408,6 +409,7 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
html << <<-END_HTML
<i class="icon ion-ios-thumbs-up"></i> #{number_with_separator(child["likeCount"])}
+ </p>
END_HTML
if child["creatorHeart"]?