decidim-core 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_core_manifest.js +1 -0
  3. data/app/assets/javascripts/decidim/notifications.js.es6 +33 -0
  4. data/app/assets/stylesheets/decidim/extras/_meeting-registrations.scss +11 -0
  5. data/app/assets/stylesheets/decidim/modules/_extra.scss +4 -0
  6. data/app/assets/stylesheets/decidim/modules/_process-nav.scss +14 -0
  7. data/app/commands/decidim/create_follow.rb +40 -0
  8. data/app/commands/decidim/create_omniauth_registration.rb +0 -2
  9. data/app/commands/decidim/create_registration.rb +1 -3
  10. data/app/commands/decidim/create_report.rb +7 -7
  11. data/app/commands/decidim/delete_follow.rb +37 -0
  12. data/app/commands/decidim/invite_user.rb +1 -3
  13. data/app/commands/decidim/update_notifications_settings.rb +1 -2
  14. data/app/constraints/decidim/current_feature.rb +3 -4
  15. data/app/controllers/concerns/decidim/settings.rb +1 -1
  16. data/app/controllers/decidim/features/base_controller.rb +5 -6
  17. data/app/controllers/decidim/follows_controller.rb +45 -0
  18. data/app/controllers/decidim/notifications_controller.rb +39 -0
  19. data/app/controllers/decidim/pages_controller.rb +2 -2
  20. data/app/controllers/decidim/scopes_controller.rb +2 -0
  21. data/app/controllers/decidim/widgets_controller.rb +3 -3
  22. data/app/forms/decidim/follow_form.rb +20 -0
  23. data/app/forms/decidim/invite_user_form.rb +1 -1
  24. data/app/forms/decidim/notifications_settings_form.rb +2 -4
  25. data/app/helpers/decidim/action_authorization_helper.rb +2 -1
  26. data/app/helpers/decidim/decidim_form_helper.rb +4 -0
  27. data/app/helpers/decidim/feature_path_helper.rb +2 -13
  28. data/app/helpers/decidim/icon_helper.rb +26 -8
  29. data/app/helpers/decidim/paginate_helper.rb +1 -1
  30. data/app/helpers/decidim/scopes_helper.rb +1 -1
  31. data/app/jobs/decidim/email_notification_generator_job.rb +12 -0
  32. data/app/jobs/decidim/export_job.rb +1 -3
  33. data/app/jobs/decidim/notification_generator_for_recipient_job.rb +14 -0
  34. data/app/jobs/decidim/notification_generator_job.rb +12 -0
  35. data/app/mailers/decidim/export_mailer.rb +6 -7
  36. data/app/mailers/decidim/notification_mailer.rb +20 -0
  37. data/app/mailers/decidim/reported_mailer.rb +3 -3
  38. data/app/models/decidim/abilities/admin_ability.rb +0 -1
  39. data/app/models/decidim/abilities/base_ability.rb +8 -0
  40. data/app/models/decidim/abilities/everyone_ability.rb +0 -2
  41. data/app/models/decidim/abilities/participatory_process_admin_ability.rb +1 -1
  42. data/app/models/decidim/abilities/participatory_process_collaborator_ability.rb +1 -1
  43. data/app/models/decidim/category.rb +4 -4
  44. data/app/models/decidim/feature.rb +29 -4
  45. data/app/models/decidim/follow.rb +10 -0
  46. data/app/models/decidim/moderation.rb +1 -1
  47. data/app/models/decidim/notification.rb +12 -0
  48. data/app/models/decidim/scope.rb +8 -8
  49. data/app/models/decidim/user.rb +11 -1
  50. data/app/presenters/decidim/home_stats_presenter.rb +1 -1
  51. data/app/presenters/decidim/resource_locator_presenter.rb +3 -18
  52. data/app/queries/decidim/participatory_processes_with_user_role.rb +1 -1
  53. data/app/services/decidim/email_notification_generator.rb +63 -0
  54. data/app/services/decidim/events_manager.rb +41 -0
  55. data/app/services/decidim/notification_generator.rb +51 -0
  56. data/app/services/decidim/notification_generator_for_recipient.rb +50 -0
  57. data/app/uploaders/decidim/attachment_uploader.rb +1 -1
  58. data/app/views/decidim/authorizations/first_login.html.erb +2 -2
  59. data/app/views/decidim/follows/update_button.js.erb +3 -0
  60. data/app/views/decidim/notification_mailer/event_received.html.erb +9 -0
  61. data/app/views/decidim/notifications/_notification.html.erb +18 -0
  62. data/app/views/decidim/notifications/index.html.erb +32 -0
  63. data/app/views/decidim/notifications_settings/show.html.erb +3 -10
  64. data/app/views/decidim/shared/_follow_button.html.erb +19 -0
  65. data/app/views/layouts/decidim/_head.html.erb +1 -0
  66. data/app/views/layouts/decidim/_head_extra.html.erb +7 -0
  67. data/app/views/layouts/decidim/_user_menu.html.erb +1 -0
  68. data/app/views/layouts/decidim/_wrapper.html.erb +3 -0
  69. data/app/views/layouts/decidim/widget.html.erb +3 -3
  70. data/app/views/pages/home/_hero.html.erb +1 -1
  71. data/app/views/pages/home/_highlighted_processes.html.erb +3 -3
  72. data/config/locales/ca.yml +29 -74
  73. data/config/locales/en.yml +23 -71
  74. data/config/locales/es.yml +31 -78
  75. data/config/locales/eu.yml +61 -65
  76. data/config/locales/fi.yml +91 -51
  77. data/config/locales/fr.yml +40 -83
  78. data/config/locales/it.yml +129 -54
  79. data/config/locales/nl.yml +90 -51
  80. data/config/locales/pl.yml +319 -10
  81. data/config/locales/uk.yml +400 -0
  82. data/config/routes.rb +8 -14
  83. data/db/migrate/20170720120231_make_moderations_polymorphic.rb +29 -0
  84. data/db/migrate/20170726145242_make_categories_polymorphic.rb +27 -0
  85. data/db/migrate/20170807123535_create_decidim_follows.rb +20 -0
  86. data/db/migrate/20170808071019_create_decidim_notifications.rb +13 -0
  87. data/db/migrate/20170906091718_add_extra_to_notifications.rb +7 -0
  88. data/db/migrate/20170912082054_add_emails_on_notifications_flag_to_user.rb +7 -0
  89. data/db/migrate/20170913092351_add_header_snippets_to_organizations.rb +7 -0
  90. data/db/migrate/20170914075721_remove_followable_index_from_follows.rb +7 -0
  91. data/db/migrate/20170914092116_remove_comment_and_replies_notifications_from_users.rb +8 -0
  92. data/db/seeds.rb +2 -108
  93. data/lib/decidim/core.rb +46 -8
  94. data/lib/decidim/core/engine.rb +20 -6
  95. data/lib/decidim/core/test.rb +3 -0
  96. data/lib/decidim/core/test/factories.rb +37 -75
  97. data/lib/decidim/core/test/shared_examples/comments_examples.rb +0 -26
  98. data/lib/decidim/core/test/shared_examples/follows_examples.rb +37 -0
  99. data/lib/decidim/core/test/shared_examples/manage_moderations_examples.rb +1 -1
  100. data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +1 -1
  101. data/lib/decidim/core/test/shared_examples/reportable.rb +4 -4
  102. data/lib/decidim/core/test/shared_examples/reports_examples.rb +1 -1
  103. data/lib/decidim/core/test/shared_examples/scope_helper_examples.rb +41 -0
  104. data/lib/decidim/core/test/shared_examples/user_localised_email_examples.rb +25 -0
  105. data/lib/decidim/core/version.rb +1 -1
  106. data/lib/decidim/engine_router.rb +54 -0
  107. data/lib/decidim/events.rb +9 -0
  108. data/lib/decidim/events/base_event.rb +70 -0
  109. data/lib/decidim/events/email_event.rb +39 -0
  110. data/lib/decidim/events/notification_event.rb +32 -0
  111. data/lib/decidim/exporters.rb +7 -0
  112. data/lib/decidim/exporters/export_data.rb +14 -0
  113. data/lib/decidim/feature_manifest.rb +2 -2
  114. data/lib/decidim/features/namer.rb +1 -1
  115. data/lib/decidim/followable.rb +13 -0
  116. data/lib/decidim/form_builder.rb +1 -1
  117. data/lib/decidim/has_feature.rb +1 -1
  118. data/lib/decidim/has_settings.rb +19 -15
  119. data/lib/decidim/manifest_registry.rb +1 -3
  120. data/lib/decidim/participable.rb +80 -0
  121. data/lib/decidim/participatory_space_manifest.rb +40 -0
  122. data/lib/decidim/query_extensions.rb +1 -1
  123. data/lib/decidim/resource_manifest.rb +1 -1
  124. data/lib/decidim/settings_manifest.rb +0 -4
  125. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.uk.js +14 -0
  126. data/vendor/assets/javascripts/morphdom.js +14 -5
  127. metadata +70 -79
  128. data/app/assets/images/decidim/process.svg +0 -10
  129. data/app/constraints/decidim/current_participatory_process.rb +0 -35
  130. data/app/controllers/concerns/decidim/needs_participatory_process.rb +0 -46
  131. data/app/controllers/decidim/participatory_process_groups_controller.rb +0 -26
  132. data/app/controllers/decidim/participatory_process_steps_controller.rb +0 -18
  133. data/app/controllers/decidim/participatory_process_widgets_controller.rb +0 -19
  134. data/app/controllers/decidim/participatory_processes_controller.rb +0 -49
  135. data/app/helpers/decidim/participatory_process_helper.rb +0 -17
  136. data/app/helpers/decidim/participatory_process_steps_helper.rb +0 -18
  137. data/app/models/decidim/participatory_process.rb +0 -61
  138. data/app/models/decidim/participatory_process_group.rb +0 -15
  139. data/app/models/decidim/participatory_process_step.rb +0 -39
  140. data/app/presenters/decidim/participatory_process_stats_presenter.rb +0 -50
  141. data/app/queries/decidim/highlighted_participatory_processes.rb +0 -10
  142. data/app/queries/decidim/organization_participatory_process_groups.rb +0 -14
  143. data/app/queries/decidim/organization_participatory_processes.rb +0 -14
  144. data/app/queries/decidim/organization_prioritized_participatory_processes.rb +0 -18
  145. data/app/queries/decidim/organization_published_participatory_processes.rb +0 -17
  146. data/app/queries/decidim/prioritized_participatory_processes.rb +0 -11
  147. data/app/queries/decidim/promoted_participatory_processes.rb +0 -10
  148. data/app/queries/decidim/published_participatory_processes.rb +0 -10
  149. data/app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb +0 -22
  150. data/app/views/decidim/participatory_process_groups/show.html.erb +0 -11
  151. data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
  152. data/app/views/decidim/participatory_process_steps/_timeline.html.erb +0 -7
  153. data/app/views/decidim/participatory_process_steps/index.html.erb +0 -14
  154. data/app/views/decidim/participatory_process_widgets/show.html.erb +0 -17
  155. data/app/views/decidim/participatory_processes/_no_processes_yet.html.erb +0 -3
  156. data/app/views/decidim/participatory_processes/_order_by_processes.html.erb +0 -3
  157. data/app/views/decidim/participatory_processes/_participatory_process.html.erb +0 -28
  158. data/app/views/decidim/participatory_processes/_promoted_process.html.erb +0 -32
  159. data/app/views/decidim/participatory_processes/_statistics.html.erb +0 -10
  160. data/app/views/decidim/participatory_processes/index.html.erb +0 -17
  161. data/app/views/decidim/participatory_processes/show.html.erb +0 -85
  162. data/app/views/layouts/decidim/_process_header.html.erb +0 -65
  163. data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -27
  164. data/app/views/layouts/decidim/participatory_process.html.erb +0 -30
  165. data/config/i18n-tasks.yml +0 -138
  166. data/db/migrate/20161005130108_add_participatory_processes.rb +0 -19
  167. data/db/migrate/20161010102356_translate_processes.rb +0 -17
  168. data/db/migrate/20161011125616_add_hero_image_to_processes.rb +0 -7
  169. data/db/migrate/20161011141033_add_banner_image_to_processes.rb +0 -7
  170. data/db/migrate/20161013134732_add_promoted_flag_to_processes.rb +0 -7
  171. data/db/migrate/20161017085822_add_participatory_process_steps.rb +0 -18
  172. data/db/migrate/20161019072016_add_active_flag_to_step.rb +0 -13
  173. data/db/migrate/20161020080756_add_position_to_steps.rb +0 -9
  174. data/db/migrate/20161025125300_add_published_at_to_processes.rb +0 -7
  175. data/db/migrate/20161107152228_remove_not_null_on_step_position.rb +0 -7
  176. data/db/migrate/20161110092735_add_index_for_process_slug_organization.rb +0 -10
  177. data/db/migrate/20161116115156_create_attachments.rb +0 -18
  178. data/db/migrate/20170116135237_loosen_step_requirements.rb +0 -8
  179. data/db/migrate/20170123134023_make_attachments_polymorphic.rb +0 -20
  180. data/db/migrate/20170125135937_rename_attachable_to_attached_to.rb +0 -13
  181. data/db/migrate/20170126151123_add_extra_info_to_processes.rb +0 -10
  182. data/db/migrate/20170206083118_rename_extra_info_on_processes.rb +0 -14
  183. data/db/migrate/20170220110740_remove_steps_short_description.rb +0 -23
  184. data/db/migrate/20170221094835_add_scopes_to_processes.rb +0 -8
  185. data/db/migrate/20170228142440_add_participatory_process_groups.rb +0 -17
  186. data/db/migrate/20170404132616_change_steps_end_and_start_date_to_date.rb +0 -8
  187. data/db/migrate/20170725085104_add_show_statistics_to_participatory_processes.rb +0 -7
  188. data/db/migrate/20170804125402_attachment_description_nullable.rb +0 -7
  189. data/db/migrate/20170808080905_add_announcement_to_participatory_processes.rb +0 -7
  190. data/db/migrate/20170809084005_add_scopes_enabled_to_participatory_processes.rb +0 -7
  191. data/db/seeds/Exampledocument.pdf +0 -0
  192. data/db/seeds/city.jpeg +0 -0
  193. data/db/seeds/city2.jpeg +0 -0
  194. data/lib/decidim/notifiable.rb +0 -22
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-21 00:00:00.000000000 Z
13
+ date: 2017-09-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -466,70 +466,84 @@ dependencies:
466
466
  requirements:
467
467
  - - '='
468
468
  - !ruby/object:Gem::Version
469
- version: 0.5.1
469
+ version: 0.6.0
470
470
  type: :runtime
471
471
  prerelease: false
472
472
  version_requirements: !ruby/object:Gem::Requirement
473
473
  requirements:
474
474
  - - '='
475
475
  - !ruby/object:Gem::Version
476
- version: 0.5.1
476
+ version: 0.6.0
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: decidim-dev
479
479
  requirement: !ruby/object:Gem::Requirement
480
480
  requirements:
481
481
  - - '='
482
482
  - !ruby/object:Gem::Version
483
- version: 0.5.1
483
+ version: 0.6.0
484
484
  type: :development
485
485
  prerelease: false
486
486
  version_requirements: !ruby/object:Gem::Requirement
487
487
  requirements:
488
488
  - - '='
489
489
  - !ruby/object:Gem::Version
490
- version: 0.5.1
490
+ version: 0.6.0
491
+ - !ruby/object:Gem::Dependency
492
+ name: decidim-participatory_processes
493
+ requirement: !ruby/object:Gem::Requirement
494
+ requirements:
495
+ - - '='
496
+ - !ruby/object:Gem::Version
497
+ version: 0.6.0
498
+ type: :development
499
+ prerelease: false
500
+ version_requirements: !ruby/object:Gem::Requirement
501
+ requirements:
502
+ - - '='
503
+ - !ruby/object:Gem::Version
504
+ version: 0.6.0
491
505
  - !ruby/object:Gem::Dependency
492
506
  name: decidim-proposals
493
507
  requirement: !ruby/object:Gem::Requirement
494
508
  requirements:
495
509
  - - '='
496
510
  - !ruby/object:Gem::Version
497
- version: 0.5.1
511
+ version: 0.6.0
498
512
  type: :development
499
513
  prerelease: false
500
514
  version_requirements: !ruby/object:Gem::Requirement
501
515
  requirements:
502
516
  - - '='
503
517
  - !ruby/object:Gem::Version
504
- version: 0.5.1
518
+ version: 0.6.0
505
519
  - !ruby/object:Gem::Dependency
506
520
  name: decidim-meetings
507
521
  requirement: !ruby/object:Gem::Requirement
508
522
  requirements:
509
523
  - - '='
510
524
  - !ruby/object:Gem::Version
511
- version: 0.5.1
525
+ version: 0.6.0
512
526
  type: :development
513
527
  prerelease: false
514
528
  version_requirements: !ruby/object:Gem::Requirement
515
529
  requirements:
516
530
  - - '='
517
531
  - !ruby/object:Gem::Version
518
- version: 0.5.1
532
+ version: 0.6.0
519
533
  - !ruby/object:Gem::Dependency
520
534
  name: decidim-results
521
535
  requirement: !ruby/object:Gem::Requirement
