Javi Martín
eb7dc3ef2d
Extract partial to render budget navigation links
2019-06-06 12:17:52 +02:00
Javi Martín
c8b6a1a4a1
Use the same view code for finished budgets
...
The differences between the custom code and the code in CONSUL didn't
make much sense anymore: the path can be passed a budget instead of an
ID (so it uses a slug) and there's no reason to hide the link to the
executions for the 2018 budget anymore. Furthermore, removing the
`status: 1` parameter makes the link consistent with the rest of the
application, since it was the only link to budget executions using that
parameter.
2019-06-06 12:17:51 +02:00
Javi Martín
99fd838ca1
Extract partial to render finished budgets
2019-06-06 12:17:49 +02:00
Raimond Garcia
a874d25bfa
Merge pull request #3413 from LextrendIT/feature/notify_evaluation_comments
...
notify by email new evaluation comments
2019-06-06 11:29:38 +02:00
Javi Martín
d2c075cc93
Add new settings on servers with the db role
...
This task adds records to the database, so the role `db` is more
appropriate.
2019-06-05 20:23:56 +02:00
Javi Martín
1d0b05832c
Add info messages for release 1.0.0 tasks
...
So users know what's going on when they upgrade CONSUL.
2019-06-05 20:23:56 +02:00
Javi Martín
3ab2085e05
Move calculate_ballot_lines task to the right file
...
We already have a file with the proper budgets namespace.
2019-06-05 20:23:56 +02:00
Javi Martín
685c96c40d
Add capistrano task to deploy and upgrade CONSUL
2019-06-05 20:23:56 +02:00
Javi Martín
c78211af49
Add task to upgrade to version 1.0.0
...
It includes every task needed for the upgrade.
2019-06-05 20:23:54 +02:00
Javier Martín
72c6b05c64
Merge pull request #3376 from LextrendIT/3350_rename_debates_comments_admin
...
Refactor admin/debates and admin/comments to hidden
2019-06-05 19:15:21 +02:00
Julian Nicolas Herrero
7802305b18
Merge pull request #3585 from consul/images_and_documents_settings
...
Images and documents settings
2019-06-05 19:11:22 +02:00
Javier Martín
81b67349f2
Merge pull request #3580 from consul/use_find_instead_of_find_by_id
...
Use find instead of find by
2019-06-05 19:04:47 +02:00
Javier Martín
cbad8ad416
Merge pull request #3389 from LextrendIT/feature/add_description_field_to_administrator_users_like_evaluators
...
Add description field to administrator users like evaluators description
2019-06-05 18:36:16 +02:00
Julian Nicolas Herrero
5e9cb24e22
Merge pull request #3587 from consul/unregistered_poll_officers
...
Show name and email for deleted poll officer's user account
2019-06-05 17:58:53 +02:00
lalo
8061bfa5e8
Send email to users related with an investment when valuation comment is created
2019-06-05 17:02:59 +02:00
lalo
28815cb290
Create new email template for new evaluation comment created and add it to system_emails view
2019-06-05 16:22:12 +02:00
lalo
d721920b97
Display commenter as admin description or name
2019-06-05 16:19:31 +02:00
lalo
d0e1eff532
Add description field to administrator users like evaluators description
2019-06-05 16:18:12 +02:00
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