favorites: fix empty favorites tooltip.
Fix the favorites tooltip being empty when a post has no favorites.
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
<div class="favorites-tooltip thin-scrollbar">
|
<div class="favorites-tooltip thin-scrollbar">
|
||||||
<div class="post-favoriters">
|
<% if favorites.length > 0 %>
|
||||||
<% favorites.each do |favorite| %>
|
<div class="post-favoriters">
|
||||||
<div class="post-favoriter truncate">
|
<% favorites.each do |favorite| %>
|
||||||
<%= favoriter_name(favorite) %>
|
<div class="post-favoriter truncate">
|
||||||
</div>
|
<%= favoriter_name(favorite) %>
|
||||||
<% end %>
|
</div>
|
||||||
</div>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<i>No favorites yet</i>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user