522
536
  requirements:
523
537
  - - '='
524
538
  - !ruby/object:Gem::Version
525
- version: 0.5.1
539
+ version: 0.6.0
526
540
  type: :development
527
541
  prerelease: false
528
542
  version_requirements: !ruby/object:Gem::Requirement
529
543
  requirements:
530
544
  - - '='
531
545
  - !ruby/object:Gem::Version
532
- version: 0.5.1
546
+ version: 0.6.0
533
547
  description: Adds core features so other engines can hook into the framework.
534
548
  email:
535
549
  - josepjaume@gmail.com
@@ -560,7 +574,6 @@ files:
560
574
  - app/assets/images/decidim/cc-badge.png
561
575
  - app/assets/images/decidim/default-avatar.svg
562
576
  - app/assets/images/decidim/icons.svg
563
- - app/assets/images/decidim/process.svg
564
577
  - app/assets/javascripts/decidim.js.es6
565
578
  - app/assets/javascripts/decidim/account_form.js.es6
566
579
  - app/assets/javascripts/decidim/append_elements.js.es6
@@ -572,6 +585,7 @@ files:
572
585
  - app/assets/javascripts/decidim/history.js.es6
573
586
  - app/assets/javascripts/decidim/impersonation.js.es6
574
587
  - app/assets/javascripts/decidim/map.js.es6.erb
588
+ - app/assets/javascripts/decidim/notifications.js.es6
575
589
  - app/assets/javascripts/decidim/orders.js.es6
576
590
  - app/assets/javascripts/decidim/select2.field.js.es6
577
591
  - app/assets/javascripts/decidim/select2.js.es6
@@ -590,6 +604,7 @@ files:
590
604
  - app/assets/stylesheets/decidim/extras/_impersonation-bar.scss
591
605
  - app/assets/stylesheets/decidim/extras/_label-required.scss
592
606
  - app/assets/stylesheets/decidim/extras/_leaflet.scss
607
+ - app/assets/stylesheets/decidim/extras/_meeting-registrations.scss
593
608
  - app/assets/stylesheets/decidim/extras/_process_stats.scss
594
609
  - app/assets/stylesheets/decidim/extras/_proposal_form.scss
595
610
  - app/assets/stylesheets/decidim/extras/_quill.scss
@@ -654,9 +669,11 @@ files:
654
669
  - app/assets/stylesheets/decidim/utils/_settings.scss
655
670
  - app/assets/stylesheets/decidim/utils/_toggle-expand.scss
656
671
  - app/commands/decidim/authorize_user.rb
672
+ - app/commands/decidim/create_follow.rb
657
673
  - app/commands/decidim/create_omniauth_registration.rb
658
674
  - app/commands/decidim/create_registration.rb
659
675
  - app/commands/decidim/create_report.rb
676
+ - app/commands/decidim/delete_follow.rb
660
677
  - app/commands/decidim/destroy_account.rb
661
678
  - app/commands/decidim/invite_user.rb
662
679
  - app/commands/decidim/invite_user_again.rb
@@ -664,7 +681,6 @@ files:
664
681
  - app/commands/decidim/update_account.rb
665
682
  - app/commands/decidim/update_notifications_settings.rb
666
683
  - app/constraints/decidim/current_feature.rb
667
- - app/constraints/decidim/current_participatory_process.rb
668
684
  - app/controllers/concerns/decidim/action_authorization.rb
