% if paragraph.rejected? %>
<% else %> <% if !current_user %> <% if current_settings.votes_blocked? %> <% else %> <% end %> <% else %> <% if @voted_paragraphs ? @voted_paragraphs.include?(paragraph.id) : paragraph.voted_by?(current_user) %> <% else %> <% if paragraph.maximum_votes_reached? && !paragraph.can_accumulate_supports_beyond_threshold && current_component.participatory_space.can_participate?(current_user) %> <% else %> <% if vote_limit_enabled? && remaining_votes_count_for(current_user) == 0 %> <% elsif current_settings.votes_blocked? || !current_component.participatory_space.can_participate?(current_user) %> <% else %> <% end %> <% end %> <% end %> <% end %> <% end %>