diff --git a/src/invidious/frontend/comments_reddit.cr b/src/invidious/frontend/comments_reddit.cr
index 08ce2f344..7ee357adc 100644
--- a/src/invidious/frontend/comments_reddit.cr
+++ b/src/invidious/frontend/comments_reddit.cr
@@ -15,20 +15,20 @@ module Invidious::Frontend::Comments
end
if child.depth > 0
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
else
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
end
- html << <<-END_HTML
+ html << <<-HTML
[ − ]
#{child.author}
@@ -42,7 +42,7 @@ module Invidious::Frontend::Comments
- END_HTML
+ HTML
end
end
end
diff --git a/src/invidious/frontend/comments_youtube.cr b/src/invidious/frontend/comments_youtube.cr
index 4638395a9..46012adf4 100644
--- a/src/invidious/frontend/comments_youtube.cr
+++ b/src/invidious/frontend/comments_youtube.cr
@@ -12,7 +12,7 @@ module Invidious::Frontend::Comments
NumberFormatting::Separator
)
- replies_html = <<-END_HTML
+ replies_html = <<-HTML
@@ -22,7 +22,7 @@ module Invidious::Frontend::Comments
- END_HTML
+ HTML
elsif comments["authorId"]? && !comments["singlePost"]?
# for posts we should display a link to the post
replies_count_text = translate_count(locale,
@@ -31,7 +31,7 @@ module Invidious::Frontend::Comments
NumberFormatting::Separator
)
- replies_html = <<-END_HTML
+ replies_html = <<-HTML
@@ -40,7 +40,7 @@ module Invidious::Frontend::Comments
- END_HTML
+ HTML
end
if !thin_mode
@@ -65,7 +65,7 @@ module Invidious::Frontend::Comments
str << %(width="16" height="16" />)
end
end
- html << <<-END_HTML
+ html << <<-HTML

@@ -77,7 +77,7 @@ module Invidious::Frontend::Comments
#{sponsor_icon}
#{child["contentHtml"]}
- END_HTML
+ HTML
if child["attachment"]?
attachment = child["attachment"]
@@ -86,81 +86,81 @@ module Invidious::Frontend::Comments
when "image"
attachment = attachment["imageThumbnails"][1]
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
when "video"
if attachment["error"]?
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
else
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
end
when "multiImage"
- html << <<-END_HTML
+ html << <<-HTML
#{translate(locale, "carousel_skip")}
- END_HTML
+ HTML
image_array = attachment["images"].as_a
image_array.each_index do |i|
- html << <<-END_HTML
+ html << <<-HTML
(i + 1).to_s, "total" => image_array.size.to_s})}" tabindex="0">
- END_HTML
+ HTML
end
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
attachment["images"].as_a.each_index do |i|
- html << <<-END_HTML
+ html << <<-HTML
#{i + 1}
- END_HTML
+ HTML
end
- html << <<-END_HTML
+ html << <<-HTML
- END_HTML
+ HTML
end
end
- html << <<-END_HTML
+ html << <<-HTML
#{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64), locale))} #{child["isEdited"] == true ? translate(locale, "(edited)") : ""}
|
- END_HTML
+ HTML
if comments["videoId"]?
- html << <<-END_HTML
+ html << <<-HTML
[YT]
|
- END_HTML
+ HTML
elsif comments["authorId"]?
- html << <<-END_HTML
+ html << <<-HTML
[YT]
|
- END_HTML
+ HTML
end
- html << <<-END_HTML
+ html << <<-HTML
#{number_with_separator(child["likeCount"])}
- END_HTML
+ HTML
if child["creatorHeart"]?
if !thin_mode
@@ -169,7 +169,7 @@ module Invidious::Frontend::Comments
creator_thumbnail = ""
end
- html << <<-END_HTML
+ html << <<-HTML
@@ -179,19 +179,19 @@ module Invidious::Frontend::Comments
- END_HTML
+ HTML
end
- html << <<-END_HTML
+ html << <<-HTML
#{replies_html}
- END_HTML
+ HTML
end
if comments["continuation"]?
- html << <<-END_HTML
+ html << <<-HTML
@@ -200,7 +200,7 @@ module Invidious::Frontend::Comments
- END_HTML
+ HTML
end
end
end
diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr
index 0add31bcd..70b591265 100644
--- a/src/invidious/helpers/errors.cr
+++ b/src/invidious/helpers/errors.cr
@@ -61,7 +61,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
url_new_issue += "?labels=bug&template=bug_report.md&title="
url_new_issue += URI.encode_www_form("[Bug] " + issue_title)
- error_message = <<-END_HTML
+ error_message = <<-HTML
#{translate(locale, "crash_page_you_found_a_bug")}
@@ -80,7 +80,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
#{issue_template}
- END_HTML
+ HTML
# Don't show the usual "next steps" widget. The same options are
# proposed above the error message, just worded differently.
@@ -191,7 +191,7 @@ def error_redirect_helper(env : HTTP::Server::Context)
go_to_youtube = translate(locale, "next_steps_error_message_go_to_youtube")
switch_instance = translate(locale, "Switch Invidious Instance")
- return <<-END_HTML
+ return <<-HTML
#{next_steps_text}
-
@@ -204,7 +204,7 @@ def error_redirect_helper(env : HTTP::Server::Context)
#{go_to_youtube}
- END_HTML
+ HTML
else
return ""
end
diff --git a/src/invidious/mixes.cr b/src/invidious/mixes.cr
index b522c78cb..31f53e8dd 100644
--- a/src/invidious/mixes.cr
+++ b/src/invidious/mixes.cr
@@ -82,7 +82,7 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
end
def template_mix(mix, listen)
- html = <<-END_HTML
+ html = <<-HTML