Commit Graph

8286 Commits

Author SHA1 Message Date
decabeza
271c6869cd hide budget investment table heading if no results 2018-01-09 19:32:40 +01:00
decabeza
458b2aeb2d fixes i18n 2018-01-09 19:29:36 +01:00
decabeza
6fbd971278 changes text proposal to projects 2018-01-09 19:29:36 +01:00
decabeza
6174820de6 updates text 2018-01-09 19:29:36 +01:00
decabeza
3c8ec4169f improves messages on header 2018-01-09 19:29:36 +01:00
decabeza
5fb49c7adf reorders elements like proposals/show 2018-01-09 19:29:36 +01:00
decabeza
c44a1c57af shows supports number on bold 2018-01-09 19:29:36 +01:00
decabeza
72a8c4ab6e updates texts proposals to investment project 2018-01-09 19:29:36 +01:00
decabeza
47194205bf fixes author actions on sidebar 2018-01-09 19:29:36 +01:00
decabeza
979d9d071b adds help text for population field on admin budgets groups 2018-01-09 19:29:36 +01:00
decabeza
bba19d1fd5 fixes label name of group on admin budgets groups 2018-01-09 19:29:36 +01:00
Bertocq
c4e0178947 Fix all budget investment price translations to Price instead of Cost 2018-01-09 18:42:06 +01:00
rgarcia
c3344c6ab1 Update Changelog 2018-01-09 16:19:55 +01:00
Raimond Garcia
9d1906220e Merge pull request #1932 from wairbut-m2c/aperez-capistrano-maintenance-task
Add Capistrano task to automate maintenance mode
2018-01-09 16:18:44 +01:00
Raimond Garcia
50884f7f24 Merge branch 'master' into aperez-capistrano-maintenance-task 2018-01-09 16:17:21 +01:00
rgarcia
3cd6ba28b8 Updates Changelog 2018-01-09 15:04:35 +01:00
Raimond Garcia
26f10d40ff Merge pull request #2147 from wairbut-m2c/investments_csv_exporter
added csv download link to budget_investments (issue 1625)
2018-01-09 15:01:25 +01:00
Bertocq
dea67bb078 Update README.md and translate to README_ES.md
* Links to documentation and project's website were outdated
* There where some linting issues reported from Markdownlinter
2018-01-09 14:52:57 +01:00
Raúl Fuentes
29018e3062 changes made at the request of voodoorai2000 2018-01-09 13:08:03 +01:00
Raúl Fuentes
b3461b2051 final details 2018-01-09 12:45:30 +01:00
Raúl Fuentes
4f096a005d more style corrections 2018-01-09 12:45:30 +01:00
Raúl Fuentes
d7cc5d14c6 fixed test 2018-01-09 12:45:30 +01:00
Raúl Fuentes
56f4c3c3b9 added test to csv download and style corrections 2018-01-09 12:45:30 +01:00
Raúl Fuentes
95c1aa43e8 added csv download link to budget_investments (issue 1625) 2018-01-09 12:45:30 +01:00
María Checa
27ce8c9b1b Updated changelog 2018-01-09 12:19:16 +01:00
María Checa
c27e6ab1d1 Merge pull request #2223 from wairbut-m2c/iagirre-prevent-edition-if-budget-final-phase
Prevent edition of investments if budget is in the final phase
2018-01-09 12:18:23 +01:00
María Checa
1d82c6a80d Updated changelog 2018-01-09 11:56:58 +01:00
María Checa
96859190be Merge pull request #2280 from consul/2277-budgets_new_form
Budgets new form
2018-01-09 11:55:10 +01:00
Bertocq
a770961f74 Update unreleased section of changelog 2018-01-09 11:39:46 +01:00
rgarcia
69d0dc5825 Updates Changelog 2018-01-09 11:11:47 +01:00
BertoCQ
5f1d222582 Merge pull request #2283 from consul/feature/2275#destroy_budgets
Allow destroying budgets without investments
2018-01-09 11:04:01 +01:00
BertoCQ
6e96c8c057 Merge branch 'master' into feature/2275#destroy_budgets 2018-01-09 11:03:51 +01:00
BertoCQ
01c41c7cca Merge pull request #2284 from consul/feature/2276#admin_budget_edit_redirect
Redirect admin to budget lists after edit
2018-01-09 10:50:54 +01:00
BertoCQ
bcec5f779a Merge pull request #2285 from consul/feature/2278#budget_draft_phase
Feature/2278#budget draft phase
2018-01-09 10:50:40 +01:00
Bertocq
7c7f903ed0 Make customization engine spec less prone to flaky failures 2018-01-09 01:33:44 +01:00
Bertocq
2c3d8e9fd5 Avoid creating a budget in drafting phase to test results access 2018-01-09 01:16:09 +01:00
Bertocq
beee890285 Login as admin before visiting drafting budget on spec 2018-01-09 00:34:16 +01:00
Bertocq
0f5999fb8d Move admin creation into shared let on spec 2018-01-09 00:33:55 +01:00
María Checa
cd53884d72 Updated dev_seeds 2018-01-09 00:09:56 +01:00
María Checa
d8a6bb0f91 Changed tests 2018-01-09 00:09:50 +01:00
María Checa
385db76a24 Changed location attribute label text 2018-01-08 23:23:02 +01:00
María Checa
5161988844 Removed external_url input 2018-01-08 23:22:46 +01:00
Bertocq
4916f9a3c3 Avoid listing non-published Budgets to the public
Why:

Non-admins shouldn't be aware of non-published Budgets

How:

Using the budget_published? helper method
2018-01-08 23:02:18 +01:00
Bertocq
76e05d58b1 Return 404 status for non-published Budget access
Why:

Non-admin users shouldn't be able to access, or know of the existence
of a non-published Budget.

How:

Raising an ActionController::RoutingError (404 error) to simulate the
same behaviour as accesing a non-existing Budget.

We could have used CanCanCan abilities for this but then an user could
be aware of existing but not published Budgets by trying different urls
2018-01-08 22:59:20 +01:00
Bertocq
03f4fce2dd Add budget_published? helper method to BudgetHelper
We need to check if the budget is in drafting phase to avoid showing
it to the users, unless the current user is an administrator.
2018-01-08 22:56:47 +01:00
Bertocq
f9803ce9ca Add drafting phase to budget model & translations 2018-01-08 22:56:11 +01:00
Bertocq
d0937d7022 Add description_drafting column to budgets table 2018-01-08 22:55:37 +01:00
Bertocq
9739576e4e Add drafting phase trait to budget factory 2018-01-08 22:54:10 +01:00
Bertocq
1f0eb49ddc Increase budget model spec for drafting phase 2018-01-08 22:53:14 +01:00
Bertocq
63694b5bae Increase admin budget feature spec for drafting phase 2018-01-08 22:52:56 +01:00