%
# Controllers that use this partial must provide the following variables:
# comment
# user
thread = comment.thread
%>
<% if comment.can_be_voted_on? %>
<% can_vote = comment.can_be_voted_on_by?(user) %>
<% vote = comment.get_vote_by(user) %>
<% comment_voting = thread.config.comment_voting.to_sym %>
<% if comment_voting == :ld || comment_voting == :l %>
<% vtype = (comment_voting == :ld) ? 'upvote' : 'like' %>
<% end %>
<% if comment_voting == :ld %>
<% end %>
<% end %>