mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
21 lines
1,008 B
HTML
21 lines
1,008 B
HTML
{% if current_user.is_authenticated and current_user.verified %}
|
|
<div class="upvote_button digits_{{ digits(comment.up_votes) }} {{ upvoted_class }}"
|
|
hx-post="/comment/{{ comment.id }}/upvote" hx-trigger="click throttle:1s" hx-target="closest .voting_buttons">
|
|
<span class="fe fe-arrow-up"></span>
|
|
{{ comment.up_votes }}
|
|
</div>
|
|
<div class="downvote_button digits_{{ digits(comment.down_votes) }} {{ downvoted_class }}"
|
|
hx-post="/comment/{{ comment.id }}/downvote" hx-trigger="click throttle:1s" hx-target="closest .voting_buttons">
|
|
<span class="fe fe-arrow-down"></span>
|
|
{{ comment.down_votes }}
|
|
</div>
|
|
{% else %}
|
|
<div class="upvote_button digits_{{ digits(comment.up_votes) }} {{ upvoted_class }}">
|
|
<span class="fe fe-arrow-up"></span>
|
|
{{ comment.up_votes }}
|
|
</div>
|
|
<div class="downvote_button digits_{{ digits(comment.down_votes) }} {{ downvoted_class }}">
|
|
<span class="fe fe-arrow-down"></span>
|
|
{{ comment.down_votes }}
|
|
</div>
|
|
{% endif %}
|