Javi Martín
6ad3bc063c
Move budget stats translations to stats files
...
We were using custom translations, but now this code is going to be
included in the main CONSUL repository.
2019-05-21 13:50:17 +02:00
Javi Martín
cf32dcd6d5
Use the new stats layout in budget stats
...
So now stats by gender and age are replaced by shared participation
stats (which also includes stats by district), reusing the code already
used in poll stats, and advanced statistics (which used to be at the top
of the page) are now displayed after partipation stats.
2019-05-21 13:50:17 +02:00
Javi Martín
4d520a3a47
Rename age_groups method
...
The name was confusing because it seemed to return a list of age groups.
2019-05-21 13:50:16 +02:00
decabeza
b91b766e96
Adds styles and updates html markup to stats
2019-05-21 13:50:16 +02:00
Javi Martín
7ce57f649f
Use a <meter> tag to display age percentages
2019-05-21 13:50:16 +02:00
Javi Martín
9a01ff5323
Refactor age groups method
...
We try to make the method return data which is easier to handle in the
view.
2019-05-21 13:50:15 +02:00
Javi Martín
c0044f4e56
Extract method to show stats percentage
2019-05-21 13:50:15 +02:00
Javi Martín
5a3eb70a46
Use same translations for poll and budget stats
2019-05-21 13:50:15 +02:00
voodoorai2000
abb6eb18b0
Order headings by name and group
...
Note that we are relying on the existing `sort_by_name`[1] method in the `Budget::Heading` class.
This method sorts by DESC group name first and then ASC heading name.
[1] https://github.com/AyuntamientoMadrid/consul/pull/1875
2019-05-16 22:01:42 +02:00
decabeza
7b2495845d
Moves social tags outside cache on budget stats
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
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
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
decabeza
eb57b5c375
adds multiplier on progress meter stats age table
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