decidim-core 0.17.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-core might be problematic. Click here for more details.

Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim.js.es6 +1 -0
  3. data/app/assets/javascripts/decidim/core/bundle.js +1 -1
  4. data/app/assets/javascripts/decidim/core/bundle.js.map +1 -1
  5. data/app/assets/javascripts/decidim/diff_mode_dropdown.js.es6 +16 -0
  6. data/app/assets/javascripts/decidim/represent_user_group.js.es6 +18 -0
  7. data/app/assets/stylesheets/decidim/_variables.scss +4 -0
  8. data/app/assets/stylesheets/decidim/extras/_meeting-registrations.scss +9 -0
  9. data/app/assets/stylesheets/decidim/modules/_data-picker.scss +25 -0
  10. data/app/assets/stylesheets/decidim/modules/_modules.scss +1 -0
  11. data/app/assets/stylesheets/decidim/modules/_order-by.scss +2 -0
  12. data/app/assets/stylesheets/decidim/modules/_versions.scss +75 -0
  13. data/app/cells/decidim/amendable/amend_button_card_cell.rb +1 -1
  14. data/app/cells/decidim/amendable/amenders_list/show.erb +3 -9
  15. data/app/cells/decidim/amendable/amenders_list_cell.rb +23 -1
  16. data/app/cells/decidim/amendable/promote_button_card/show.erb +2 -1
  17. data/app/cells/decidim/amendable/promote_button_card_cell.rb +6 -2
  18. data/app/cells/decidim/card_m_cell.rb +5 -0
  19. data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
  20. data/app/cells/decidim/diff/attribute.erb +17 -0
  21. data/app/cells/decidim/diff/diff_mode_dropdown.erb +29 -0
  22. data/app/cells/decidim/diff/diff_split.erb +11 -0
  23. data/app/cells/decidim/diff/diff_unified.erb +7 -0
  24. data/app/cells/decidim/diff/show.erb +5 -0
  25. data/app/cells/decidim/diff_cell.rb +79 -0
  26. data/app/cells/decidim/represent_user_group/show.erb +12 -0
  27. data/app/cells/decidim/represent_user_group_cell.rb +46 -0
  28. data/app/commands/decidim/amendable/accept.rb +10 -19
  29. data/app/commands/decidim/amendable/create.rb +15 -38
  30. data/app/commands/decidim/amendable/promote.rb +20 -22
  31. data/app/commands/decidim/amendable/reject.rb +3 -3
  32. data/app/controllers/concerns/decidim/amendments_controller.rb +4 -4
  33. data/app/controllers/concerns/decidim/devise_controllers.rb +6 -4
  34. data/app/controllers/concerns/decidim/filter_resource.rb +13 -4
  35. data/app/controllers/concerns/decidim/needs_permission.rb +1 -0
  36. data/app/controllers/concerns/decidim/needs_tos_accepted.rb +2 -1
  37. data/app/controllers/concerns/decidim/registers_permissions.rb +27 -0
  38. data/app/controllers/decidim/application_controller.rb +5 -4
  39. data/app/events/decidim/amendable/amendment_accepted_event.rb +1 -7
  40. data/app/events/decidim/amendable/amendment_base_event.rb +7 -2
  41. data/app/events/decidim/amendable/amendment_created_event.rb +2 -8
  42. data/app/events/decidim/amendable/amendment_rejected_event.rb +1 -7
  43. data/app/events/decidim/amendable/emendation_promoted_event.rb +1 -7
  44. data/app/forms/decidim/amendable/create_form.rb +16 -32
  45. data/app/forms/decidim/amendable/form.rb +40 -4
  46. data/app/forms/decidim/amendable/promote_form.rb +7 -11
  47. data/app/forms/decidim/amendable/reject_form.rb +1 -1
  48. data/app/forms/decidim/amendable/review_form.rb +4 -23
  49. data/app/forms/decidim/invite_user_form.rb +2 -2
  50. data/app/helpers/decidim/amendments_helper.rb +64 -72
  51. data/app/helpers/decidim/application_helper.rb +18 -0
  52. data/app/helpers/decidim/decidim_form_helper.rb +13 -1
  53. data/app/helpers/decidim/scopes_helper.rb +13 -3
  54. data/app/helpers/decidim/traceability_helper.rb +0 -61
  55. data/app/helpers/decidim/translations_helper.rb +20 -1
  56. data/app/jobs/decidim/email_notification_generator_job.rb +2 -0
  57. data/app/jobs/decidim/notification_generator_job.rb +2 -0
  58. data/app/mailers/decidim/application_mailer.rb +15 -0
  59. data/app/models/decidim/amendment.rb +4 -0
  60. data/app/models/decidim/area.rb +18 -0
  61. data/app/models/decidim/follow.rb +4 -0
  62. data/app/models/decidim/newsletter.rb +24 -0
  63. data/app/models/decidim/permission_action.rb +13 -0
  64. data/app/models/decidim/user.rb +12 -2
  65. data/app/queries/decidim/metric_measure.rb +1 -1
  66. data/app/services/decidim/participatory_space_search.rb +54 -0
  67. data/app/views/decidim/account/_password_fields.html.erb +1 -1
  68. data/app/views/decidim/amendments/_edit_form_fields.html.erb +21 -0
  69. data/app/views/decidim/amendments/new.html.erb +18 -4
  70. data/app/views/decidim/amendments/review.html.erb +11 -5
  71. data/app/views/decidim/application/_photos.html.erb +1 -1
  72. data/app/views/decidim/devise/passwords/edit.html.erb +1 -1
  73. data/app/views/decidim/devise/registrations/new.html.erb +1 -1
  74. data/app/views/decidim/notifications_settings/show.html.erb +6 -6
  75. data/app/views/decidim/scopes/_scopes_picker_input.html.erb +6 -1
  76. data/app/views/decidim/shared/participatory_space_filters/_filters.html.erb +13 -0
  77. data/app/views/decidim/shared/participatory_space_filters/_filters_small_view.html.erb +19 -0
  78. data/app/views/decidim/shared/participatory_space_filters/_show.html.erb +7 -0
  79. data/app/views/decidim/user_interests/_areas.html.erb +2 -2
  80. data/app/views/decidim/user_interests/_scopes.html.erb +2 -2
  81. data/app/views/decidim/user_interests/show.html.erb +3 -1
  82. data/config/locales/ar-SA.yml +24 -21
  83. data/config/locales/ar.yml +1282 -0
  84. data/config/locales/ca.yml +38 -22
  85. data/config/locales/cs.yml +25 -19
  86. data/config/locales/de.yml +24 -18
  87. data/config/locales/en.yml +39 -23
  88. data/config/locales/es-MX.yml +35 -19
  89. data/config/locales/es-PY.yml +35 -19
  90. data/config/locales/es.yml +38 -22
  91. data/config/locales/eu.yml +24 -18
  92. data/config/locales/fi-plain.yml +34 -18
  93. data/config/locales/fi.yml +39 -23
  94. data/config/locales/fr.yml +24 -18
  95. data/config/locales/gl.yml +24 -18
  96. data/config/locales/hu.yml +30 -21
  97. data/config/locales/id-ID.yml +25 -19
  98. data/config/locales/it.yml +37 -21
  99. data/config/locales/nl.yml +24 -18
  100. data/config/locales/pl.yml +25 -19
  101. data/config/locales/pt-BR.yml +25 -19
  102. data/config/locales/pt.yml +25 -19
  103. data/config/locales/sv.yml +37 -21
  104. data/config/locales/tr-TR.yml +35 -19
  105. data/db/migrate/20181219130325_add_smtp_settings_to_decidim_organizations.rb +7 -0
  106. data/db/migrate/20190325145349_add_extended_data_to_newsletters.rb +7 -0
  107. data/db/migrate/20190412105836_add_missing_indexes.rb +11 -0
  108. data/db/migrate/20190412131728_fix_user_names.rb +24 -0
  109. data/db/seeds.rb +7 -0
  110. data/lib/decidim/amendable.rb +41 -29
  111. data/lib/decidim/attribute_encryptor.rb +20 -0
  112. data/lib/decidim/component_manifest.rb +4 -0
  113. data/lib/decidim/core.rb +20 -1
  114. data/lib/decidim/core/engine.rb +1 -0
  115. data/lib/decidim/core/test/factories.rb +9 -0
  116. data/lib/decidim/core/test/shared_examples/amendable/amendment_accepted_event_examples.rb +1 -1
  117. data/lib/decidim/core/test/shared_examples/amendable/amendment_created_event_examples.rb +2 -2
  118. data/lib/decidim/core/test/shared_examples/amendable/amendment_form_examples.rb +1 -1
  119. data/lib/decidim/core/test/shared_examples/amendable/amendment_promoted_event_examples.rb +1 -1
  120. data/lib/decidim/core/test/shared_examples/amendable/amendment_rejected_event_examples.rb +1 -1
  121. data/lib/decidim/core/test/shared_examples/amendable/create_amendment_examples.rb +3 -21
  122. data/lib/decidim/core/test/shared_examples/comments_examples.rb +18 -0
  123. data/lib/decidim/core/test/shared_examples/has_attachments.rb +1 -1
  124. data/lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb +31 -0
  125. data/lib/decidim/core/version.rb +1 -1
  126. data/lib/decidim/exporters/csv.rb +2 -2
  127. data/lib/decidim/filter_form_builder.rb +8 -1
  128. data/lib/decidim/form_builder.rb +40 -4
  129. data/lib/decidim/has_component.rb +7 -0
  130. data/lib/decidim/has_private_users.rb +25 -8
  131. data/lib/decidim/jsonb_attributes.rb +45 -0
  132. data/lib/decidim/newsletter_participant.rb +18 -0
  133. data/lib/decidim/participable.rb +9 -0
  134. data/lib/decidim/permissions_registry.rb +39 -0
  135. data/lib/tasks/decidim_metrics_tasks.rake +35 -0
  136. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ar.js +16 -0
  137. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.es-MX.js +15 -0
  138. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.es-PY.js +15 -0
  139. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fi-pl.js +14 -0
  140. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.id.js +13 -0
  141. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pl.js +15 -0
  142. data/vendor/assets/javascripts/datepicker-locales/{foundation-datepicker.pt-br.js → foundation-datepicker.pt-BR.js} +0 -0
  143. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.tr.js +14 -0
  144. metadata +42 -10
  145. data/app/views/decidim/amendments/_form.html.erb +0 -30
  146. data/app/views/decidim/amendments/_review_form.html.erb +0 -19
@@ -30,6 +30,41 @@ namespace :decidim do
30
30
  end
31
31
  end
32
32
 
33
+ desc "Rebuild calculations from specific day"
34
+ task :rebuild, [:metric, :day] => :environment do |_task, args|
35
+ metric = args.metric
36
+ day = args.day
37
+ if args.day.blank?
38
+ day = args.metric
39
+ metric = nil
40
+ end
41
+ begin
42
+ raise ArgumentError if day.blank?
43
+ (Date.parse(day)..Time.zone.today).each do |d|
44
+ Decidim::Organization.find_each do |organization|
45
+ if metric
46
+ m_manifest = Decidim.metrics_registry.for(metric)
47
+ puts "[#{organization.name}]: rebuilding metric [#{metric}] for day [#{d}]"
48
+ call_metric_job(m_manifest, organization, day)
49
+ else
50
+ puts "[#{organization.name}]: rebuilding all metrics for day [#{d}]"
51
+ Decidim.metrics_registry.all.each do |metric_manifest|
52
+ call_metric_job(metric_manifest, organization, day)
53
+ end
54
+ end
55
+ end
56
+ end
57
+ rescue ArgumentError
58
+ puts "ERROR: Please specify since which date should the metrics be rebuild"
59
+ puts "ie: rails decidim:metrics:rebuild[2019-01-01]"
60
+ end
61
+ end
62
+
63
+ desc "Show available metrics"
64
+ task list: :environment do
65
+ puts Decidim.metrics_registry.all.pluck :metric_name
66
+ end
67
+
33
68
  def call_metric_job(metric_manifest, organization, day = nil)
