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:
parent
9fc3de01bb
commit
3658be42f5
|
@ -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? %>
|
||||
|
|
Loading…
Reference in New Issue