Commit Graph

12624 Commits

Author SHA1 Message Date
Julian Herrero
90d0a6e416 Make budget phases translatable 2019-02-13 11:44:56 +01:00
Julian Herrero
f38c4e3a0c Highlight budgets menu when editing budget phases 2019-02-13 11:44:46 +01:00
Julian Herrero
7b8f8f0f74 Add spec helper to fill translatable ckeditor fields 2019-02-13 11:44:34 +01:00
Julian Herrero
60ce72f3a0 Make possible to check for more than one ckeditor in the same form.
When more than one ckeditor field this line was raising the error:
"Ambiguous match, found 2 elements matching visible css"
2019-02-13 11:42:27 +01:00
Julian Herrero
dbdbcd662a Remove extra check
Sometimes when updating a resource you are not redirected to the same
resource, you are maybe redirected to the parent resource and the
translations can be different. This condition will be checked after
visiting the edit_path again.
2019-02-13 11:42:18 +01:00
Julian Herrero
d76782f150 Make budgets translatable 2019-02-13 11:41:58 +01:00
decabeza
fbbf092015 Add rake task to calculate cached voted score
Run this task it's only necessary if already existing legislation proposals in DB.
2019-02-13 11:35:21 +01:00
Julian Herrero
2eb2839ab0 Reload path for sluggable models
Sluggable models can update the slug when updating new translations,
so we make sure the path is correct before using it.
2019-02-13 11:29:43 +01:00
Alberto
938d5eba43 Merge pull request #3191 from consul/ui-i18n-details
Fix i18n and UI minor details
2019-02-13 10:55:03 +01:00
Julian Herrero
5f4a369606 Deleting a booth shift with recounts or partial results.
Show a flash message that it's not possible to delete booth shifts
when they have associated recounts or partial results. Before an
execption was raised.
2019-02-12 18:59:51 +01:00
decabeza
6b62ba0e91 Show cached_votes_score on admin legislation proposals 2019-02-12 18:42:44 +01:00
decabeza
0ae1cdfc8c Replace total votes to cached_votes_score on legislation proposals
This show votes_score as result of votes_up minus votes_down
2019-02-12 18:42:41 +01:00
decabeza
5c44a3b982 Add cached_votes_score to legislation proposals 2019-02-12 18:42:39 +01:00
decabeza
4e4804e180 Replace total votes to cached_votes_score on debates
This show votes_score as result of votes_up minus votes_down
2019-02-12 18:42:35 +01:00
decabeza
73a0f999ad Add order to voted headings names 2019-02-12 17:19:36 +01:00
decabeza
3471cbb979 Fix hound warnings 2019-02-12 17:19:26 +01:00
voodoorai2000
f4b8099703 Simplify sql query 2019-02-12 17:18:38 +01:00
Marko Lovic
264c4e747b Improve User#headings_supported_within_group performance
Performs a single DB call instead of 3
2019-02-12 17:16:49 +01:00
Marko Lovic
3c9953e9e0 Make content assertion order-independent 2019-02-12 17:16:46 +01:00
Marko Lovic
4a2fae5e90 Add headings to "headings limit reached" alert msg 2019-02-12 17:16:40 +01:00
Marko Lovic
e47cbe2a10 Extract "supported headings" logic to User method
In preparation to use this method from views where
it doesn't make sense for it to be associated with
a specific investment.
2019-02-12 17:16:29 +01:00
Alberto
e76f483850 Merge pull request #3281 from consul/scss-lint
Replace sccs lint string quotes to double quotes
2019-02-11 20:44:04 +01:00
Alberto
f9b18667e6 Merge pull request #3280 from consul/next-filters
[Backport] Removes next/incoming filters
2019-02-11 20:43:09 +01:00
decabeza
acc7cf65e3 Replace single quotes to double quotes on scss files 2019-02-11 17:42:58 +01:00
decabeza
e8ad9f749e Fix hound warnings 2019-02-11 17:33:51 +01:00
decabeza
e7eade2b33 Add spec to legislatiorn processses with past filter
This filter was removed from admin view but keep existing on front views.
2019-02-11 17:28:18 +01:00
decabeza
6df471d082 Change layout on admin settings to prevent broken buttons 2019-02-11 15:41:52 +01:00
decabeza
bce8b8b0a3 Change locale switcher background color 2019-02-11 15:41:44 +01:00
decabeza
b4ecd07f1f Refactor social share messages 2019-02-11 15:41:35 +01:00
Julian Nicolas Herrero
5a50992773 Merge pull request #3275 from consul/legacy_legislation_cleanup
LegacyLegislation migration cleanup
2019-02-08 20:04:19 +01:00
Julian Nicolas Herrero
f89948136c Merge pull request #3274 from consul/backport_send_newsletter_emails_in_order
[Backport] Send newsletter emails in order
2019-02-08 20:00:09 +01:00
decabeza
62e53ee6cf Replace sccs lint string quotes to double quotes 2019-02-08 17:29:52 +01:00
Alberto
73ecdb13ea Merge pull request #3278 from consul/budget-alert
[Backport] Do not display alert when supporting in a group with a single heading
2019-02-08 15:36:33 +01:00
decabeza
9bcf673978 Remove admin legislation processes past filter i18n on all locales 2019-02-08 14:30:12 +01:00
decabeza
33fabe18b8 Remove admin legislation processes past filter 2019-02-08 14:30:08 +01:00
decabeza
1be7888831 Remove legislation processes next filter i18n on all locales 2019-02-08 14:30:01 +01:00
decabeza
060a4c684f Remove legislation processes next filter 2019-02-08 14:29:43 +01:00
decabeza
fd2c51cb4b Remove incoming polls filter i18n on all locales 2019-02-08 14:28:28 +01:00
decabeza
bc1679550b Remove incoming polls filter 2019-02-08 14:28:19 +01:00
Alberto
d76b618b87 Merge pull request #3277 from consul/colorpicker
Improve color picker on admin legislation process
2019-02-08 13:18:00 +01:00
decabeza
dfe7126ca0 Synchronize color inputs 2019-02-08 12:32:13 +01:00
decabeza
e68f5c0b77 Use labels for type text inputs 2019-02-08 12:29:00 +01:00
decabeza
8b295b14a3 Improve legislation processes form colors layout and add help text 2019-02-08 12:19:41 +01:00
decabeza
2d2633e14b Update related specs 2019-02-08 11:56:49 +01:00
decabeza
533c1fc0b7 Move labels form to activerecord.yml 2019-02-07 18:07:26 +01:00
rgarcia
55fb14ac14 do not display alert when supporting for whole city 2019-02-07 16:55:24 +01:00
Julian Herrero
54e59a8a58 LegacyLegislation migration cleanup
These legacy models are not used anymore.
2019-02-06 17:07:38 +01:00
Julian Herrero
fc69c21ebb Send newsletter emails in order
The list of emails for sending newsletters will always be ordered by
user creation date, so it will be easier to debug and to know for
which users the email has been sent.
2019-02-06 15:06:29 +01:00
Julian Nicolas Herrero
9da2783814 Merge pull request #3272 from consul/backport_show_unfeasible_and_unselected_investments
[Backport] Show unfeasible and unselected investments for finished budgets
2019-02-06 14:44:43 +01:00
Alberto
14e73e9086 Merge pull request #3269 from consul/homepage-feeds
[Backport] Change layout on homepage if feed debates and proposals are enabled
2019-02-06 14:32:46 +01:00