rgarcia
39c6ac4a91
Display message in budget's index when there are no budgets
...
When there are no budgets we were seeing an exception in the budgets’
index
There are two parts to take into account here:
1) Making sure there is a current_budget present, otherwise we display
the “no budgets” message
2) The map helper is called from the controller, so we need to make
sure current_budget is present there too
Note: We could have added a bunch of `try` statements in the budgets’s
index, instead of using a conditional, however there are quite a few
`current_budget` calls so it seems more appropriate to use a conditional
2018-04-05 14:25:32 +02:00
María Checa
cd1a0548ba
Add map_location#json_data method
2018-03-27 15:17:31 +02:00
Bertocq
2341a2f70b
Add by_budget scope to Investment and use it
2018-02-10 16:36:14 +01:00
Raúl Fuentes
ecdbc4a3f7
added balloting to the list of phases allowed to see all the links
2018-02-10 15:27:40 +01:00
Raúl Fuentes
5b16d395e7
Added logic to not show invetment links is the budget phase isn't reviewing_ballots or finished
2018-02-10 15:27:40 +01:00
Vicente Mendoza
ff5112f96b
Changed the budgets helper so just search for the current budget
2018-01-26 11:30:02 +01:00
Raúl Fuentes
82b750de68
moved duplicated code to helper
2018-01-23 15:42:01 +01:00
Bertocq
304b3941a7
Move current budget's geolocated investments code to helper function
2018-01-18 01:40:58 +01:00
Bertocq
66691b644a
Refactor Budget::PHASES constant to Budget::Phase::PHASE_KINDS
2018-01-16 12:18:13 +01:00
María Checa
a06abf7650
Removed unnecessary code
2018-01-10 11:57:23 +01:00
Raúl Fuentes
29018e3062
changes made at the request of voodoorai2000
2018-01-09 13:08:03 +01:00
Raúl Fuentes
95c1aa43e8
added csv download link to budget_investments (issue 1625)
2018-01-09 12:45:30 +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
02524b164a
Rubocop autocorrections (indentations, revers unless to if, extra spaces)
2017-06-08 12:14:35 +02:00
Alberto
6bbcc71ecb
Merge branch 'master' into polls
2017-04-06 14:16:49 +02:00
rgarcia
712d5f2d9a
displays only valuation tags for filtering
2017-03-07 18:19:53 +01:00
Juanjo Bazán
8bd74d2a20
fixes specs
...
namespace method defined in AdminHelper now returns
X/Y instead of X::Y
2017-01-24 13:07:49 +01:00
Alberto Garcia Cabeza
8722699cd8
fixes typos and spec for budgets investments
2017-01-08 22:17:14 +01:00
kikito
9669767c8a
Removes unnecessary helper (all investments have a header now)
2017-01-06 18:47:16 +01:00
kikito
ecb3461a97
Renames Budget::VALID_PHASES to just PHASES
2017-01-01 13:16:22 +01:00
kikito
7f94cc1f3d
Removes unneeded parameter from helper call
2016-12-14 13:42:26 +01:00
kikito
b3be1633af
Fixes all management bi issues except filtering by geozone
2016-12-07 16:35:27 +01:00
kikito
ad2d35bafa
merge budget helpers in a single file
2016-12-06 20:08:37 +01:00
Juanjo Bazán
9014de2693
adds budgets_helper
2016-07-29 13:34:11 +02:00