Skip to content

Commit

Permalink
Hit counts can be seen by superusers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajordat committed Jun 20, 2024
1 parent e5a1a64 commit 2ed2b37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alteredbuilder/decks/templates/decks/deck_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ <h2 class="accordion-header">
{% for deck in deck_list %}
<tr data-href="{% url 'deck-detail' pk=deck.id %}">
<td>
<!-- <a role="button" href="#" class="btn btn-sm btn-outline-secondary">
{% if user.is_superuser %}
<a role="button" href="#" class="btn btn-sm btn-outline-secondary">
<i class="fa-solid fa-eye"></i> {{ deck.hit_count.hits }}
</a> -->
</a>
{% endif %}
<a role="button" href="#" class="btn btn-sm btn-outline-danger {%if deck.id in loved_decks %}active{% else %}disabled{% endif %}">
<i class="fa-solid fa-heart"></i> {{ deck.love_count }}
</a>
Expand Down

0 comments on commit 2ed2b37

Please sign in to comment.