Renames supports to allow_participation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<% reason = investment.reason_for_not_being_ballotable_by(current_user, ballot) %>
|
||||
<div class="supports ballot">
|
||||
<div class="js-participation supports ballot">
|
||||
<% if ballot.has_investment?(investment) %>
|
||||
|
||||
<div class="remove supported inline-block">
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
<% if reason.present? && !ballot.has_investment?(investment) %>
|
||||
|
||||
<div class="no-supports-allowed" style='display:none'>
|
||||
<div class="js-participation-not-allowed" style='display:none'>
|
||||
<p>
|
||||
<%= t("votes.budget_investments.#{reason}",
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<% voting_allowed = true unless reason.presence == :not_voting_allowed %>
|
||||
<% user_voted_for = voted_for?(investment_votes, investment) %>
|
||||
|
||||
<div class="supports js-supports">
|
||||
<div class="supports js-participation">
|
||||
|
||||
<span class="total-supports <%= 'no-button' unless voting_allowed || user_voted_for %>">
|
||||
<%= t("budget.investments.investment.supports", count: investment.total_votes) %>
|
||||
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
|
||||
<% if reason.present? && !user_voted_for %>
|
||||
<div class="js-supports-not-allowed" style='display:none' aria-hidden="false">
|
||||
<div class="js-participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<p>
|
||||
<%= t("votes.budget_investments.#{reason}",
|
||||
verify_account: link_to(t("votes.verify_account"), verification_path),
|
||||
|
||||
Reference in New Issue
Block a user