{# Template for up/down vote arrows. # This template expects these inputs # # - target: ('post', 'comment') # - hash_id: the post/comment hashId # - vote: (optional) the vote already cast by current logged in user # - vote_count: the sum of votes for this post/comment # - user: reference to logged in user #} {% if user %} bump {# Show number of votes #} {{ vote_count }} sink {% else %} {{ vote_count ~ ' vote' ~ (vote_count != 1 ? 's') }} {% endif %}