Angel Perez
a889f62f68
Remove unused budget I18n keys
2019-05-16 22:01:42 +02:00
Angel Perez
3bbdffceaf
Remove conditional to render tabs on budgets/stats#show
...
'Results' and 'Execution' tabs are now shown to the user regardless
of the budget's current status
2019-05-16 22:01:42 +02:00
Angel Perez
c2b9042ad7
Add 'Execution' tab to a finished Budget stats
...
This tab will show all winner investments projects with milestones
2019-05-16 22:01:42 +02:00
María Checa
fac99cfb10
Add web and booth participants in budget stats
2019-05-16 22:01:42 +02:00
María Checa
c2457e36a5
Add budget stats permissions for normal users and admins
2019-05-16 22:01:42 +02:00
Marko Lovic
70e108d593
Simplify spec
2019-05-16 22:01:42 +02:00
Marko Lovic
0c5f801c19
Keep DB clean after running budget stats spec
...
This spec was leaving the DB "dirty" because it was creating
records in a before(:all) hook. These records are not cleaned up
automatically when using the :transaction strategy for DatabaseCleaner.
Using before(:each), however, causes another problem. Some of the code
depends on the heading id being 1 (see app/models/budget/ballot/line.rb#L48).
Because of SQL auto-increment, this is only the case the first time the hook
is run, as different id's are assigned on subsequent runs. This is fixed
by forcing the id to always be 1.
2019-05-16 22:01:42 +02:00
María Checa
3291b3274a
Added physical votes to stats
2019-05-16 22:01:42 +02:00
decabeza
99d0ac52c0
Fixes budgets stats ui for all phases
2019-05-16 22:01:42 +02:00
decabeza
7b2f77dfbd
removes duplicated thead tag
2019-05-16 22:01:42 +02:00
Bertocq
6a46719ff8
Link to results without heading unless its on the results menu
2019-05-16 22:01:42 +02:00
Bertocq
c5a4a427c4
Add links between Budget stats and results routes
2019-05-16 22:01:42 +02:00
Bertocq
4691b486b0
Improve budget stats investments sent text to have a breakline on spanish
2019-05-16 22:01:42 +02:00
Bertocq
e5a2440e91
Remove the last totals row on Budget stats view
2019-05-16 22:01:42 +02:00
Bertocq
07cef9cd78
Order headings by id on budget stats view
2019-05-16 22:01:42 +02:00
Bertocq
4b2a2dd995
Improve percent round
2019-05-16 22:01:42 +02:00
Bertocq
be89289b09
Improve budget stats page with a new row showing each column totals
2019-05-16 22:01:42 +02:00
rgarcia
50c0f5f287
more efficient calculation of ballot lines
2019-05-16 22:01:42 +02:00
rgarcia
e5ec0bf6bb
counts votes instead of ballots
2019-05-16 22:01:42 +02:00
Bertocq
cdece48898
Order Budget headings by id when calculating heading stats
2019-05-16 22:01:42 +02:00
decabeza
9f6f7496c1
changes text classes on gender stats
2019-05-16 22:01:42 +02:00
Bertocq
427781a253
Reorder gender statistics to match gender image
2019-05-16 22:01:42 +02:00
Bertocq
1f3bc2c8d9
Switch from feasible to selected investments on budget stats
2019-05-16 22:01:42 +02:00
rgarcia
f9e45dc2e2
displays selected instead of feasible investments
2019-05-16 22:01:42 +02:00
rgarcia
ef958aae59
adds version to cache
2019-05-16 22:01:42 +02:00
decabeza
75dfa4c663
fixes typo
2019-05-16 22:01:42 +02:00
decabeza
eb57b5c375
adds multiplier on progress meter stats age table
2019-05-16 22:01:42 +02:00
rgarcia
51ab4a430e
Load budget in stats controller
2019-05-16 22:01:42 +02:00
Bertocq
6c214c266f
Correct budget stats age group id's and labels
2019-05-16 22:01:42 +02:00
decabeza
88ac17cc1b
removes progress meter multiplier
2019-05-16 22:01:42 +02:00
decabeza
895c8292ab
updates page title
2019-05-16 22:01:42 +02:00
decabeza
1c0c55c0fb
improves texts and styles for budgets stats
2019-05-16 22:01:42 +02:00
Bertocq
fd4ea312c3
Fix budget stats translations with line breaks
2019-05-16 22:01:42 +02:00
Bertocq
6899ba9a9f
Complete Budget Stats view with translations
2019-05-16 22:01:42 +02:00
decabeza
0993aaf5d1
changes budgets stats html
2019-05-16 22:01:42 +02:00
Bertocq
0c73d57118
Add budget stats view, pending some work and style
2019-05-16 22:01:42 +02:00
Bertocq
132397b610
Add Budget Stats class
2019-05-16 22:01:42 +02:00
Bertocq
e0e02b47c0
Add Budgets Stats Controller, route and ability on reviewing ballots and finished budget
2019-05-16 22:01:42 +02:00
Bertocq
63631f29a8
Add ballot_lines_count counter_cache to ballot -> ballot line relationship
2019-05-16 22:01:42 +02:00
kikito
71fd3657d3
makes all users old enough to vote by default when created for the specs
2019-05-16 22:00:51 +02:00
Javier Martín
668b6cfd73
Merge pull request #3499 from consul/backport-admin_stats
...
Add admin budget stats
2019-05-16 20:41:39 +02:00
María Checa
d5c7858f6c
Removed officer alert in admin section
2019-05-16 14:45:46 +02:00
Juanjo Bazán
f22a97468b
makes code heading_id agnostic
2019-05-16 14:45:46 +02:00
Juanjo Bazán
110ee961e3
adds budget stats for final voting to admin stats
2019-05-16 14:45:46 +02:00
Juanjo Bazán
5be54b57da
reduces current admin budget stats as supporting phase
2019-05-16 14:45:45 +02:00
rgarcia
11437a1d40
add budget investment stats
2019-05-16 13:41:49 +02:00
Alberto Garcia Cabeza
135984d535
removes budget countdown
2019-05-16 13:37:47 +02:00
Juanjo Bazán
5121c9b6d8
removes booth message from admin interface
2019-05-16 13:37:47 +02:00
rgarcia
be757f79d0
cleans up
2019-05-16 13:37:47 +02:00
rgarcia
b628631769
fixes specs
2019-05-16 13:37:47 +02:00