Javi Martín
8064b53aad
Add variety to legislation process dev seeds
...
This way different processes will be in different phases and it will be
easier to test the application locally.
2018-10-03 22:06:19 +02:00
Javier Martín
132fea9c94
Merge pull request #2913 from papayalabs/2741-updates-translatable-custom-pages-reloaded
...
Updates translatable custom pages
2018-10-03 13:23:13 +02:00
Javier Martín
2775ae2b50
Merge pull request #2924 from consul/backport-1588-make-homepage-content-translatable
...
Make homepage content translatable
2018-10-03 13:20:49 +02:00
decabeza
dd11a040a6
Adds setting to enable or disable help page
2018-09-28 18:59:28 +02:00
Papaya Labs
914bfa645e
Updates translatable custom pages
2018-09-27 13:46:17 +02:00
Marko Lovic
832e6178d7
Add Spanish translation to Card seed data
...
Instead of using I18n for the field texts and forcing the
locale (e.g. `I18n.t('seeds...', locale: :es)`), I'm moving
content out of `config/locales/` and into the seed file.
This is because this content is less about reacting to different
locales (the locale would always be forced so we don't actually
use the main i18n functionality), and more about demonstrating
the "translatable fields" feature.
2018-09-26 16:09:09 +02:00
Javi Martín
5bb5cfa7fb
Make Widget::Card translatable
2018-09-26 16:09:09 +02:00
Raimond Garcia
4086220ebf
Merge pull request #2914 from microweb10/make_polls_translatable
...
Make polls translatable
2018-09-26 13:19:17 +02:00
Julian Herrero
888ae8e6d6
neutral_locale not needed anymore
2018-09-21 20:51:13 +02:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +02:00
Julian Herrero
5e6248d2ac
Make questions translatable
2018-09-20 17:11:53 +02:00
Julian Herrero
9495208518
Make polls translatable
2018-09-20 17:07:43 +02:00
Marko Lovic
64d72ca8e7
Enable JS in shared translatable test
...
Due to its markdown editor, the admin draft version page
requires JS to correctly render the draft version form.
2018-09-19 14:54:24 +02:00
Marko Lovic
ee15295f54
Add migration for all collaborative legislation translations
2018-09-19 14:54:24 +02:00
Marko Lovic
0731b137cf
Add both English and Spanish translations to Admin Notification seeds
2018-09-19 12:15:45 +02:00
Marko Lovic
f6749049c9
Make Admin Notifications translatable
2018-09-19 12:15:26 +02:00
Raimond Garcia
ea72cd058b
Merge pull request #2876 from javierm/ckeditor4_update
...
Ckeditor4 update
2018-09-17 23:02:50 +02:00
Raimond Garcia
cae210c155
Merge pull request #2887 from wairbut-m2c/backport/db_queries
...
[Backport] Replace `.all.each` with `.find_each` to reduce memory usage
2018-09-17 19:06:46 +02:00
Javi Martín
9cfa07ff1d
Remove unrelated schema changes
2018-09-12 12:35:28 +02:00
Javi Martín
43e83889ff
Simplify CKEditor authorization
...
We can use the `config.authorize_with` option, so we don't need to copy
the controller in order to load and authorize resource.
Besides, only administrators can upload images, so we don't need to
track the image's user id.
2018-09-12 12:35:28 +02:00
Javi Martín
7347874f4b
Remove inaccurate comment
...
It was automatically added by `rails g ckeditor:install`.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
d574657b77
Fixes for the review made by @javierm
...
this commit will be merged with the others when the chages
are accepted
2018-09-12 12:35:28 +02:00
Raúl Fuentes
424535c1ae
Add models needed to include images on ckeditor4
2018-09-12 12:35:28 +02:00
Marko Lovic
c7fcdd9b0e
Use standard locale names for Globalize
...
It turns out it is not necessary to downcase and underscore
locale names to use the globalize-accessor gem. The gem
will automatically underscore the locale name when defining and
calling the accessor methods.
2018-09-11 18:48:14 +02:00
Angel Perez
b6fe7ca9a7
Replace .all.each with .find_each when seeding the DB
2018-09-10 11:39:38 -04:00
Raimond Garcia
4f2ed27f8c
Merge pull request #2865 from consul/backport_1585-make_banners_translatable
...
[Backport] Make banners translatable
2018-09-10 16:41:33 +02:00
Marko Lovic
0fa4b60f39
Make Banners translatable
2018-08-30 16:29:29 +02:00
Angel Perez
3dd525f9b9
Remove Madrid-specific DB attribute from Legislation::Proposal seeds
2018-08-06 10:14:49 -04:00
Angel Perez
f568f9baab
Add Legislation::Proposal seeds
2018-08-06 09:39:17 -04:00
Raimond Garcia
2c79197a05
Merge pull request #2809 from wairbut-m2c/backport/translatable-content-for-admin
...
Basic content for I18n on Admin panel
2018-07-27 18:01:00 +02:00
Alberto
fb19aafee7
Merge pull request #2778 from wairbut-m2c/backport/investments-moderation
...
Allow budget investments to be moderated
2018-07-27 12:34:17 +02:00
Raúl Fuentes
6d6dc32c38
Complete basic I18n backend and frontend
2018-07-26 19:06:19 -04: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
Bertocq
a883e842ba
Make admin notifications seed data translatable
2018-07-25 18:35:34 +02:00
Bertocq
2aa4b5cad6
Add AdminNotification seed data
2018-07-25 18:34:33 +02:00
Bertocq
b556fe9000
Create AdminNotification database table
2018-07-25 18:29:10 +02:00
Juanjo Bazán
ffd4fb32f4
adds images to budget::investments
2018-07-24 11:22:15 +02:00
Angel Perez
10e755bffd
Remove deprecated image and style attributes when seeding the DB
2018-07-23 11:56:08 -04:00
Raimond Garcia
ae0f0f4f5f
Merge pull request #2382 from wairbut-m2c/iagirre-admin-banner-migration
...
Migration to remove images and styles from banners
2018-07-23 14:45:37 +02:00
Angel Perez
335f78ae24
Migrate DB to add moderation attrs to budget_investments table
2018-07-20 18:02:37 -04:00
decabeza
e101458891
Removes custom content on seeds
2018-07-20 18:49:54 +02:00
Alberto
3c517462e4
Merge pull request #2760 from wairbut-m2c/backport/user-recommendations
...
Debates and proposals recommendations for users
2018-07-16 13:54:54 +02:00
Raimond Garcia
f2c780fac6
Merge pull request #2768 from AuiDrome/add_proposal_images_on_dev_seeds
...
add proposal image on dev_seeds task
2018-07-16 10:35:55 +02:00
Fernando Garcia Samblas
0cf26b8770
remove add_images_to argument spaces
...
Sorry, at work we have a co-worker (@rochgs) that thanks this "spaced" style
because of his visual handicap. Here you are!! ;)
2018-07-16 08:48:24 +02:00
Angel Perez
0b7967440f
Recommendations for users are enabled by default
2018-07-15 21:28:58 -04:00
Angel Perez
fefa225f8a
Add new settings for dev seeds for Debates and Proposals recommendations
2018-07-15 21:28:57 -04:00
Angel Perez
a58f6a2662
Enable 'Recommended proposals' setting for users
2018-07-15 21:28:57 -04:00
Angel Perez
522c206f6d
Enable 'Recommended debates' setting for users
2018-07-15 21:28:57 -04:00
decabeza
bdb3f30e40
Adds recommendations on proposals index
2018-07-15 21:28:57 -04:00
decabeza
36a5ff39b8
Adds recommendations on debates index
2018-07-15 21:28:57 -04:00