34
69
  Decidim::MetricJob.perform_later(
35
70
  metric_manifest.manager_class,
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Arabic translation for foundation-datepicker
3
+ * Nico Mollet <nico.mollet@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['ar'] = {
7
+ days: ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"],
8
+ daysShort: ["أح", "إث", "ثلا", "أر", "خم", "جم", "س", "أح"],
9
+ daysMin: ["D", "L", "Ma", "Me", "J", "V", "S", "D"],
10
+ months: ["جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
11
+ monthsShort: ["جان", "فيف", "مار", "أفر", "ماي", "جوا", "جوي", "أوت", "سبت", "أكت", "نوف", "ديس"],
12
+ today: "اليوم",
13
+ clear: "إزالة",
14
+ weekStart: 1
15
+ };
16
+ }(jQuery));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Spanish translation for foundation-datepicker
3
+ * Bruno Bonamin <bruno.bonamin@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['es'] = {
7
+ days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
8
+ daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
9
+ daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
10
+ months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
11
+ monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
12
+ today: "Hoy",
13
+ weekStart: 1
14
+ };
15
+ }(jQuery));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Spanish translation for foundation-datepicker
3
+ * Bruno Bonamin <bruno.bonamin@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['es'] = {
7
+ days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
8
+ daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
9
+ daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
10
+ months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
11
+ monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
12
+ today: "Hoy",
13
+ weekStart: 1
14
+ };
15
+ }(jQuery));
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Finnish translation for foundation-datepicker
3
+ * Jaakko Salonen <https://github.com/jsalonen>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['fi'] = {
7
+ days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai", "sunnuntai"],
8
+ daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau", "sun"],
9
+ daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la", "su"],
10
+ months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
11
+ monthsShort: ["tam", "hel", "maa", "huh", "tou", "kes", "hei", "elo", "syy", "lok", "mar", "jou"],
12
+ today: "tänään"
13
+ };
14
+ }(jQuery));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Bahasa translation for foundation-datepicker
3
+ * Azwar Akbar <azwar.akbar@gmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['id'] = {
7
+ days: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu", "Minggu"],
8
+ daysShort: ["Mgu", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab", "Mgu"],
9
+ daysMin: ["Mg", "Sn", "Sl", "Ra", "Ka", "Ju", "Sa", "Mg"],
10
+ months: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"],
11
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]
12
+ };
13
+ }(jQuery));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Polish translation for foundation-datepicker
3
+ * Robert <rtpm@gazeta.pl>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['pl'] = {
7
+ days: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"],
8
+ daysShort: ["Nie", "Pn", "Wt", "Śr", "Czw", "Pt", "So", "Nie"],
9
+ daysMin: ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"],
10
+ months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
11
+ monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"],
12
+ today: "Dzisiaj",
13
+ weekStart: 1
14
+ };
15
+ }(jQuery));
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Turkish translation for foundation-datepicker
3
+ * Serkan Algur <kaisercrazy_2@hotmail.com>
4
+ */
5
+ ;(function($){
6
+ $.fn.fdatepicker.dates['tr'] = {
7
+ days: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"],
8
+ daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts", "Pz"],
9
+ daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct", "Pz"],
10
+ months: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
11
+ monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
12
+ today: "Bugün"
13
+ };
14
+ }(jQuery));
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.17.2
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -130,14 +130,14 @@ dependencies:
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '4.3'
133
+ version: '4.6'
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: '4.3'
140
+ version: '4.6'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: devise-i18n
143
143
  requirement: !ruby/object:Gem::Requirement
