Javi Martín
ccaa2e1a77
Remove duplication to calculate percentage
2019-05-21 13:49:42 +02:00
Javi Martín
188278296c
Simplify the way we cache stats
2019-05-21 13:48:54 +02:00
Javi Martín
d627215af4
Use symbols for method names
2019-05-21 13:27:03 +02:00
Javi Martín
313ffb589b
Share method to generate stats
2019-05-21 13:27:03 +02:00
Javi Martín
62a97f9003
Add a common concern for budget and poll stats
2019-05-21 13:27:03 +02:00
Bertocq
b8dbdaf9a7
Move question most voted answer from boolean to a enumerable max by total_votes
2019-05-21 13:26:44 +02:00
Bertocq
84eac6ff68
Correct booth valid and total participants calculations
2019-05-21 13:26:44 +02:00
Bertocq
b2b5ab1d48
Calculate white votes percentage of the total
2019-05-21 13:26:44 +02:00
Bertocq
4be44835a8
Add calculate_percentaje helper function to stats helper
2019-05-21 13:26:44 +02:00
Bertocq
f4260788eb
Add Partial Results counts to question answers
2019-05-21 13:26:44 +02:00
Bertocq
dbe404d9ad
Fix Officer final recount access without voting shift
2019-05-21 13:26:44 +02:00
decabeza
607b2362a3
adds missing id
2019-05-21 13:26:44 +02:00
Bertocq
118cce2f8f
Add letter origin back to poll voters
2019-05-21 13:26:44 +02:00
Javi Martín
e461c8d0ac
Generate navigation links for polls without a slug
2019-05-21 13:04:26 +02:00
María Checa
0c6e7e7580
Adds Sluggable concern to Poll model
2019-05-17 05:41:09 +02:00
Bertocq
65fd88ef32
Use poll slug on stats and results paths
2019-05-17 05:41:09 +02:00
rgarcia
1af472b795
hotfix for polls without slugs
2019-05-16 23:40:50 +02:00
Bertocq
501fe9b682
Fix poll_path links to adding id param
2019-05-16 23:40:50 +02:00
María Checa
e3b16230e6
Added slug to polls for named urls
2019-05-16 23:40:50 +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
María Checa
c2457e36a5
Add budget stats permissions for normal users and admins
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
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