669
685
  - app/controllers/concerns/decidim/devise_controllers.rb
670
686
  - app/controllers/concerns/decidim/filter_resource.rb
@@ -673,7 +689,6 @@ files:
673
689
  - app/controllers/concerns/decidim/locale_switcher.rb
674
690
  - app/controllers/concerns/decidim/needs_authorization.rb
675
691
  - app/controllers/concerns/decidim/needs_organization.rb
676
- - app/controllers/concerns/decidim/needs_participatory_process.rb
677
692
  - app/controllers/concerns/decidim/paginable.rb
678
693
  - app/controllers/concerns/decidim/payload_info.rb
679
694
  - app/controllers/concerns/decidim/settings.rb
@@ -690,14 +705,12 @@ files:
690
705
  - app/controllers/decidim/devise/sessions_controller.rb
691
706
  - app/controllers/decidim/errors_controller.rb
692
707
  - app/controllers/decidim/features/base_controller.rb
708
+ - app/controllers/decidim/follows_controller.rb
693
709
  - app/controllers/decidim/locales_controller.rb
710
+ - app/controllers/decidim/notifications_controller.rb
694
711
  - app/controllers/decidim/notifications_settings_controller.rb
695
712
  - app/controllers/decidim/own_user_groups_controller.rb
696
713
  - app/controllers/decidim/pages_controller.rb
697
- - app/controllers/decidim/participatory_process_groups_controller.rb
698
- - app/controllers/decidim/participatory_process_steps_controller.rb
699
- - app/controllers/decidim/participatory_process_widgets_controller.rb
700
- - app/controllers/decidim/participatory_processes_controller.rb
701
714
  - app/controllers/decidim/reports_controller.rb
702
715
  - app/controllers/decidim/scopes_controller.rb
703
716
  - app/controllers/decidim/static_map_controller.rb
@@ -705,6 +718,7 @@ files:
705
718
  - app/forms/decidim/account_form.rb
706
719
  - app/forms/decidim/attachment_form.rb
707
720
  - app/forms/decidim/delete_account_form.rb
721
+ - app/forms/decidim/follow_form.rb
708
722
  - app/forms/decidim/form.rb
709
723
  - app/forms/decidim/invite_user_form.rb
710
724
  - app/forms/decidim/notifications_settings_form.rb
@@ -733,8 +747,6 @@ files:
733
747
  - app/helpers/decidim/omniauth_helper.rb
734
748
  - app/helpers/decidim/orders_helper.rb
735
749
  - app/helpers/decidim/paginate_helper.rb
736
- - app/helpers/decidim/participatory_process_helper.rb
737
- - app/helpers/decidim/participatory_process_steps_helper.rb
738
750
  - app/helpers/decidim/replace_buttons_helper.rb
739
751
  - app/helpers/decidim/resource_helper.rb
740
752
  - app/helpers/decidim/scopes_helper.rb
@@ -742,12 +754,16 @@ files:
742
754
  - app/helpers/decidim/user_profile_helper.rb
743
755
  - app/helpers/decidim/widget_urls_helper.rb
744
756
  - app/jobs/decidim/application_job.rb
757
+ - app/jobs/decidim/email_notification_generator_job.rb
745
758
  - app/jobs/decidim/export_job.rb
759
+ - app/jobs/decidim/notification_generator_for_recipient_job.rb
760
+ - app/jobs/decidim/notification_generator_job.rb
746
761
  - app/mailers/concerns/decidim/localised_mailer.rb
747
762
  - app/mailers/decidim/application_mailer.rb
748
763
  - app/mailers/decidim/decidim_devise_mailer.rb
749
764
  - app/mailers/decidim/export_mailer.rb
750
765
  - app/mailers/decidim/newsletter_mailer.rb
766
+ - app/mailers/decidim/notification_mailer.rb
751
767
  - app/mailers/decidim/reported_mailer.rb
752
768
  - app/middleware/decidim/current_organization.rb
753
769
  - app/models/decidim/abilities/admin_ability.rb
@@ -763,14 +779,13 @@ files:
763
779
  - app/models/decidim/categorization.rb
764
780
  - app/models/decidim/category.rb
765
781
  - app/models/decidim/feature.rb
782
+ - app/models/decidim/follow.rb
766
783
  - app/models/decidim/identity.rb
767
784
  - app/models/decidim/impersonation_log.rb
768
785
  - app/models/decidim/moderation.rb
769
786
  - app/models/decidim/newsletter.rb
787
+ - app/models/decidim/notification.rb
770
788
  - app/models/decidim/organization.rb
771
- - app/models/decidim/participatory_process.rb
772
- - app/models/decidim/participatory_process_group.rb
773
- - app/models/decidim/participatory_process_step.rb
774
789
  - app/models/decidim/participatory_process_user_role.rb
775
790
  - app/models/decidim/report.rb
776
791
  - app/models/decidim/resource_link.rb
@@ -783,21 +798,16 @@ files:
783
798
  - app/presenters/decidim/home_stats_presenter.rb
784
799
  - app/presenters/decidim/menu_item_presenter.rb
785
800
  - app/presenters/decidim/menu_presenter.rb
786
- - app/presenters/decidim/participatory_process_stats_presenter.rb
787
801
  - app/presenters/decidim/resource_locator_presenter.rb
