Angel Perez
4c2eedf8bd
Add French I18n keys for InformationTexts#index view
2018-07-26 19:08:29 -04:00
Angel Perez
dd42b7ffbd
Correctly highlight 'Custom information texts' option on menu if active
2018-07-26 19:08:02 -04:00
Angel Perez
277fb95f1c
Remove unnecessary I18n YAML files
2018-07-26 19:07:53 -04:00
Angel Perez
7255c6cb9b
Fallback to default I18n value if translation is not available
2018-07-26 19:07:47 -04:00
rgarcia
f521188cd0
Fix specs with recently updated I18n values
2018-07-26 19:07:38 -04:00
Angel Perez
b8b0f64e64
Rename emails key with mailers key
2018-07-26 19:07:28 -04:00
Angel Perez
ca57a65aae
Add missing I18n keys for InformationTexts#index view
2018-07-26 19:07:22 -04:00
Angel Perez
5c1e0bd949
Don't use hardcoded locale when appending/creating I18n keys
2018-07-26 19:07:11 -04:00
Angel Perez
983dcf0247
Move 'Custom information texts' menu option under 'Site content'
2018-07-26 19:07:04 -04:00
Angel Perez
a190e3e1e0
Fix exception for undeclared variable on InformationTexts#index action
2018-07-26 19:06:54 -04:00
Angel Perez
bc152acaf2
Don't evaluate a conditional and assign a variable on the same line
2018-07-26 19:06:44 -04:00
Angel Perez
f92006b3f3
Extract complex logic from InformationTexts#index into separate private methods
2018-07-26 19:06:37 -04:00
Angel Perez
26965b43ee
Clean I18n codebase
2018-07-26 19:06:29 -04:00
Raúl Fuentes
6d6dc32c38
Complete basic I18n backend and frontend
2018-07-26 19:06:19 -04:00
Raúl Fuentes
c18479e3ac
Add translations management pages
...
In the admin section of the application, a new page
has been added so that the admins are able to manage
the selected texts for translate.
The texts have been divided in different "sections",
depending on the nature of themselves (budgets, polls,
proposals, management, etc.). Each section has become a tab
with a form associated to edit all the texts for her.
When a language is added, it's added for ALL the texts in the
application. That means that, if an admin adds french for debates,
the french form will appear for the rest of the texts. That doesn't
mean that they need to fill all the texts, only that the languages
work for all of them instead of individually.
2018-07-26 19:05:58 -04:00
Alberto
4be40b9e5d
Merge pull request #2802 from consul/newsletter-delivery
...
Newsletter delivery
2018-07-26 18:20:50 +02:00
decabeza
69d67940d3
Removes unnecesary scope
2018-07-26 17:55:06 +02:00
decabeza
786a3949fd
Moves moderate_system_email from private method
2018-07-26 17:55:06 +02:00
María Checa
9d580e15f5
Adds activity tab for system emails
2018-07-26 17:55:06 +02:00
María Checa
f1e7b634ba
Adds moderate actions to proposal system notifications
2018-07-26 17:55:06 +02:00
María Checa
3cc8b1d123
Removes rake task to send proposal notifications
...
This action will be performed manually by admin users from the `admin/system_emails` view.
2018-07-26 17:55:06 +02:00
María Checa
eb8c021451
Adds button to send pending proposal notifications
2018-07-26 17:55:06 +02:00
decabeza
d58941ef9c
Updates text on notifications spec
2018-07-26 17:55:06 +02:00
María Checa
7bddd97ed3
Adds validation of email present in valid_email? method
2018-07-26 17:55:06 +02:00
María Checa
b7a1599fdf
Adds logic to send proposal notifications in batches
...
WIP batches tests
2018-07-26 17:55:06 +02:00
rgarcia
9264763ec5
Log newsletter emails sent
...
With this commit we are logging which emails have already received the
newsletter
This could be important if something goes wrong sending the newsletter,
to be able to identify which users have already received the newsletter
and be able to skip them
We’ve had to add a new action to the Activity model (email) and add
paranoia features to be able to deal gracefully with the default
`with_hidden` scope in Activities[1]
[1]
https://github.com/AyuntamientoMadrid/consul/blob/master/app/models/acti
vity.rb#L2
2018-07-26 17:55:06 +02:00
rgarcia
8960928a76
Skip invalid emails when sending newsletter
...
We were seeing an exception when sending some emails due to having
invalid format
With this commit we are skipping this invalid formatted emails when
sending the newsletter
2018-07-26 17:55:06 +02:00
rgarcia
3bc8fce5fa
Process newsletters deliveries asynchronously
...
We were seeing a timeout when queuing the 300.000+ emails to be
delivered
With this commit we are dealing asynchronously with this creations and
responding promptly, to avoid the web timeout of 30 seconds
2018-07-26 17:55:06 +02:00
Alberto
420fe20deb
Merge pull request #2804 from wairbut-m2c/backport-1541-fix_see_results_button
...
Adds logic to show 'see results' button only for finished budgets
2018-07-26 16:30:47 +02:00
Angel Perez
c240c57171
Add budget investment factory to fix failing scenario
...
Changes introduced in commits 41f66fa and dc87b75 will render the
'See results' button under `admin/budget_investments` only if a
finished budget has winner investments associated with it
2018-07-26 14:54:20 +02:00
María Checa
15a07ad4eb
Adds logic to show 'see results' button only for finished budgets
2018-07-26 14:31:42 +02:00
Alberto
db44dd1226
Merge pull request #2720 from wairbut-m2c/backport/moderation-index-positioning
...
Fix moderation index views information positioning
2018-07-26 14:18:11 +02:00
Alberto
b04b1bee46
Merge pull request #2801 from consul/proposal_authors_notifications
...
Prevent authors from receiving their own proposals notification emails
2018-07-26 14:12:14 +02:00
Alberto
89f2f53e75
Merge pull request #2799 from wairbut-m2c/backport-2588-fix_supports_filter
...
Fix `max_per_heading` filter in Admin budget investments list
2018-07-26 14:11:03 +02:00
Alberto
f93b1e24fb
Merge pull request #2797 from wairbut-m2c/fix-admin-budget-investments-spec
...
Fix order-dependent spec
2018-07-26 13:57:04 +02:00
Alberto
d17b628426
Merge branch 'master' into backport-2588-fix_supports_filter
2018-07-26 13:44:20 +02:00
Alberto
273781430c
Merge pull request #2800 from wairbut-m2c/backport-2589-investments_supports_order_filter
...
Change admin budget investments list order by supports from less to more
2018-07-26 13:43:28 +02:00
Alberto
163d2f6edf
Merge pull request #2788 from javierv/2769-fix_flaky_notifications_spec
...
Fix flaky spec: Moderate proposal notifications Hide
2018-07-26 13:27:10 +02:00
Alberto
9eacc5c5ff
Merge pull request #2753 from consul/unfeasibility-explanation
...
Fix display of unfeasibility explanation
2018-07-26 13:21:21 +02:00
Alberto
1aa8737ed5
Merge branch 'master' into proposal_authors_notifications
2018-07-26 13:00:54 +02:00
Alberto
52a2931fcb
Merge pull request #2798 from consul/activity_fix
...
Adds logic to handle activity actionable attributes
2018-07-26 12:58:33 +02:00
rgarcia
ab5f78120a
Fix specs
...
Git seems to have gotten confused and some specs where duplicated
and others missing
This commits restructures commits to sync them with Madrid's fork
2018-07-26 12:52:51 +02:00
María Checa
a62b5c1492
Removes author from Proposal#users_to_notify
2018-07-26 12:51:34 +02:00
María Checa
5dfefbbe2f
Change admin budget investments list order by supports from less to more
...
Sorting by id is in descending order and by title ascending
Backported from AyuntamientoMadrid/consul
2018-07-26 12:24:53 +02:00
Alberto
ad7166166c
Merge pull request #2796 from consul/remove_see_results_button
...
Removes permissions for admins to access unfinished budget results
2018-07-26 12:16:26 +02:00
María Checa
22210c46d0
Adds logic to handle activity actionable attributes
2018-07-26 11:46:35 +02:00
Alberto
25feaafce5
Merge pull request #2794 from consul/fix_notifiable_delegation
...
Try if notifiable has notifiable methods
2018-07-26 11:33:23 +02:00
Alberto
a2f2413286
Merge pull request #2793 from wairbut-m2c/backport-1427-signature_sheets_improvements
...
Added year to showed creation date and ordered by date DESC
2018-07-26 11:32:58 +02:00
Marko Lovic
b816a5be00
Fix order-dependent specs
...
Due to how DB IDs are assigned with AUTO INCREMENT, tests
cannot assume that any specific ID will be available.
2018-07-26 11:25:51 +02:00
María Checa
2dd5fe22a8
Removes permissions for admins to access unfinished budget results
2018-07-26 11:07:19 +02:00