@@ -732,28 +732,28 @@ dependencies:
732
732
  requirements:
733
733
  - - '='
734
734
  - !ruby/object:Gem::Version
735
- version: 0.17.2
735
+ version: 0.18.0
736
736
  type: :runtime
737
737
  prerelease: false
738
738
  version_requirements: !ruby/object:Gem::Requirement
739
739
  requirements:
740
740
  - - '='
741
741
  - !ruby/object:Gem::Version
742
- version: 0.17.2
742
+ version: 0.18.0
743
743
  - !ruby/object:Gem::Dependency
744
744
  name: decidim-dev
745
745
  requirement: !ruby/object:Gem::Requirement
746
746
  requirements:
747
747
  - - '='
748
748
  - !ruby/object:Gem::Version
749
- version: 0.17.2
749
+ version: 0.18.0
750
750
  type: :development
751
751
  prerelease: false
752
752
  version_requirements: !ruby/object:Gem::Requirement
753
753
  requirements:
754
754
  - - '='
755
755
  - !ruby/object:Gem::Version
756
- version: 0.17.2
756
+ version: 0.18.0
757
757
  description: Adds core features so other engines can hook into the framework.
758
758
  email:
759
759
  - josepjaume@gmail.com
@@ -798,6 +798,7 @@ files:
798
798
  - app/assets/javascripts/decidim/core/bundle.js
799
799
  - app/assets/javascripts/decidim/core/bundle.js.map