788
802
  - app/queries/decidim/freetext_scopes.rb
789
- - app/queries/decidim/highlighted_participatory_processes.rb
790
- - app/queries/decidim/organization_participatory_process_groups.rb
791
- - app/queries/decidim/organization_participatory_processes.rb
792
- - app/queries/decidim/organization_prioritized_participatory_processes.rb
793
- - app/queries/decidim/organization_published_participatory_processes.rb
794
803
  - app/queries/decidim/participatory_processes_with_user_role.rb
795
- - app/queries/decidim/prioritized_participatory_processes.rb
796
- - app/queries/decidim/promoted_participatory_processes.rb
797
- - app/queries/decidim/published_participatory_processes.rb
798
804
  - app/queries/decidim/stats_users_count.rb
799
805
  - app/services/decidim/action_authorizer.rb
800
806
  - app/services/decidim/authorization_handler.rb
807
+ - app/services/decidim/email_notification_generator.rb
808
+ - app/services/decidim/events_manager.rb
809
+ - app/services/decidim/notification_generator.rb
810
+ - app/services/decidim/notification_generator_for_recipient.rb
801
811
  - app/services/decidim/resource_search.rb
802
812
  - app/services/decidim/static_map_generator.rb
803
813
  - app/uploaders/decidim/application_uploader.rb
@@ -838,23 +848,14 @@ files:
838
848
  - app/views/decidim/errors/internal_server_error.html.erb
839
849
  - app/views/decidim/errors/not_found.html.erb
840
850
  - app/views/decidim/export_mailer/export.html.erb
851
+ - app/views/decidim/follows/update_button.js.erb
841
852
  - app/views/decidim/newsletter_mailer/newsletter.html.erb
853
+ - app/views/decidim/notification_mailer/event_received.html.erb
854
+ - app/views/decidim/notifications/_notification.html.erb
855
+ - app/views/decidim/notifications/index.html.erb
842
856
  - app/views/decidim/notifications_settings/show.html.erb
843
857
  - app/views/decidim/own_user_groups/index.html.erb
844
858
  - app/views/decidim/pages/index.html.erb
845
- - app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb
846
- - app/views/decidim/participatory_process_groups/show.html.erb
847
- - app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb
848
- - app/views/decidim/participatory_process_steps/_timeline.html.erb
849
- - app/views/decidim/participatory_process_steps/index.html.erb
850
- - app/views/decidim/participatory_process_widgets/show.html.erb
851
- - app/views/decidim/participatory_processes/_no_processes_yet.html.erb
852
- - app/views/decidim/participatory_processes/_order_by_processes.html.erb
853
- - app/views/decidim/participatory_processes/_participatory_process.html.erb
854
- - app/views/decidim/participatory_processes/_promoted_process.html.erb
855
- - app/views/decidim/participatory_processes/_statistics.html.erb
856
- - app/views/decidim/participatory_processes/index.html.erb
857
- - app/views/decidim/participatory_processes/show.html.erb
858
859
  - app/views/decidim/reported_mailer/hide.html.erb
859
860
  - app/views/decidim/reported_mailer/report.html.erb
860
861
  - app/views/decidim/shared/_action_authorization_modal.html.erb
@@ -864,6 +865,7 @@ files:
864
865
  - app/views/decidim/shared/_embed_modal.html.erb
865
866
  - app/views/decidim/shared/_feature_announcement.html.erb
866
867
  - app/views/decidim/shared/_flag_modal.html.erb
868
+ - app/views/decidim/shared/_follow_button.html.erb
867
869
  - app/views/decidim/shared/_login_modal.html.erb
868
870
  - app/views/decidim/shared/_orders.html.erb
869
871
  - app/views/decidim/shared/_results_per_page.html.erb
@@ -897,14 +899,11 @@ files:
897
899
  - app/views/layouts/decidim/_language_chooser.html.erb
898
900
  - app/views/layouts/decidim/_logo.html.erb
899
901
  - app/views/layouts/decidim/_mailer_logo.html.erb
900
- - app/views/layouts/decidim/_process_header.html.erb
901
- - app/views/layouts/decidim/_process_header_steps.html.erb
902
902
  - app/views/layouts/decidim/_social_media_links.html.erb
903
903
  - app/views/layouts/decidim/_user_menu.html.erb
904
904
  - app/views/layouts/decidim/_wrapper.html.erb
905
905
  - app/views/layouts/decidim/application.html.erb
906
906
  - app/views/layouts/decidim/mailer.html.erb
907
- - app/views/layouts/decidim/participatory_process.html.erb
908
907
  - app/views/layouts/decidim/user_profile.html.erb
909
908
  - app/views/layouts/decidim/widget.html.erb
910
909
  - app/views/pages/decidim_page.html.erb
@@ -915,7 +914,6 @@ files:
915
914
  - app/views/pages/home/_highlighted_processes.html.erb
916
915
  - app/views/pages/home/_statistics.html.erb
917
916
  - app/views/pages/home/_sub_hero.html.erb
918
- - config/i18n-tasks.yml
919
917
  - config/initializers/devise.rb
920
918
  - config/initializers/foundation_rails_helper.rb
921
919
  - config/initializers/invisible_captcha.rb
@@ -929,6 +927,7 @@ files:
929
927
  - config/locales/it.yml
930
928
  - config/locales/nl.yml
931
929
  - config/locales/pl.yml
930
+ - config/locales/uk.yml
932
931
  - config/routes.rb
933
932
  - config/secrets.yml
934
933
  - db/migrate/20160817115213_devise_create_decidim_users.rb
@@ -936,25 +935,13 @@ files:
936
935
  - db/migrate/20160920140207_devise_invitable_add_to_decidim_users.rb
937
936
  - db/migrate/20160920141039_user_belongs_to_organization.rb
938
937
  - db/migrate/20160920141151_user_has_roles.rb
939
- - db/migrate/20161005130108_add_participatory_processes.rb
940
938
  - db/migrate/20161005153007_add_description_to_organizations.rb
941
939
  - db/migrate/20161006085629_add_confirmable_to_devise.rb
942
940
  - db/migrate/20161010085443_add_name_to_users.rb
943
- - db/migrate/20161010102356_translate_processes.rb
944
941
  - db/migrate/20161010131544_add_locale_to_users.rb
945
- - db/migrate/20161011125616_add_hero_image_to_processes.rb
946
- - db/migrate/20161011141033_add_banner_image_to_processes.rb
947
- - db/migrate/20161013134732_add_promoted_flag_to_processes.rb
948
- - db/migrate/20161017085822_add_participatory_process_steps.rb
949
942
  - db/migrate/20161018091013_create_decidim_authorizations.rb
950
- - db/migrate/20161019072016_add_active_flag_to_step.rb
951
- - db/migrate/20161020080756_add_position_to_steps.rb
952
- - db/migrate/20161025125300_add_published_at_to_processes.rb
953
- - db/migrate/20161107152228_remove_not_null_on_step_position.rb
954
943
  - db/migrate/20161108093802_create_decidim_static_pages.rb
955
- - db/migrate/20161110092735_add_index_for_process_slug_organization.rb
956
944
  - db/migrate/20161110105712_create_decidim_features.rb
957
- - db/migrate/20161116115156_create_attachments.rb
958
945
  - db/migrate/20161123085134_add_categories.rb
959
946
  - db/migrate/20161130105257_create_decidim_scopes.rb
960
947
  - db/migrate/20161209134715_make_organization_description_optional.rb
@@ -964,36 +951,27 @@ files:
964
951
  - db/migrate/20170110153807_add_handler_to_organization.rb
965
952
  - db/migrate/20170113150627_create_resource_links.rb
966
953
  - db/migrate/20170116110851_create_identities.rb
967
- - db/migrate/20170116135237_loosen_step_requirements.rb
968
954
  - db/migrate/20170117142904_add_uniqueness_field_to_authorizations.rb
969
955
  - db/migrate/20170119145359_create_user_groups.rb
970
956
  - db/migrate/20170119150255_create_user_group_memberships.rb
971
957
  - db/migrate/20170119150649_add_show_statistics_to_organization.rb
972
958
  - db/migrate/20170120120733_add_user_groups_verified.rb
973
- - db/migrate/20170123134023_make_attachments_polymorphic.rb
974
959
  - db/migrate/20170123140857_add_avatar_to_user_groups.rb
975
- - db/migrate/20170125135937_rename_attachable_to_attached_to.rb
976
960
  - db/migrate/20170125152026_add_weight_to_features.rb
977
- - db/migrate/20170126151123_add_extra_info_to_processes.rb
978
961
  - db/migrate/20170128140553_add_timestamps_to_identities.rb
979
962
  - db/migrate/20170130132833_add_favicon_to_decidim_organizations.rb
980
963
  - db/migrate/20170131134349_add_action_permissions_to_decidim_features.rb
981
964
  - db/migrate/20170202084913_add_comments_and_replies_notifications_to_users.rb
982
965
  - db/migrate/20170203150545_add_newsletter_notifications_to_users.rb
983
- - db/migrate/20170206083118_rename_extra_info_on_processes.rb
984
966
  - db/migrate/20170206142116_add_published_at_to_decidim_features.rb
985
967
  - db/migrate/20170207091021_add_social_media_handlers_to_organization.rb
986
968
  - db/migrate/20170207093048_add_organization_logo_and_url.rb
987
969
  - db/migrate/20170213081133_create_decidim_newsletters.rb
988
970
  - db/migrate/20170215115407_add_organization_custom_reference.rb
989
- - db/migrate/20170220110740_remove_steps_short_description.rb
990
- - db/migrate/20170221094835_add_scopes_to_processes.rb
991
- - db/migrate/20170228142440_add_participatory_process_groups.rb
992
971
  - db/migrate/20170306144354_add_secondary_hosts_to_organizations.rb
993
972
  - db/migrate/20170307084957_create_reports.rb
994
973
  - db/migrate/20170308091316_create_moderations.rb
995
974
  - db/migrate/20170313095436_add_available_authorizations_to_organization.rb
996
- - db/migrate/20170404132616_change_steps_end_and_start_date_to_date.rb
997
975
  - db/migrate/20170405091801_change_decidim_user_email_index_uniqueness.rb
998
976
  - db/migrate/20170405094028_add_organization_to_identities.rb
999
977
  - db/migrate/20170405094258_change_decidim_identities_provider_uid_index_uniqueness.rb
