Skip to content

Commit

Permalink
Changed _like.html.erb (#10089)
Browse files Browse the repository at this point in the history
  • Loading branch information
itisaby authored Sep 14, 2021
1 parent a94e2a8 commit 2e9b37e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/like/_like.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
<% end %>

<span data-toggle="tooltip" data-placement="top" title="Tools" id="menu-btn" class="btn btn-outline-secondary btn-circle btn-sm" rel="popover" data-placement="left" data-html="true" style="overflow: auto; max-height: 500px" data-content="
<p><b>Users who liked this</b></p>
<% node.likers.each do |user| %>
<i class='fa fa-star-o'></i> <a href='/profile/<%= user.username %>/'><%= user.username %></a><br />
<% end %>
<% if node.likers.size == 0 %><i>None</i><% end %>
<div class='mb-3'>
<p><b>Users who liked this</b></p>
<% node.likers.each do |user| %>
<i class='fa fa-star-o'></i> <a href='/profile/<%= user.username %>/'><%= user.username %></a><br />
<% end %>
<% if node.likers.size == 0 %><i>None</i><% end %>
</div>
<% if node.type == 'note' && current_user && node.uid != current_user.uid%>
<hr style='margin-bottom:3px;' />
<p><b>Award a Barnstar:</b></p>
Expand Down

0 comments on commit 2e9b37e

Please sign in to comment.