800
800
  - app/assets/javascripts/decidim/data_picker.js.es6
801
+ - app/assets/javascripts/decidim/diff_mode_dropdown.js.es6
801
802
  - app/assets/javascripts/decidim/editor.js.es6
802
803
  - app/assets/javascripts/decidim/filters.js.es6
803
804
  - app/assets/javascripts/decidim/floating_help.js.es6
@@ -812,6 +813,7 @@ files:
812
813
  - app/assets/javascripts/decidim/map.js.es6
813
814
  - app/assets/javascripts/decidim/notifications.js.es6
814
815
  - app/assets/javascripts/decidim/orders.js.es6
816
+ - app/assets/javascripts/decidim/represent_user_group.js.es6
815
817
  - app/assets/javascripts/decidim/slug_form.js.es6
816
818
  - app/assets/javascripts/decidim/tooltip_keep_on_hover.js.es6
817
819
  - app/assets/javascripts/decidim/user_registrations.js.es6
@@ -917,6 +919,7 @@ files:
917
919
  - app/assets/stylesheets/decidim/modules/_toggle.scss
918
920
  - app/assets/stylesheets/decidim/modules/_typography.scss
919
921
  - app/assets/stylesheets/decidim/modules/_user-form.scss
922
+ - app/assets/stylesheets/decidim/modules/_versions.scss
920
923
  - app/assets/stylesheets/decidim/modules/_video.scss
921
924
  - app/assets/stylesheets/decidim/modules/_wizard-steps.scss
922
925
  - app/assets/stylesheets/decidim/utils/_fontface.scss
@@ -1004,6 +1007,12 @@ files:
1004
1007
  - app/cells/decidim/content_blocks/stats_cell.rb
1005
1008
  - app/cells/decidim/content_blocks/sub_hero/show.erb
1006
1009
  - app/cells/decidim/content_blocks/sub_hero_cell.rb
1010
+ - app/cells/decidim/diff/attribute.erb
1011
+ - app/cells/decidim/diff/diff_mode_dropdown.erb
1012
+ - app/cells/decidim/diff/diff_split.erb
1013
+ - app/cells/decidim/diff/diff_unified.erb
1014
+ - app/cells/decidim/diff/show.erb
1015
+ - app/cells/decidim/diff_cell.rb
1007
1016
  - app/cells/decidim/fingerprint/show.erb
1008
1017
  - app/cells/decidim/fingerprint_cell.rb
1009
1018
  - app/cells/decidim/follow_button/show.erb
@@ -1028,6 +1037,8 @@ files:
1028
1037
  - app/cells/decidim/profile_sidebar_cell.rb
1029
1038
  - app/cells/decidim/progress_bar/show.erb
1030
1039
  - app/cells/decidim/progress_bar_cell.rb
1040
+ - app/cells/decidim/represent_user_group/show.erb
1041
+ - app/cells/decidim/represent_user_group_cell.rb
1031
1042
  - app/cells/decidim/search_results/show.erb
1032
1043
  - app/cells/decidim/search_results_cell.rb
1033
1044
  - app/cells/decidim/search_results_section/show.erb
@@ -1103,6 +1114,7 @@ files:
1103
1114
  - app/controllers/concerns/decidim/paginable.rb
1104
1115
  - app/controllers/concerns/decidim/participatory_space_context.rb
1105
1116
  - app/controllers/concerns/decidim/payload_info.rb
1117
+ - app/controllers/concerns/decidim/registers_permissions.rb
1106
1118
  - app/controllers/concerns/decidim/settings.rb
1107
1119
  - app/controllers/concerns/decidim/user_groups.rb
1108
1120
  - app/controllers/concerns/decidim/user_profile.rb
@@ -1370,6 +1382,7 @@ files:
1370
1382
  - app/services/decidim/notification_generator.rb
1371
1383
  - app/services/decidim/notification_generator_for_recipient.rb
1372
1384
  - app/services/decidim/open_data_exporter.rb
1385
+ - app/services/decidim/participatory_space_search.rb
1373
1386
  - app/services/decidim/resource_search.rb
1374
1387
  - app/services/decidim/settings_change.rb
1375
1388
  - app/services/decidim/static_map_generator.rb
@@ -1413,8 +1426,7 @@ files:
1413
1426
  - app/views/decidim/account/_user_groups.html.erb
