Skip to content

Commit

Permalink
Update app/views/decidim/consultations/question_votes/_callout.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi authored Apr 29, 2024
1 parent 870d181 commit 5fbd5a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% total_published_questions = consultation.questions.published.count %>
<% voted_questions = consultation.questions.published.joins(:votes).where(votes: { author: current_user }).distinct.count(:id) %>
<% alert_class = total_published_questions != voted_questions ? "alert" : "success" %>
<% alert_class = total_published_questions != voted_questions ? "warning" : "success" %>

<div class="callout <%= alert_class %>">
<p>
Expand Down

0 comments on commit 5fbd5a5

Please sign in to comment.