Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show supports on investments only if selecting phase is enabled #5511

Open
decabeza opened this issue Apr 27, 2024 · 0 comments
Open

Show supports on investments only if selecting phase is enabled #5511

decabeza opened this issue Apr 27, 2024 · 0 comments

Comments

@decabeza
Copy link
Collaborator

Why is this Needed?

Some cities use Participatory Budgets without the support phase (Selecting projects). But while the PB is in the next evaluation phase (Valuating projects) the “No supports” text is shown for all investments in the index/show views which can be confusing for the users.

Description

The idea would be to hide this information if the selecting projects phase is not activated for that PB.

A possible idea would be to modify the method on app/models/budget/investment.rb:341

def should_show_vote_count?
  budget.valuating?
end

To something like this:

def should_show_vote_count?
  budget.valuating? && budget.phases.enabled.pluck(:kind).include?(“selecting”)
end

Current Screenshots

show

index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants