fix: don't show dislikes to regular users
This commit is contained in:
parent
0ae283ad8e
commit
a4d7f44aa3
4 changed files with 53 additions and 10 deletions
|
@ -63,11 +63,17 @@
|
|||
|
||||
<div class="card flex flex-wrap gap-4 flex-collapse">
|
||||
<!-- prettier-ignore -->
|
||||
{% for user in list %}
|
||||
{% for tu in list %}
|
||||
{% set reaction = tu[0] %}
|
||||
{% set user = tu[1] %}
|
||||
<div
|
||||
style="display: contents"
|
||||
title="{% if reaction.is_like %}Like{% else %}Dislike{% endif %}"
|
||||
>
|
||||
{{ components::user_plate(user=user, secondary=true) }}
|
||||
{% endfor %}
|
||||
|
||||
{{ components::pagination(page=page, items=list|length) }}
|
||||
</div>
|
||||
{% endfor %} {{ components::pagination(page=page, items=list|length)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue