Skip to content

Commit 611e7e9

Browse files
committed
Changed icon to checkmark and for verified author to checkmark-circle
1 parent aa09bbe commit 611e7e9

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

src/invidious/comments.cr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,10 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
331331
end
332332

333333
author_name = HTML.escape(child["author"].as_s)
334-
if child["verified"]?.try &.as_bool
335-
author_name += " <i class=\"icon ion ion-md-checkmark-circle\"></i>"
334+
if child["verified"]?.try &.as_bool && child["authorIsChannelOwner"]?.try &.as_bool
335+
author_name += "&nbsp;<i class=\"icon ion ion-md-checkmark-circle\"></i>"
336+
elsif child["verified"]?.try &.as_bool
337+
author_name += "&nbsp;<i class=\"icon ion ion-md-checkmark\"></i>"
336338
end
337339
html << <<-END_HTML
338340
<div class="pure-g" style="width:100%">

src/invidious/views/channel.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="pure-u-2-3">
2121
<div class="channel-profile">
2222
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
23-
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %>
23+
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %>
2424
</div>
2525
</div>
2626
<div class="pure-u-1-3">

src/invidious/views/community.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="pure-u-2-3">
2020
<div class="channel-profile">
2121
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
22-
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %>
22+
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %>
2323
</div>
2424
</div>
2525
<div class="pure-u-1-3" style="text-align:right">

src/invidious/views/components/item.ecr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<img loading="lazy" style="width:56.25%" src="/ggpht<%= URI.parse(item.author_thumbnail).request_target.gsub(/=s\d+/, "=s176") %>"/>
99
</center>
1010
<% end %>
11-
<p dir="auto"><%= HTML.escape(item.author) %><% if !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></p>
11+
<p dir="auto"><%= HTML.escape(item.author) %><% if !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></p>
1212
</a>
1313
<p><%= translate_count(locale, "generic_subscribers_count", item.subscriber_count, NumberFormatting::Separator) %></p>
1414
<% if !item.auto_generated %><p><%= translate_count(locale, "generic_videos_count", item.video_count, NumberFormatting::Separator) %></p><% end %>
@@ -30,7 +30,7 @@
3030
<p dir="auto"><%= HTML.escape(item.title) %></p>
3131
</a>
3232
<a href="/channel/<%= item.ucid %>">
33-
<p dir="auto"><b><%= HTML.escape(item.author) %><% if !item.is_a?(InvidiousPlaylist) && !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></b></p>
33+
<p dir="auto"><b><%= HTML.escape(item.author) %><% if !item.is_a?(InvidiousPlaylist) && !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></b></p>
3434
</a>
3535
<% when MixVideo %>
3636
<a href="/watch?v=<%= item.id %>&list=<%= item.rdid %>">
@@ -142,7 +142,7 @@
142142

143143
<div class="video-card-row flexible">
144144
<div class="flex-left"><a href="/channel/<%= item.ucid %>">
145-
<p class="channel-name" dir="auto"><%= HTML.escape(item.author) %><% if !item.is_a?(ChannelVideo) && !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></p>
145+
<p class="channel-name" dir="auto"><%= HTML.escape(item.author) %><% if !item.is_a?(ChannelVideo) && !item.author_verified.nil? && item.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></p>
146146
</a></div>
147147

148148
<% endpoint_params = "?v=#{item.id}" %>

src/invidious/views/playlists.ecr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="pure-u-2-3">
2020
<div class="channel-profile">
2121
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
22-
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %>
22+
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %>
2323
</div>
2424
</div>
2525
<div class="pure-u-1-3" style="text-align:right">

src/invidious/views/watch.ecr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ we're going to need to do it here in order to allow for translations.
206206
<% if !video.author_thumbnail.empty? %>
207207
<img src="/ggpht<%= URI.parse(video.author_thumbnail).request_target %>">
208208
<% end %>
209-
<span id="channel-name"><%= author %><% if !video.author_verified.nil? && video.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></span>
209+
<span id="channel-name"><%= author %><% if !video.author_verified.nil? && video.author_verified %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></span>
210210
</div>
211211
</a>
212212
@@ -280,9 +280,9 @@ we're going to need to do it here in order to allow for translations.
280280
<h5 class="pure-g">
281281
<div class="pure-u-14-24">
282282
<% if rv["ucid"]? %>
283-
<b style="width:100%"><a href="/channel/<%= rv["ucid"] %>"><%= rv["author"]? %><% if rv["author_verified"]? == "true" %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></a></b>
283+
<b style="width:100%"><a href="/channel/<%= rv["ucid"] %>"><%= rv["author"]? %><% if rv["author_verified"]? == "true" %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></a></b>
284284
<% else %>
285-
<b style="width:100%"><%= rv["author"]? %><% if rv["author_verified"]? == "true" %>&nbsp;<i class="icon ion ion-md-checkmark-circle"></i><% end %></b>
285+
<b style="width:100%"><%= rv["author"]? %><% if rv["author_verified"]? == "true" %>&nbsp;<i class="icon ion ion-md-checkmark"></i><% end %></b>
286286
<% end %>
287287
</div>
288288

0 commit comments

Comments
 (0)