Alberto
a6f8969728
Merge pull request #3577 from consul/proposal-show
...
Extract partial with mobile sticky content
2019-06-05 09:51:45 +02:00
Julian Herrero
1f76b25e2a
Show name and email for deleted poll officer's user account
...
Avoid to raise an exception `Module::DelegationError' when trying to
show the name and/or email of a poll officer whose user account has
been deleted.
We'll show a message "User deleted" and "Email deleted" instead.
2019-06-04 18:55:51 +02:00
decabeza
19867836f8
Extract partial with mobile sticky content
2019-06-04 17:29:31 +02:00
Julian Herrero
8e0bbf54f6
Replace harcoded images and documents settings
2019-06-04 11:50:09 +02:00
Julian Herrero
220bfb065a
Add images and documents settings to admin panel
2019-06-04 11:47:22 +02:00
Julian Herrero
35cd26c117
Add images and document settings to the DB
2019-06-04 11:45:38 +02:00
Julian Herrero
e32faf3a3c
Extract setting prefix to a method
...
We may need to access the setting key prefix in the future, so it's
better to have it in a method to avoid duplication
2019-06-04 11:39:53 +02:00
Julian Herrero
b4e8395bd6
Extract settings forms to partials
2019-06-04 11:39:40 +02:00
lalo
c538d08fee
Display public investment view on admin and valuator pages as preview
2019-06-04 09:30:51 +02:00
Javi Martín
481184e7f3
Fix accidental translations join
...
We added the code thinking we were ordering by the name of the poll, but
here we're actually ordering by the name of the booth.
2019-06-03 18:36:03 +02:00
Javi Martín
dadbf873ba
Order translations using ruby
...
Joining the translations table caused duplicate records to appear.
Ordering with SQL is simply too hard because we need to consider
fallback locales.
Thanks Senén for providing most of the tests in the poll spec.
2019-06-03 18:35:59 +02:00
Julian Herrero
b122302c58
Use find instead of find_by_id
...
Better raise a 404 HTML NotFound exception than any other unexpected error.
2019-06-03 17:54:19 +02:00
lalo
8d5f53e1e7
Refactor budget investment show page extracting code to partial
2019-06-03 17:26:31 +02:00
Julian Herrero
22076dd95c
Add method find_by_slug_or_id! to Sluggable module
...
Make it easier to find by slug or id for sluggable models. It will
raise a 404 HTML Not found error if the resource is not found.
2019-06-03 16:54:39 +02:00
Julian Herrero
4bd20eebf4
Use correct param in controller
...
There were some custom routes created using the param[:id] but the
Rails routes use the param[:budget_id] by default, so the same
controller could be asked for different param keys.
2019-06-03 16:54:39 +02:00
rgarcia
998b4d9e39
Load budgets using slugs
2019-06-03 16:54:39 +02:00
Bertocq
0d761ddfb1
Hotfixing find the only budget for emails
2019-06-03 16:54:39 +02:00
German Galia
4f50e67ac3
Collaborative legislation summary
2019-06-03 12:34:25 +02:00
Javier Martín
90c1d681d0
Merge pull request #3576 from consul/new_settings
...
Add new settings automatically on every deployment
2019-06-03 11:54:44 +02:00
Javier Martín
a6c63ac64f
Merge pull request #3564 from consul/default_settings
...
Simplify settings seeds
2019-06-03 11:53:20 +02:00
German Galia
85722eb7c4
Rename admin/debates and admin/comments to hidden
2019-06-02 19:12:26 +02:00
Alberto
2f8505332e
Merge pull request #3574 from consul/remove-dashboard-polls
...
Allow users to delete dashboard polls
2019-06-01 11:06:34 +02:00
Alberto
8ee396f311
Merge pull request #3573 from consul/improve-ux
...
Add help texs, links and new message section to improve UX
2019-06-01 10:38:52 +02:00
Alberto
51e27fb6ed
Merge pull request #3572 from consul/user-polls
...
Hide polls created by users from proposals dashboard on admin poll index
2019-06-01 10:38:07 +02:00
Javi Martín
e339ed94d1
Add new settings every time we deploy
...
This way we don't need to add and execute rake tasks every time we add a
new setting.
2019-05-31 19:33:31 +02:00
Javi Martín
bb504d90fb
Add method to add new settings
2019-05-31 19:33:31 +02:00
Javi Martín
555fae0811
Order settings to follow our traditional order
...
Settings are displayed in the administration in the order they are
created, and reordering them alphabetically in the code caused them to
be displayed in a different order.
Since we don't want to confuse our users by randomly changing the order,
I've grouped the settings by namespaces and ordered each namespace the
way it used to be.
Note dev seeds don't need to be changed, since they are executed after
default settings have been created.
2019-05-31 19:30:35 +02:00
Javi Martín
cf26b230c9
Use a rounded value for default supports needed
...
We were using the value which is used in Madrid.
2019-05-31 19:30:14 +02:00
Javi Martín
ff21ce7665
Use translations for official level names seeds
2019-05-31 19:30:14 +02:00
Javi Martín
3db1acf73d
Simplify dev seed settings code
2019-05-31 19:30:14 +02:00
Javi Martín
ced0409270
Reuse default settings in dev seeds
2019-05-31 19:30:14 +02:00
Javi Martín
7830d90d4a
Extract method to reset default settings
2019-05-31 19:28:50 +02:00
Javi Martín
9e6e6d6c9e
Sort settings alphabetically
2019-05-31 19:28:50 +02:00
Javi Martín
bac0004fed
Move default settings to Settings model
2019-05-31 19:28:35 +02:00
Javi Martín
19245efc93
Simplify code seeding settings
2019-05-31 19:28:13 +02:00
Javi Martín
bf6cadd137
Remove redundant comments
...
Commenting things like "proposal_code_prefix" represents the "Prefix
for the Proposal codes" is unnecessary.
2019-05-31 19:27:30 +02:00
Raimond Garcia
0d967b2765
Merge pull request #3571 from consul/i18n_available_locales
...
Add Bosnian, Croatian, Czech, Danish, Greek, and Turkish locales
2019-05-31 19:12:33 +02:00
Raimond Garcia
a3f538a2af
Merge pull request #3569 from consul/delete_spending_proposals
...
Delete spending proposals
2019-05-31 19:11:28 +02:00
voodoorai2000
7218d80297
Update migrations for Rails 5 conventions
2019-05-31 18:23:03 +02:00
decabeza
084fb3059a
Remove spending proposals styles
2019-05-31 18:23:03 +02:00
voodoorai2000
4f9f9a065a
Update schema.rb
2019-05-31 18:23:03 +02:00
voodoorai2000
cb9c3696f4
Use budget investments in useful specs
2019-05-31 18:23:03 +02:00
voodoorai2000
2f5d153581
Delete migration to budget investments
2019-05-31 18:23:03 +02:00
voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
voodoorai2000
24dde9c35e
Delete valuation
2019-05-31 15:43:06 +02:00
voodoorai2000
a932737881
Delete ballots
2019-05-31 15:43:06 +02:00
Julian Nicolas Herrero
3ba7bd1cab
Merge pull request #3567 from consul/select_proposals_by_admins
...
Make proposals to be selected by administrators
2019-05-31 15:30:39 +02:00
Javier Martín
888c161944
Merge pull request #2616 from consul/show_votes_associated_to_signatures
...
Show count of votes associated to verified signatures
2019-05-31 15:30:04 +02:00
voodoorai2000
6970e4c8fb
Update locale names for Italian, Polish and Albanian
2019-05-31 14:49:38 +02:00
voodoorai2000
78f3cec133
Add Bosnian, Czech, Danish, Greek, Croatian and Turkish locales
2019-05-31 14:49:38 +02:00