FIX: remove like_count and <hr> tag from post crawler layout (#7413)

* show likes value in crawler view if count is > 0

* remove <hr> since horizontal line is already provided by css - this removes one of 2 horizontal lines in post crawler view
This commit is contained in:
Saurabh Patel 2019-04-23 11:05:57 +05:30 committed by Sam
parent 9fc3de01bb
commit 3658be42f5
1 changed files with 1 additions and 2 deletions

View File

@ -73,9 +73,8 @@
<meta itemprop='interactionCount' content='UserComments:<%= post.reply_count %>'>
<meta itemprop='headline' content='<%= @topic_view.title %>'>
<div class='clearfix'>
<span class='post-likes'><%= t('post.has_likes', count: post.like_count) %></span>
<span class='post-likes'><%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %></span>
</div>
<hr>
<% 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? %>