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

Admins can see the preview of the budgets' results before the balloti… #1923

Merged

Conversation

iagirre
Copy link

@iagirre iagirre commented Sep 26, 2017

Where

What

Let the admins preview the results of the budget before the balloting phase finishes.

How

First, I added the permissions for the admins as seen in this commit. Second, I added the specs needed for user and admin, as seen here (user) and here (admin). Thrid, I made the button to see the results visible if the budget is in balloting phase and current_user has permissions to preview the results.

Screenshots

There aren't big changes, but I'll add an image of the button shown in balloting phase.

preview_results

Test

Tests were added for user and admin abilities related to the results page.

Deployment

Not apply.

Warnings

As it was specified in the issue, the results need to be calculated in admins budget section before they can be previewed.

…ng phase is finished.

 Cambios para hacer commit:
	modificado:    app/models/abilities/administrator.rb
	modificado:    app/views/budgets/show.html.erb
	modificado:    spec/models/abilities/administrator_spec.rb
	modificado:    spec/models/abilities/everyone_spec.rb
@bertocq bertocq merged commit 01e4447 into consuldemocracy:master Oct 2, 2017
@iagirre iagirre deleted the iagirre-preview-budget-results branch January 16, 2018 07:20
javierm pushed a commit to javierm/consul that referenced this pull request Apr 1, 2019
…able_locales

[Upstream] Add locales for Indonesian, Russian, Slovak and Somali
@javierm javierm mentioned this pull request Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants