AyuntamientoMadrid/participacion

View on GitHub
app/components/debates/votes_component.html.erb

Summary

Maintainability
Test Coverage
<div class="votes">
  <%= render Shared::InFavorAgainstComponent.new(debate) %>

  <%= render Shared::ParticipationNotAllowedComponent.new(debate, cannot_vote_text: cannot_vote_text) %>

  <span class="total-votes">
    <%= t("debates.debate.votes", count: debate.votes_score) %>
  </span>
</div>