1414
1427
  - app/views/decidim/account/delete.html.erb
1415
1428
  - app/views/decidim/account/show.html.erb
1416
- - app/views/decidim/amendments/_form.html.erb
1417
- - app/views/decidim/amendments/_review_form.html.erb
1429
+ - app/views/decidim/amendments/_edit_form_fields.html.erb
1418
1430
  - app/views/decidim/amendments/new.html.erb
1419
1431
  - app/views/decidim/amendments/review.html.erb
1420
1432
  - app/views/decidim/application/_attachments.html.erb
@@ -1511,6 +1523,9 @@ files:
1511
1523
  - app/views/decidim/shared/_static_map.html.erb
1512
1524
  - app/views/decidim/shared/_tags.html.erb
1513
1525
  - app/views/decidim/shared/_version_author.html.erb
1526
+ - app/views/decidim/shared/participatory_space_filters/_filters.html.erb
1527
+ - app/views/decidim/shared/participatory_space_filters/_filters_small_view.html.erb
1528
+ - app/views/decidim/shared/participatory_space_filters/_show.html.erb
1514
1529
  - app/views/decidim/user_activities/index.html.erb
1515
1530
  - app/views/decidim/user_interests/_areas.html.erb
1516
1531
  - app/views/decidim/user_interests/_scopes.html.erb
@@ -1564,6 +1579,7 @@ files:
1564
1579
  - config/initializers/mail_previews.rb
1565
1580
  - config/initializers/rack_attack.rb
1566
1581
  - config/locales/ar-SA.yml
1582
+ - config/locales/ar.yml
1567
1583
  - config/locales/ca.yml
1568
1584
  - config/locales/cs-CZ.yml
1569
1585
  - config/locales/cs.yml
@@ -1727,7 +1743,11 @@ files:
1727
1743
  - db/migrate/20181211090933_add_area_to_action_logs.rb
1728
1744
  - db/migrate/20181214101250_add_notification_types_to_users.rb
1729
1745
  - db/migrate/20181218171503_add_user_groups_switch_to_organizations.rb
1746
+ - db/migrate/20181219130325_add_smtp_settings_to_decidim_organizations.rb
1730
1747
  - db/migrate/20190220023422_add_colors_to_decidim_organization.rb
1748
+ - db/migrate/20190325145349_add_extended_data_to_newsletters.rb
1749
+ - db/migrate/20190412105836_add_missing_indexes.rb
1750
+ - db/migrate/20190412131728_fix_user_names.rb
1731
1751
  - db/seeds.rb
1732
1752
  - db/seeds/homepage_image.jpg
1733
1753
  - lib/decidim/amendable.rb
@@ -1738,6 +1758,7 @@ files:
1738
1758
  - lib/decidim/api/component_interface.rb
1739
1759
  - lib/decidim/api/participatory_space_interface.rb
1740
1760
  - lib/decidim/api/scopable_interface.rb
1761
+ - lib/decidim/attribute_encryptor.rb
1741
1762
  - lib/decidim/attributes.rb
1742
1763
  - lib/decidim/attributes/localized_date.rb
1743
1764
  - lib/decidim/attributes/time_with_zone.rb
@@ -1808,6 +1829,7 @@ files:
1808
1829
  - lib/decidim/core/test/shared_examples/scope_helper_examples.rb
1809
1830
  - lib/decidim/core/test/shared_examples/searchable_results_examples.rb
1810
1831
  - lib/decidim/core/test/shared_examples/simple_event.rb
1832
+ - lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb
1811
1833
  - lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb
1812
1834
  - lib/decidim/core/test/shared_examples/user_localised_email_examples.rb
1813
1835
  - lib/decidim/core/version.rb
@@ -1865,6 +1887,7 @@ files:
1865
1887
  - lib/decidim/hashtag.rb
1866
1888
  - lib/decidim/hashtaggable.rb
1867
1889
  - lib/decidim/io_encoder.rb
1890
+ - lib/decidim/jsonb_attributes.rb
1868
1891
  - lib/decidim/loggable.rb
1869
1892
  - lib/decidim/manifest_registry.rb
1870
1893
  - lib/decidim/menu.rb
@@ -1876,12 +1899,14 @@ files:
1876
1899
  - lib/decidim/metric_operation_manifest.rb
1877
1900
  - lib/decidim/metric_registry.rb
