Changed icon to checkmark and for verified author to checkmark-circle

This commit is contained in:
Jonas Wunderlich
2022-03-26 20:13:33 +01:00
parent aa09bbe23d
commit 611e7e9dd8
6 changed files with 13 additions and 11 deletions

View File

@@ -331,8 +331,10 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
end
author_name = HTML.escape(child["author"].as_s)
if child["verified"]?.try &.as_bool
author_name += " <i class=\"icon ion ion-md-checkmark-circle\"></i>"
if child["verified"]?.try &.as_bool && child["authorIsChannelOwner"]?.try &.as_bool
author_name += "&nbsp;<i class=\"icon ion ion-md-checkmark-circle\"></i>"
elsif child["verified"]?.try &.as_bool
author_name += "&nbsp;<i class=\"icon ion ion-md-checkmark\"></i>"
end
html << <<-END_HTML
<div class="pure-g" style="width:100%">