From efb6b0bb0b722d777a36e6f06c5f4f86881794fa Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Mon, 23 Oct 2023 08:01:04 +0300 Subject: [PATCH] add score tooltips for post list vote counts --- app/views/posts/_article_list.html.erb | 2 +- app/views/posts/_list.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/posts/_article_list.html.erb b/app/views/posts/_article_list.html.erb index f9e53d332..fb48d014d 100644 --- a/app/views/posts/_article_list.html.erb +++ b/app/views/posts/_article_list.html.erb @@ -3,7 +3,7 @@ <% @show_category_tag = !!defined?(show_category_tag) ? show_category_tag : false %> <% @last_activity = !!defined?(last_activity) ? last_activity : true %>
-
+
<%= (post.score * 100).to_i %>%
diff --git a/app/views/posts/_list.html.erb b/app/views/posts/_list.html.erb index 9170217cd..456e75360 100644 --- a/app/views/posts/_list.html.erb +++ b/app/views/posts/_list.html.erb @@ -8,7 +8,7 @@
<% if post.post_type.has_votes %> -
+
<%= (post.score * 100).to_i %>%