1878
1901
  - lib/decidim/newsletter_encryptor.rb
1902
+ - lib/decidim/newsletter_participant.rb
1879
1903
  - lib/decidim/nicknamizable.rb
1880
1904
  - lib/decidim/paddable.rb
1881
1905
  - lib/decidim/participable.rb
1882
1906
  - lib/decidim/participatory_space_context_manifest.rb
1883
1907
  - lib/decidim/participatory_space_manifest.rb
1884
1908
  - lib/decidim/participatory_space_resourceable.rb
1909
+ - lib/decidim/permissions_registry.rb
1885
1910
  - lib/decidim/publicable.rb
1886
1911
  - lib/decidim/query_extensions.rb
1887
1912
  - lib/decidim/reportable.rb
@@ -1905,21 +1930,28 @@ files:
1905
1930
  - lib/tasks/decidim_tasks.rake
1906
1931
  - vendor/assets/javascripts/appendAround.js
1907
1932
  - vendor/assets/javascripts/d3.js
1933
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ar.js
1908
1934
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ca.js
1909
1935
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.cs.js
1910
1936
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.de.js
1937
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.es-MX.js
1938
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.es-PY.js
1911
1939
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.es.js
1912
1940
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.eu.js
1941
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fi-pl.js
1913
1942
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fi.js
1914
1943
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fr.js
1915
1944
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.gl.js
1916
1945
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.hu.js
1946
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.id.js
1917
1947
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.it.js
1918
1948
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.nl.js
1919
- - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pt-br.js
1949
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pl.js
1950
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pt-BR.js
1920
1951
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pt.js
1921
1952
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ru.js
1922
1953
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.sv.js
1954
+ - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.tr.js
1923
1955
  - vendor/assets/javascripts/datepicker-locales/foundation-datepicker.uk.js
1924
1956
  - vendor/assets/javascripts/form_datepicker.js.es6
1925
1957
  - vendor/assets/javascripts/foundation-datepicker.js
@@ -1,30 +0,0 @@
1
- <%= decidim_form_for(@form, url: amends_path, method: :post) do |form| %>
2
- <%= form.hidden_field :amendable_gid %>
3
- <%= form.hidden_field :amendable_type %>
4
- <%= form.hidden_field :emendation_type %>
5
-
6
- <%= form.fields_for :emendation_fields, form.object.emendation_fields do |emendation_form| %>
7
- <% @form.amendable.attributes.each do |key, value| %>
8
- <% key = key.to_sym %>
9
- <% if @form.amendable.fields.include?(key) %>
10
- <div class="field">
11
- <%= emendation_form.form_field_for key %>
12
- </div>
13
- <% elsif @form.amendable.ignore_fields.include?(key) %>
14
- <%= emendation_form.hidden_field key, value: emendation_ignored_field_value(key) %>
15
- <% else %>
16
- <%= emendation_form.hidden_field key, value: value %>
17
- <% end %>
18
- <% end %>
19
- <% end %>
20
-
21
- <% if current_organization.user_groups_enabled? && current_user.user_groups.verified.any? %>
22
- <div class="field">
23
- <%= user_group_select_field form, :user_group_id %>
24
- </div>
25
- <% end %>
26
-
27
- <div class="actions">
28
- <%= form.submit t("send", scope: "decidim.amendments.new"), class: "button expanded mt-s mb-none", data: { disable: true } %>
29
- </div>
30
- <% end %>
@@ -1,19 +0,0 @@
1
- <%= decidim_form_for(@form, url: accept_amend_path(emendation.amendment), method: :patch) do |form| %>
2
-
3
- <%= form.fields_for :emendation_fields, form.object.emendation_fields do |emendation_form| %>
4
- <% @form.emendation.attributes.each do |key, value| %>
5
- <% key = key.to_sym %>
6
- <% if @form.emendation.fields.include?(key) %>
7
- <div class="field">
8
- <%= emendation_form.form_field_for key %>
9
- </div>
10
- <% else %>
11
- <%= emendation_form.hidden_field key, value: value %>
12
- <% end %>
13
- <% end %>
14
- <% end %>
15
-
16
- <div class="actions">
17
- <%= form.submit t("send", scope: "decidim.amendments.review"), class: "button expanded mt-s mb-none", data: { disable: true } %>
18
- </div>
19
- <% end %>