@@ -1006,18 +984,20 @@ files:
1006
984
  - db/migrate/20170612100253_create_decidim_categorizations.rb
1007
985
  - db/migrate/20170713131206_add_admin_to_users.rb
1008
986
  - db/migrate/20170713131308_migrate_user_roles_to_participatory_process_roles.rb
987
+ - db/migrate/20170720120231_make_moderations_polymorphic.rb
1009
988
  - db/migrate/20170720135441_add_managed_to_users.rb
1010
989
  - db/migrate/20170720140610_set_email_unique_in_organization_condition_for_managed_users.rb
1011
990
  - db/migrate/20170724130558_create_impersonation_logs.rb
1012
- - db/migrate/20170725085104_add_show_statistics_to_participatory_processes.rb
991
+ - db/migrate/20170726145242_make_categories_polymorphic.rb
1013
992
  - db/migrate/20170727125445_add_roles_to_users.rb
1014
- - db/migrate/20170804125402_attachment_description_nullable.rb
1015
- - db/migrate/20170808080905_add_announcement_to_participatory_processes.rb
1016
- - db/migrate/20170809084005_add_scopes_enabled_to_participatory_processes.rb
993
+ - db/migrate/20170807123535_create_decidim_follows.rb
994
+ - db/migrate/20170808071019_create_decidim_notifications.rb
995
+ - db/migrate/20170906091718_add_extra_to_notifications.rb
996
+ - db/migrate/20170912082054_add_emails_on_notifications_flag_to_user.rb
997
+ - db/migrate/20170913092351_add_header_snippets_to_organizations.rb
998
+ - db/migrate/20170914075721_remove_followable_index_from_follows.rb
999
+ - db/migrate/20170914092116_remove_comment_and_replies_notifications_from_users.rb
1017
1000
  - db/seeds.rb
1018
- - db/seeds/Exampledocument.pdf
1019
- - db/seeds/city.jpeg
1020
- - db/seeds/city2.jpeg
1021
1001
  - db/seeds/homepage_image.jpg
1022
1002
  - lib/decidim/abilities.rb
1023
1003
  - lib/decidim/abilities/participatory_process_role_ability.rb
@@ -1043,6 +1023,7 @@ files:
1043
1023
  - lib/decidim/core/test/shared_examples/authorable.rb
1044
1024
  - lib/decidim/core/test/shared_examples/comments_examples.rb
1045
1025
  - lib/decidim/core/test/shared_examples/errors.rb
1026
+ - lib/decidim/core/test/shared_examples/follows_examples.rb
1046
1027
  - lib/decidim/core/test/shared_examples/has_attachments.rb
1047
1028
  - lib/decidim/core/test/shared_examples/has_category.rb
1048
1029
  - lib/decidim/core/test/shared_examples/has_feature.rb
@@ -1055,8 +1036,15 @@ files:
1055
1036
  - lib/decidim/core/test/shared_examples/publicable.rb
1056
1037
  - lib/decidim/core/test/shared_examples/reportable.rb
1057
1038
  - lib/decidim/core/test/shared_examples/reports_examples.rb
1039
+ - lib/decidim/core/test/shared_examples/scope_helper_examples.rb
1040
+ - lib/decidim/core/test/shared_examples/user_localised_email_examples.rb
1058
1041
  - lib/decidim/core/version.rb
1059
1042
  - lib/decidim/devise_failure_app.rb
1043
+ - lib/decidim/engine_router.rb
1044
+ - lib/decidim/events.rb
1045
+ - lib/decidim/events/base_event.rb
1046
+ - lib/decidim/events/email_event.rb
1047
+ - lib/decidim/events/notification_event.rb
1060
1048
  - lib/decidim/exporters.rb
1061
1049
  - lib/decidim/exporters/csv.rb
1062
1050
  - lib/decidim/exporters/export_data.rb
@@ -1071,6 +1059,7 @@ files:
1071
1059
  - lib/decidim/features/namer.rb
1072
1060
  - lib/decidim/file_zipper.rb
1073
1061
  - lib/decidim/filter_form_builder.rb
1062
+ - lib/decidim/followable.rb
1074
1063
  - lib/decidim/form_builder.rb
1075
1064
  - lib/decidim/has_attachments.rb
1076
1065
  - lib/decidim/has_category.rb
@@ -1083,8 +1072,9 @@ files:
1083
1072
  - lib/decidim/menu.rb
1084
1073
  - lib/decidim/menu_item.rb
1085
1074
  - lib/decidim/menu_registry.rb
1086
- - lib/decidim/notifiable.rb
1087
1075
  - lib/decidim/page_finder.rb
1076
+ - lib/decidim/participable.rb
1077
+ - lib/decidim/participatory_space_manifest.rb
1088
1078
  - lib/decidim/publicable.rb
1089
1079
  - lib/decidim/query_extensions.rb
1090
1080
  - lib/decidim/reportable.rb
@@ -1104,6 +1094,7 @@ files:
1104
1094
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fr.js
1105
1095
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.it.js
1106
1096
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.nl.js
1097
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.uk.js
1107
1098
  - vendor/assets/javascripts/form_datepicker.js.es6
1108
1099
  - vendor/assets/javascripts/foundation-datepicker.js
1109
1100
  - vendor/assets/javascripts/leaflet-svg-icon.js