Javi Martín
944bd2d418
Don't capitalize common nouns
2019-05-21 13:50:19 +02:00
Javi Martín
66ecb2835b
Show only available budget stats phases
...
This way we can show statistics for the supports phase before the vote
phase is over.
2019-05-21 13:50:18 +02:00
Javi Martín
e146fafb60
Only show "no demographic data" when necessary
...
If there's demographic data for all participants, it doesn't make sense
to show the message.
We're using translations instead of an `if` in the view because the text
is also different when there's only one participant. In some languages
the text might also be different depending on how many people with no
demographic data participated.
Another possibility would be to use an `if` in the view so we don't
display an empty paragraph when the cont is zero, and then using
translation for `one` and `other`. I haven't gone that way because I
thought the logic would be more complex and the benefits wouldn't be
that great.
2019-05-21 13:50:18 +02:00
Javi Martín
ae4cd06c24
Include no geozone in no demographic data
2019-05-21 13:50:18 +02:00
Javi Martín
558070d530
Remove geozone participation percentage
...
We currently don't store geozone population.
2019-05-21 13:50:18 +02:00
Javi Martín
4843959c7d
Use poll voters valid origins as stats channels
...
They're the same thing, and duplicating them led into a typo saying
"mail" instead of "letter".
2019-05-21 13:50:18 +02:00
Javi Martín
eba30d1585
Use "Fully blank" instead of "white votes"
...
We were mistranslating the Spanish word "blanco", which can mean "blank"
or "white".
We've also decided to use "fully blank" because polls may have many
questions, and only votes leaving everything blank count as blank votes.
2019-05-21 13:50:18 +02:00
Javi Martín
e3063cd24f
Remove complex poll stats
...
For now we think showing them would be showing too much data and it
would be a bit confusing.
I've been tempted to just remove the view and keep the methods in the
model in case they're used by other institutions using CONSUL. However,
it's probably better to wait until we're asked to re-implement them, and
in the meantime we don't maintain code nobody uses. The code wasn't that
great to start with (I know it because I wrote it).
2019-05-21 13:50:17 +02:00
decabeza
f6701373c4
Change i18n participation to participants
2019-05-21 13:50:17 +02:00
Javi Martín
dc077bb03c
Simplify budget stats in voting phase
...
So we only show the total number of participants, and not divided by web
participants and booth participants.
2019-05-21 13:50:17 +02:00
Javi Martín
bc056d907e
Add missing translation
2019-05-21 13:50:17 +02:00
Javi Martín
2d7b8bc8df
Use new design for advanced budget stats
2019-05-21 13:50:17 +02:00
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
8f69113233
Add poll stats by geozone and channel
2019-05-21 13:50:17 +02:00
Javi Martín
202fb44008
Add poll stats by age and channel
2019-05-21 13:50:17 +02:00
Javi Martín
7b408a4b88
Add poll stats by gender and channel
2019-05-21 13:50:17 +02:00
Javi Martín
553af8e95b
Add poll stats by channel
...
Note we currently don't have a way to get the votes by mail, so that
section is always blank.
2019-05-21 13:50:17 +02:00
Javi Martín
a9bb3eba26
Add headings for advanced statistics
2019-05-21 13:50:16 +02:00
Javi Martín
90fe746d27
Add geozone stats to polls
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
be68c8cdbf
Add gender stats to polls
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
Angel Perez
a889f62f68
Remove unused budget I18n keys
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
Bertocq
4691b486b0
Improve budget stats investments sent text to have a breakline on spanish
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
decabeza
75dfa4c663
fixes typo
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
Bertocq
e0e02b47c0
Add Budgets Stats Controller, route and ability on reviewing ballots and finished budget
2019-05-16 22:01:42 +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
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
rgarcia
b628631769
fixes specs
2019-05-16 13:37:47 +02:00
rgarcia
94a3e7e61a
does not exclude ahoy events
2019-05-16 13:37:47 +02:00
rgarcia
cfe3f95f5c
moves graphs to individual views
2019-05-16 13:37:47 +02:00
Javier Martín
c39a3d7525
Merge pull request #3492 from consul/backport-fix_delete_budget_with_polls
...
Don't destroy budgets with an associated poll
2019-05-16 13:07:18 +02:00
Javi Martín
1b323383a8
Don't destroy budgets with an associated poll
...
We were getting an exception due to foreign key database violations.
2019-05-13 13:44:58 +02:00
Javi Martín
9c991297c5
Fix typo
2019-05-13 13:44:58 +02:00
decabeza
62a29e2cf9
Adds missing i18n
2019-04-30 12:00:46 +02:00
voodoorai2000
19b7526421
Add document upload from admin section
2019-04-30 11:59:08 +02:00
Julian Herrero
2ba7355b00
Add lib folder path to eager_load_paths
...
Because autoloading is disabled in production with Rails 5,
using autoload_paths will not load needed classes from
specified paths. The solution to this, is to ask Rails
to eager load classes.
https://sipsandbits.com/2017/02/14/upgrading-a-ruby-on-rails-application/
2019-04-29 17:45:58 -05:00
Javi Martín
825367145c
Remove redundant test order option
...
The test order is now random by default.
2019-04-29 13:08:43 -05:00
decabeza
9f973bf789
Add message on dashboard request to archived proposals
2019-04-29 15:46:44 +02:00
decabeza
3add160b4b
Change i18n to resources on next goal
...
This resources always are locked when are shown on next goal section.
2019-04-29 15:45:04 +02:00
voodoorai2000
dfbdc0568c
Allow actions to be unexecuted
...
Before actions could be marked as executed. With this commit we are also allowing actions to be marked as unexecuted.
2019-04-29 15:43:53 +02:00