Files
danbooru/app/views/forum_post_votes/_vote.html.erb
2019-10-28 01:06:23 -05:00

15 lines
509 B
Plaintext

<%-
# vote
# forum_post
%>
<li class="vote-score-<%= vote.vote_type %>">
<% if forum_post.tag_change_request && forum_post.tag_change_request.is_pending? && vote.creator_id == CurrentUser.id %>
<%= link_to content_tag(:i, nil, class: "far #{vote.fa_class}"), forum_post_vote_path(vote, format: "js"), remote: true, method: :delete %>
<%= link_to_user vote.creator %>
<% else %>
<%= content_tag(:i, nil, class: "far #{vote.fa_class}") %>
<%= link_to_user vote.creator %>
<% end %>
</li>