Skip to content

Commit

Permalink
Hide Liked By for 0 likes (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparsh1212 authored Mar 30, 2021
1 parent 8e83525 commit 3a824ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/templates/_likes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<a class="btn btn-info btn-xs like_unlike" name="{{ object.pk }}">
<i class="fa fa-thumbs-up"></i> {{ likes }}
</a>
<a href="#likedBy" class="btn btn-xs btn-default liked-by" data-toggle="modal">Liked By</a>
{% if likes %}
<a href="#likedBy" class="btn btn-xs btn-default liked-by" data-toggle="modal">Liked By</a>
{% endif %}

<div id="likedBy" class="modal" role="dialog">
<div class="modal-dialog">
Expand Down

0 comments on commit 3a824ed

Please sign in to comment.