From 3658be42f5bdf9320481b796daebf5a24b858296 Mon Sep 17 00:00:00 2001 From: Saurabh Patel Date: Tue, 23 Apr 2019 11:05:57 +0530 Subject: [PATCH] FIX: remove like_count and
tag from post crawler layout (#7413) * show likes value in crawler view if count is > 0 * remove
since horizontal line is already provided by css - this removes one of 2 horizontal lines in post crawler view --- app/views/topics/show.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 78bb29dc310..633002641aa 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -73,9 +73,8 @@
- <%= t('post.has_likes', count: post.like_count) %> + <%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %>
-
<% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].length > 0 %> <% @topic_view.link_counts[post.id].each do |link| %> <% if link[:reflection] && link[:title].present? %>