decidim-initiatives 0.27.8 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -3
  3. data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb +17 -18
  4. data/app/cells/decidim/initiatives/initiative_cell.rb +6 -1
  5. data/app/cells/decidim/initiatives/initiative_dropdown_metadata_cell.rb +19 -0
  6. data/app/cells/decidim/initiatives/initiative_g_cell.rb +31 -0
  7. data/app/cells/decidim/initiatives/initiative_metadata_g_cell.rb +62 -0
  8. data/app/cells/decidim/initiatives/initiative_s_cell.rb +15 -0
  9. data/app/cells/decidim/initiatives_votes/vote/show.erb +25 -19
  10. data/app/cells/decidim/initiatives_votes/vote_cell.rb +3 -1
  11. data/app/commands/decidim/initiatives/admin/accept_initiative.rb +40 -0
  12. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +1 -1
  13. data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +1 -1
  14. data/app/commands/decidim/initiatives/admin/discard_initiative.rb +40 -0
  15. data/app/commands/decidim/initiatives/admin/publish_initiative.rb +1 -1
  16. data/app/commands/decidim/initiatives/admin/reject_initiative.rb +40 -0
  17. data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +2 -2
  18. data/app/commands/decidim/initiatives/admin/unpublish_initiative.rb +1 -1
  19. data/app/commands/decidim/initiatives/admin/update_initiative.rb +1 -1
  20. data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +1 -1
  21. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +1 -1
  22. data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +1 -1
  23. data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +1 -1
  24. data/app/commands/decidim/initiatives/attachment_methods.rb +2 -24
  25. data/app/commands/decidim/initiatives/create_initiative.rb +19 -14
  26. data/app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb +2 -2
  27. data/app/commands/decidim/initiatives/spawn_committee_request.rb +1 -1
  28. data/app/commands/decidim/initiatives/unvote_initiative.rb +1 -1
  29. data/app/commands/decidim/initiatives/update_initiative.rb +9 -2
  30. data/app/commands/decidim/initiatives/validate_mobile_phone.rb +2 -2
  31. data/app/commands/decidim/initiatives/vote_initiative.rb +5 -5
  32. data/app/constraints/decidim/initiatives/current_initiative.rb +1 -1
  33. data/app/controllers/concerns/decidim/initiatives/admin/filterable.rb +2 -2
  34. data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
  35. data/app/controllers/decidim/initiatives/admin/answers_controller.rb +3 -0
  36. data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +2 -0
  37. data/app/controllers/decidim/initiatives/admin/components_controller.rb +3 -0
  38. data/app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb +2 -0
  39. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +17 -6
  40. data/app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb +3 -0
  41. data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +2 -0
  42. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +30 -0
  43. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +14 -0
  44. data/app/controllers/decidim/initiatives/admin/initiatives_types_permissions_controller.rb +21 -0
  45. data/app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb +2 -2
  46. data/app/controllers/decidim/initiatives/admin/moderations_controller.rb +4 -2
  47. data/app/controllers/decidim/initiatives/application_controller.rb +0 -1
  48. data/app/controllers/decidim/initiatives/authorization_create_modals_controller.rb +25 -0
  49. data/app/controllers/decidim/initiatives/authorization_sign_modals_controller.rb +2 -2
  50. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +0 -2
  51. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +62 -115
  52. data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +113 -81
  53. data/app/controllers/decidim/initiatives/initiative_types_controller.rb +7 -0
  54. data/app/controllers/decidim/initiatives/initiatives_controller.rb +37 -17
  55. data/app/controllers/decidim/initiatives/versions_controller.rb +0 -1
  56. data/app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb +2 -2
  57. data/app/events/decidim/initiatives/admin/support_threshold_reached_event.rb +1 -1
  58. data/app/events/decidim/initiatives/approve_membership_request_event.rb +16 -13
  59. data/app/events/decidim/initiatives/create_initiative_event.rb +10 -7
  60. data/app/events/decidim/initiatives/endorse_initiative_event.rb +1 -1
  61. data/app/events/decidim/initiatives/extend_initiative_event.rb +1 -1
  62. data/app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb +2 -2
  63. data/app/events/decidim/initiatives/milestone_completed_event.rb +1 -1
  64. data/app/events/decidim/initiatives/revoke_membership_request_event.rb +16 -13
  65. data/app/events/decidim/initiatives/spawn_committee_request_event.rb +16 -13
  66. data/app/forms/decidim/initiatives/admin/initiative_form.rb +1 -1
  67. data/app/forms/decidim/initiatives/initiative_form.rb +22 -31
  68. data/app/forms/decidim/initiatives/previous_form.rb +4 -0
  69. data/app/forms/decidim/initiatives/vote_form.rb +11 -11
  70. data/app/helpers/decidim/initiatives/admin/initiatives_helper.rb +1 -1
  71. data/app/helpers/decidim/initiatives/application_helper.rb +5 -62
  72. data/app/helpers/decidim/initiatives/initiative_helper.rb +48 -5
  73. data/app/helpers/decidim/initiatives/initiatives_helper.rb +33 -12
  74. data/app/jobs/decidim/initiatives/export_initiatives_job.rb +1 -1
  75. data/app/models/decidim/initiative.rb +16 -14
  76. data/app/models/decidim/initiatives_vote.rb +1 -1
  77. data/app/packs/entrypoints/decidim_initiatives.js +3 -0
  78. data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg +42 -1
  79. data/app/packs/src/decidim/initiatives/application.js +0 -1
  80. data/app/packs/src/decidim/initiatives/scoped_type.js +1 -1
  81. data/app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss +21 -21
  82. data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +47 -35
  83. data/app/packs/stylesheets/initiatives.scss +171 -0
  84. data/app/permissions/decidim/initiatives/permissions.rb +3 -13
  85. data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +2 -2
  86. data/app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb +2 -2
  87. data/app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb +2 -2
  88. data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +1 -1
  89. data/app/queries/decidim/initiatives/similar_initiatives.rb +2 -2
  90. data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +1 -1
  91. data/app/queries/decidim/initiatives/user_authorizations.rb +1 -1
  92. data/app/services/decidim/initiatives/pdf_signature_example.rb +44 -52
  93. data/app/views/decidim/initiatives/_modal.html.erb +15 -0
  94. data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +21 -19
  95. data/app/views/decidim/initiatives/admin/answers/edit.html.erb +41 -27
  96. data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +41 -48
  97. data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +8 -7
  98. data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +111 -95
  99. data/app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb +7 -7
  100. data/app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb +87 -0
  101. data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +72 -60
  102. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb +8 -0
  103. data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +5 -78
  104. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +76 -75
  105. data/app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb +7 -8
  106. data/app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb +17 -5
  107. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +11 -6
  108. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +16 -22
  109. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +17 -15
  110. data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +93 -76
  111. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +35 -33
  112. data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +16 -12
  113. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +39 -48
  114. data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +16 -9
  115. data/app/views/decidim/initiatives/committee_requests/new.html.erb +21 -19
  116. data/app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb +15 -20
  117. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +62 -100
  118. data/app/views/decidim/initiatives/create_initiative/finish.html.erb +24 -28
  119. data/app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb +15 -17
  120. data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +32 -46
  121. data/app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb +15 -19
  122. data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +25 -36
  123. data/app/views/decidim/initiatives/initiative_signatures/finish.html.erb +5 -16
  124. data/app/views/decidim/initiatives/initiative_signatures/sms_code.html.erb +8 -19
  125. data/app/views/decidim/initiatives/initiative_signatures/sms_phone_number.html.erb +8 -20
  126. data/app/views/decidim/initiatives/initiatives/_committee_members.html.erb +48 -66
  127. data/app/views/decidim/initiatives/initiatives/_form.html.erb +49 -95
  128. data/app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb +3 -5
  129. data/app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb +13 -0
  130. data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +6 -15
  131. data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +1 -1
  132. data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +28 -0
  133. data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +2 -6
  134. data/app/views/decidim/initiatives/initiatives/_result.html.erb +15 -21
  135. data/app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb +3 -3
  136. data/app/views/decidim/initiatives/initiatives/_tags_type.html.erb +1 -0
  137. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +9 -9
  138. data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +7 -7
  139. data/app/views/decidim/initiatives/initiatives/edit.html.erb +63 -68
  140. data/app/views/decidim/initiatives/initiatives/index.html.erb +17 -18
  141. data/app/views/decidim/initiatives/initiatives/index.js.erb +0 -5
  142. data/app/views/decidim/initiatives/initiatives/print.html.erb +123 -120
  143. data/app/views/decidim/initiatives/initiatives/show.html.erb +188 -72
  144. data/app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb +2 -2
  145. data/app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb +2 -1
  146. data/app/views/decidim/initiatives/versions/show.html.erb +15 -6
  147. data/app/views/layouts/decidim/_initiative_creation_header.html.erb +17 -28
  148. data/app/views/layouts/decidim/_initiative_header.html.erb +3 -23
  149. data/app/views/layouts/decidim/_initiative_header_steps.html.erb +4 -12
  150. data/app/views/layouts/decidim/_initiative_signature_creation_header.html.erb +5 -26
  151. data/app/views/layouts/decidim/admin/initiative.html.erb +12 -13
  152. data/app/views/layouts/decidim/admin/initiatives.html.erb +40 -11
  153. data/app/views/layouts/decidim/initiative.html.erb +16 -11
  154. data/app/views/layouts/decidim/initiative_creation.html.erb +7 -18
  155. data/app/views/layouts/decidim/initiative_head.html.erb +15 -0
  156. data/app/views/layouts/decidim/initiative_signature_creation.html.erb +3 -11
  157. data/config/assets.rb +0 -1
  158. data/config/initializers/wicked_pdf.rb +1 -1
  159. data/config/locales/ar.yml +1 -96
  160. data/config/locales/bg.yml +0 -642
  161. data/config/locales/ca.yml +76 -115
  162. data/config/locales/cs.yml +70 -109
  163. data/config/locales/de.yml +78 -117
  164. data/config/locales/el.yml +1 -98
  165. data/config/locales/en.yml +69 -108
  166. data/config/locales/es-MX.yml +65 -104
  167. data/config/locales/es-PY.yml +65 -104
  168. data/config/locales/es.yml +73 -112
  169. data/config/locales/eu.yml +66 -105
  170. data/config/locales/fi-plain.yml +67 -106
  171. data/config/locales/fi.yml +67 -106
  172. data/config/locales/fr-CA.yml +69 -108
  173. data/config/locales/fr.yml +67 -106
  174. data/config/locales/ga-IE.yml +0 -35
  175. data/config/locales/gl.yml +1 -89
  176. data/config/locales/hu.yml +25 -114
  177. data/config/locales/id-ID.yml +1 -89
  178. data/config/locales/is-IS.yml +1 -60
  179. data/config/locales/it.yml +6 -111
  180. data/config/locales/ja.yml +65 -111
  181. data/config/locales/lb.yml +6 -88
  182. data/config/locales/lt.yml +52 -103
  183. data/config/locales/lv.yml +1 -99
  184. data/config/locales/nl.yml +6 -104
  185. data/config/locales/no.yml +6 -114
  186. data/config/locales/pl.yml +6 -158
  187. data/config/locales/pt-BR.yml +23 -146
  188. data/config/locales/pt.yml +6 -111
  189. data/config/locales/ro-RO.yml +13 -108
  190. data/config/locales/ru.yml +1 -68
  191. data/config/locales/sk.yml +1 -85
  192. data/config/locales/sl.yml +3 -5
  193. data/config/locales/sv.yml +16 -107
  194. data/config/locales/tr-TR.yml +9 -110
  195. data/config/locales/uk.yml +1 -68
  196. data/config/locales/zh-CN.yml +6 -102
  197. data/config/locales/zh-TW.yml +31 -95
  198. data/db/migrate/20171017091734_add_scopes_for_all_initiative_types.rb +1 -1
  199. data/db/migrate/20171017095143_update_initiative_scoped_type.rb +1 -1
  200. data/db/migrate/20191002082220_move_signature_type_to_initative_type.rb +1 -1
  201. data/lib/decidim/api/initiative_committee_member_type.rb +2 -2
  202. data/lib/decidim/initiatives/admin_engine.rb +13 -93
  203. data/lib/decidim/initiatives/content_blocks/registry_manager.rb +22 -0
  204. data/lib/decidim/initiatives/engine.rb +45 -23
  205. data/lib/decidim/initiatives/menu.rb +150 -0
  206. data/lib/decidim/initiatives/participatory_space.rb +6 -91
  207. data/lib/decidim/initiatives/query_extensions.rb +5 -5
  208. data/lib/decidim/initiatives/seeds.rb +95 -0
  209. data/lib/decidim/initiatives/test/factories.rb +43 -48
  210. data/lib/decidim/initiatives/version.rb +1 -1
  211. data/lib/decidim/initiatives.rb +1 -1
  212. data/lib/tasks/decidim_initiatives.rake +2 -2
  213. data/lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake +1 -1
  214. metadata +48 -78
  215. data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +0 -28
  216. data/app/cells/decidim/initiatives/initiative_m/author.erb +0 -10
  217. data/app/cells/decidim/initiatives/initiative_m/footer.erb +0 -28
  218. data/app/cells/decidim/initiatives/initiative_m/tags.erb +0 -9
  219. data/app/cells/decidim/initiatives/initiative_m_cell.rb +0 -77
  220. data/app/controllers/decidim/initiatives/widgets_controller.rb +0 -44
  221. data/app/packs/stylesheets/decidim/initiatives/admin.scss +0 -33
  222. data/app/packs/stylesheets/decidim/initiatives/initiatives.scss +0 -64
  223. data/app/packs/stylesheets/decidim/initiatives/popularity_item.scss +0 -76
  224. data/app/packs/stylesheets/decidim/initiatives/statistics.scss +0 -15
  225. data/app/views/decidim/initiatives/create_initiative/_finish_help.html.erb +0 -2
  226. data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +0 -40
  227. data/app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb +0 -23
  228. data/app/views/decidim/initiatives/initiatives/_author.html.erb +0 -35
  229. data/app/views/decidim/initiatives/initiatives/_count.html.erb +0 -1
  230. data/app/views/decidim/initiatives/initiatives/_filters.html.erb +0 -33
  231. data/app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb +0 -18
  232. data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +0 -44
  233. data/app/views/decidim/initiatives/initiatives/_tags.html.erb +0 -7
  234. data/app/views/decidim/initiatives/versions/index.html.erb +0 -8
  235. data/config/locales/he-IL.yml +0 -1
  236. data/db/seeds/city.jpeg +0 -0
  237. data/db/seeds/city2.jpeg +0 -0
  238. data/decidim-initiatives.gemspec +0 -38
  239. data/lib/decidim/initiatives/initiatives_filter_form_builder.rb +0 -56
  240. data/lib/gem_overrides/origami/date.rb +0 -47
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-initiatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.8
4
+ version: 0.28.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-30 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,98 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.8
19
+ version: 0.28.0.rc4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.27.8
26
+ version: 0.28.0.rc4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.27.8
33
+ version: 0.28.0.rc4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.27.8
40
+ version: 0.28.0.rc4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.27.8
47
+ version: 0.28.0.rc4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.27.8
54
+ version: 0.28.0.rc4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-verifications
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.27.8
61
+ version: 0.28.0.rc4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.27.8
68
+ version: 0.28.0.rc4
69
69
  - !ruby/object:Gem::Dependency
70
- name: origami
70
+ name: hexapdf
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.1'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2.1'
83
- - !ruby/object:Gem::Dependency
84
- name: rexml
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 3.2.5
75
+ version: 0.32.0
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 3.2.5
97
- - !ruby/object:Gem::Dependency
98
- name: wicked
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.3'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.3'
82
+ version: 0.32.0
111
83
  - !ruby/object:Gem::Dependency
112
84
  name: wicked_pdf
113
85
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +114,28 @@ dependencies:
142
114
  requirements:
143
115
  - - '='
144
116
  - !ruby/object:Gem::Version
145
- version: 0.27.8
117
+ version: 0.28.0.rc4
146
118
  type: :development
147
119
  prerelease: false
148
120
  version_requirements: !ruby/object:Gem::Requirement
149
121
  requirements:
150
122
  - - '='
151
123
  - !ruby/object:Gem::Version
152
- version: 0.27.8
124
+ version: 0.28.0.rc4
153
125
  - !ruby/object:Gem::Dependency
154
126
  name: decidim-meetings
155
127
  requirement: !ruby/object:Gem::Requirement
156
128
  requirements:
157
129
  - - '='
158
130
  - !ruby/object:Gem::Version
159
- version: 0.27.8
131
+ version: 0.28.0.rc4
160
132
  type: :development
161
133
  prerelease: false
162
134
  version_requirements: !ruby/object:Gem::Requirement
163
135
  requirements:
164
136
  - - '='
165
137
  - !ruby/object:Gem::Version
166
- version: 0.27.8
138
+ version: 0.28.0.rc4
167
139
  description: Participants initiatives plugin for decidim.
168
140
  email:
169
141
  - jsperezg@gmail.com
@@ -174,20 +146,22 @@ files:
174
146
  - README.md
175
147
  - Rakefile
176
148
  - app/cells/decidim/initiative_activity_cell.rb
177
- - app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb
178
149
  - app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb
179
150
  - app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form/show.erb
180
151
  - app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb
181
152
  - app/cells/decidim/initiatives/initiative_cell.rb
182
- - app/cells/decidim/initiatives/initiative_m/author.erb
183
- - app/cells/decidim/initiatives/initiative_m/footer.erb
184
- - app/cells/decidim/initiatives/initiative_m/tags.erb
185
- - app/cells/decidim/initiatives/initiative_m_cell.rb
153
+ - app/cells/decidim/initiatives/initiative_dropdown_metadata_cell.rb
154
+ - app/cells/decidim/initiatives/initiative_g_cell.rb
155
+ - app/cells/decidim/initiatives/initiative_metadata_g_cell.rb
156
+ - app/cells/decidim/initiatives/initiative_s_cell.rb
186
157
  - app/cells/decidim/initiatives_votes/vote/show.erb
187
158
  - app/cells/decidim/initiatives_votes/vote_cell.rb
159
+ - app/commands/decidim/initiatives/admin/accept_initiative.rb
188
160
  - app/commands/decidim/initiatives/admin/create_initiative_type.rb
189
161
  - app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb
162
+ - app/commands/decidim/initiatives/admin/discard_initiative.rb
190
163
  - app/commands/decidim/initiatives/admin/publish_initiative.rb
164
+ - app/commands/decidim/initiatives/admin/reject_initiative.rb
191
165
  - app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb
192
166
  - app/commands/decidim/initiatives/admin/unpublish_initiative.rb
193
167
  - app/commands/decidim/initiatives/admin/update_initiative.rb
@@ -230,6 +204,7 @@ files:
230
204
  - app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb
231
205
  - app/controllers/decidim/initiatives/admin/moderations_controller.rb
232
206
  - app/controllers/decidim/initiatives/application_controller.rb
207
+ - app/controllers/decidim/initiatives/authorization_create_modals_controller.rb
233
208
  - app/controllers/decidim/initiatives/authorization_sign_modals_controller.rb
234
209
  - app/controllers/decidim/initiatives/committee_requests_controller.rb
235
210
  - app/controllers/decidim/initiatives/create_initiative_controller.rb
@@ -240,7 +215,6 @@ files:
240
215
  - app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb
241
216
  - app/controllers/decidim/initiatives/initiatives_type_signature_types_controller.rb
242
217
  - app/controllers/decidim/initiatives/versions_controller.rb
243
- - app/controllers/decidim/initiatives/widgets_controller.rb
244
218
  - app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb
245
219
  - app/events/decidim/initiatives/admin/support_threshold_reached_event.rb
246
220
  - app/events/decidim/initiatives/approve_membership_request_event.rb
@@ -288,12 +262,9 @@ files:
288
262
  - app/packs/src/decidim/initiatives/application.js
289
263
  - app/packs/src/decidim/initiatives/identity_selector_dialog.js
290
264
  - app/packs/src/decidim/initiatives/scoped_type.js
291
- - app/packs/stylesheets/decidim/initiatives/admin.scss
292
265
  - app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss
293
- - app/packs/stylesheets/decidim/initiatives/initiatives.scss
294
- - app/packs/stylesheets/decidim/initiatives/popularity_item.scss
295
266
  - app/packs/stylesheets/decidim/initiatives/print-initiative.scss
296
- - app/packs/stylesheets/decidim/initiatives/statistics.scss
267
+ - app/packs/stylesheets/initiatives.scss
297
268
  - app/permissions/decidim/initiatives/admin/permissions.rb
298
269
  - app/permissions/decidim/initiatives/permissions.rb
299
270
  - app/presenters/decidim/initiative_presenter.rb
@@ -321,13 +292,16 @@ files:
321
292
  - app/services/decidim/initiatives/progress_notifier.rb
322
293
  - app/services/decidim/initiatives/status_change_notifier.rb
323
294
  - app/views/decidim/initiatives/_initiative.html.erb
295
+ - app/views/decidim/initiatives/_modal.html.erb
324
296
  - app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb
325
297
  - app/views/decidim/initiatives/admin/answers/edit.html.erb
326
298
  - app/views/decidim/initiatives/admin/committee_requests/index.html.erb
327
299
  - app/views/decidim/initiatives/admin/exports/_dropdown.html.erb
328
300
  - app/views/decidim/initiatives/admin/initiatives/_form.html.erb
329
301
  - app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb
302
+ - app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb
330
303
  - app/views/decidim/initiatives/admin/initiatives/edit.html.erb
304
+ - app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb
331
305
  - app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
332
306
  - app/views/decidim/initiatives/admin/initiatives/index.html.erb
333
307
  - app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb
@@ -341,14 +315,11 @@ files:
341
315
  - app/views/decidim/initiatives/admin/initiatives_types/index.html.erb
342
316
  - app/views/decidim/initiatives/admin/initiatives_types/new.html.erb
343
317
  - app/views/decidim/initiatives/committee_requests/new.html.erb
344
- - app/views/decidim/initiatives/create_initiative/_finish_help.html.erb
345
318
  - app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb
346
319
  - app/views/decidim/initiatives/create_initiative/fill_data.html.erb
347
320
  - app/views/decidim/initiatives/create_initiative/finish.html.erb
348
- - app/views/decidim/initiatives/create_initiative/previous_form.html.erb
349
321
  - app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb
350
322
  - app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb
351
- - app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb
352
323
  - app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb
353
324
  - app/views/decidim/initiatives/initiative_signatures/error_on_vote.js.erb
354
325
  - app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb
@@ -357,22 +328,19 @@ files:
357
328
  - app/views/decidim/initiatives/initiative_signatures/sms_phone_number.html.erb
358
329
  - app/views/decidim/initiatives/initiative_signatures/update_buttons_and_counters.js.erb
359
330
  - app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb
360
- - app/views/decidim/initiatives/initiatives/_author.html.erb
361
331
  - app/views/decidim/initiatives/initiatives/_committee_members.html.erb
362
- - app/views/decidim/initiatives/initiatives/_count.html.erb
363
- - app/views/decidim/initiatives/initiatives/_filters.html.erb
364
- - app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb
365
332
  - app/views/decidim/initiatives/initiatives/_form.html.erb
366
- - app/views/decidim/initiatives/initiatives/_index_header.html.erb
367
333
  - app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb
334
+ - app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb
368
335
  - app/views/decidim/initiatives/initiatives/_initiatives.html.erb
369
336
  - app/views/decidim/initiatives/initiatives/_interactions.html.erb
370
337
  - app/views/decidim/initiatives/initiatives/_linked_initiatives.html.erb
338
+ - app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb
371
339
  - app/views/decidim/initiatives/initiatives/_no_initiatives_yet.html.erb
372
340
  - app/views/decidim/initiatives/initiatives/_progress_bar.html.erb
373
341
  - app/views/decidim/initiatives/initiatives/_result.html.erb
374
342
  - app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb
375
- - app/views/decidim/initiatives/initiatives/_tags.html.erb
343
+ - app/views/decidim/initiatives/initiatives/_tags_type.html.erb
376
344
  - app/views/decidim/initiatives/initiatives/_vote_button.html.erb
377
345
  - app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb
378
346
  - app/views/decidim/initiatives/initiatives/edit.html.erb
@@ -386,7 +354,6 @@ files:
386
354
  - app/views/decidim/initiatives/initiatives_mailer/notify_state_change.html.erb
387
355
  - app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb
388
356
  - app/views/decidim/initiatives/initiatives_type_signature_types/search.html.erb
389
- - app/views/decidim/initiatives/versions/index.html.erb
390
357
  - app/views/decidim/initiatives/versions/show.html.erb
391
358
  - app/views/layouts/decidim/_initiative_creation_header.html.erb
392
359
  - app/views/layouts/decidim/_initiative_header.html.erb
@@ -397,6 +364,7 @@ files:
397
364
  - app/views/layouts/decidim/admin/initiatives_votes.pdf.erb
398
365
  - app/views/layouts/decidim/initiative.html.erb
399
366
  - app/views/layouts/decidim/initiative_creation.html.erb
367
+ - app/views/layouts/decidim/initiative_head.html.erb
400
368
  - app/views/layouts/decidim/initiative_signature_creation.html.erb
401
369
  - config/assets.rb
402
370
  - config/initializers/wicked_pdf.rb
@@ -432,7 +400,6 @@ files:
432
400
  - config/locales/ga-IE.yml
433
401
  - config/locales/gl.yml
434
402
  - config/locales/gn-PY.yml
435
- - config/locales/he-IL.yml
436
403
  - config/locales/hr-HR.yml
437
404
  - config/locales/hr.yml
438
405
  - config/locales/hu.yml
@@ -539,9 +506,6 @@ files:
539
506
  - db/migrate/20210310120720_add_followable_counter_cache_to_initiatives.rb
540
507
  - db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb
541
508
  - db/migrate/20220527130640_create_decidim_initiatives_settings.rb
542
- - db/seeds/city.jpeg
543
- - db/seeds/city2.jpeg
544
- - decidim-initiatives.gemspec
545
509
  - lib/decidim/api/initiative_api_type.rb
546
510
  - lib/decidim/api/initiative_committee_member_type.rb
547
511
  - lib/decidim/api/initiative_type.rb
@@ -550,37 +514,43 @@ files:
550
514
  - lib/decidim/initiatives/admin.rb
551
515
  - lib/decidim/initiatives/admin_engine.rb
552
516
  - lib/decidim/initiatives/api.rb
517
+ - lib/decidim/initiatives/content_blocks/registry_manager.rb
553
518
  - lib/decidim/initiatives/current_locale.rb
554
519
  - lib/decidim/initiatives/engine.rb
555
520
  - lib/decidim/initiatives/initiative_slug.rb
556
- - lib/decidim/initiatives/initiatives_filter_form_builder.rb
521
+ - lib/decidim/initiatives/menu.rb
557
522
  - lib/decidim/initiatives/participatory_space.rb
558
523
  - lib/decidim/initiatives/query_extensions.rb
524
+ - lib/decidim/initiatives/seeds.rb
559
525
  - lib/decidim/initiatives/test/factories.rb
560
526
  - lib/decidim/initiatives/version.rb
561
- - lib/gem_overrides/origami/date.rb
562
527
  - lib/tasks/decidim_initiatives.rake
563
528
  - lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake
564
- homepage: https://github.com/decidim/decidim
529
+ homepage: https://decidim.org
565
530
  licenses:
566
531
  - AGPL-3.0
567
- metadata: {}
532
+ metadata:
533
+ bug_tracker_uri: https://github.com/decidim/decidim/issues
534
+ documentation_uri: https://docs.decidim.org/
535
+ funding_uri: https://opencollective.com/decidim
536
+ homepage_uri: https://decidim.org
537
+ source_code_uri: https://github.com/decidim/decidim
568
538
  post_install_message:
569
539
  rdoc_options: []
570
540
  require_paths:
571
541
  - lib
572
542
  required_ruby_version: !ruby/object:Gem::Requirement
573
543
  requirements:
574
- - - "~>"
544
+ - - ">="
575
545
  - !ruby/object:Gem::Version
576
- version: 3.0.0
546
+ version: '3.1'
577
547
  required_rubygems_version: !ruby/object:Gem::Requirement
578
548
  requirements:
579
- - - ">="
549
+ - - ">"
580
550
  - !ruby/object:Gem::Version
581
- version: '0'
551
+ version: 1.3.1
582
552
  requirements: []
583
- rubygems_version: 3.5.14
553
+ rubygems_version: 3.4.20
584
554
  signing_key:
585
555
  specification_version: 4
586
556
  summary: Decidim initiatives module
@@ -1,28 +0,0 @@
1
- <section id="highlighted_initiatives" class="wrapper-home home-section">
2
- <div class="row" id="highlighted-initiatives">
3
- <h3 class="section-heading"><%= t("active_initiatives", scope: i18n_scope) %></h3>
4
- <div class="row collapse">
5
- <div class="row small-up-1 smallmedium-up-2 mediumlarge-up-3 large-up-4 card-grid">
6
- <% highlighted_initiatives.each do |initiative| %>
7
- <div class="column">
8
- <%= link_to decidim_initiatives.initiative_path(initiative), class: "card card--initiative card--mini" do %>
9
- <div aria-hidden="true" class="card__image-top"
10
- style="background-image:url('<%= initiative.banner_image.path %>')"></div>
11
- <span class="show-for-sr"><%= decidim_escape_translated initiative.title %></span>
12
- <div class="card__content">
13
- <span class="card__title card__link"><%= decidim_escape_translated(initiative.title) %></span>
14
- </div>
15
- <% end %>
16
- </div>
17
- <% end %>
18
- </div>
19
- </div>
20
- </div>
21
-
22
- <div class="row" id="see-all-initiatives">
23
- <div class="columns small-centered small-12 smallmedium-8 medium-6 large-4">
24
- <%= link_to t("see_all_initiatives", scope: i18n_scope), decidim_initiatives.initiatives_path,
25
- class: "button expanded hollow button--sc home-section__cta" %>
26
- </div>
27
- </div>
28
- </section>
@@ -1,10 +0,0 @@
1
- <div class="card__author">
2
- <%= cell(
3
- "decidim/collapsible_list",
4
- authors,
5
- size: 3,
6
- cell_name: "decidim/author",
7
- hidden_elements_count_i18n_key: "decidim.initiatives.initiatives.author_list.hidden_authors_count",
8
- cell_options: { extra_classes: ["author-data--small"] }
9
- ) %>
10
- </div>
@@ -1,28 +0,0 @@
1
- <div class="card__footer card__footer--spaces">
2
- <div class="card__support">
3
- <% if model.published? || model.rejected? || model.accepted? %>
4
- <div class="card__support__data">
5
- <%= cell(
6
- "decidim/progress_bar",
7
- model.supports_count,
8
- total: model.scoped_type.supports_required,
9
- units_name: "decidim.initiatives.initiatives.signatures_count",
10
- element_id: "initiative-#{model.id}-signatures-count",
11
- small: true
12
- ) %>
13
- </div>
14
- <% else %>
15
- <div class="card__support__data"></div>
16
- <% end %>
17
-
18
- <% if model.closed? || model.offline_signature_type? %>
19
- <%= link_to t("initiatives.initiative.check", scope: "layouts.decidim"),
20
- resource_path,
21
- class: "card__button button button--sc small light secondary" %>
22
- <% else %>
23
- <%= link_to t("initiatives.initiative.check_and_support", scope: "layouts.decidim"),
24
- resource_path,
25
- class: "card__button button button--sc small light secondary" %>
26
- <% end %>
27
- </div>
28
- </div>
@@ -1,9 +0,0 @@
1
- <% if model.hashtag.present? %>
2
- <%= link_to(
3
- "##{hashtag}",
4
- twitter_hashtag_url(hashtag),
5
- class: "card__text--category",
6
- target: "_blank"
7
- ) %>
8
- <% end %>
9
- <%= render partial: "decidim/initiatives/initiatives/tags.html", locals: { resource: model } %>
@@ -1,77 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Initiatives
5
- # This cell renders the Medium (:m) initiative card
6
- # for an given instance of an Initiative
7
- class InitiativeMCell < Decidim::CardMCell
8
- include Decidim::Initiatives::Engine.routes.url_helpers
9
- include Decidim::TwitterSearchHelper
10
-
11
- property :state
12
-
13
- private
14
-
15
- def title
16
- decidim_html_escape(translated_attribute(model.title))
17
- end
18
-
19
- def hashtag
20
- decidim_html_escape(model.hashtag)
21
- end
22
-
23
- def has_state?
24
- true
25
- end
26
-
27
- # Explicitely commenting the used I18n keys so their are not flagged as unused
28
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.accepted')
29
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.created')
30
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.discarded')
31
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.published')
32
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.rejected')
33
- # i18n-tasks-use t('decidim.initiatives.show.badge_name.validating')
34
- def badge_name
35
- I18n.t(model.state, scope: "decidim.initiatives.show.badge_name")
36
- end
37
-
38
- def state_classes
39
- case state
40
- when "accepted", "published"
41
- ["success"]
42
- when "rejected", "discarded"
43
- ["alert"]
44
- when "validating"
45
- ["warning"]
46
- else
47
- ["muted"]
48
- end
49
- end
50
-
51
- def resource_path
52
- initiative_path(model)
53
- end
54
-
55
- def resource_icon
56
- icon "initiatives", class: "icon--big"
57
- end
58
-
59
- def authors
60
- [present(model).author] +
61
- model.committee_members.approved.non_deleted.excluding_author.map { |member| present(member.user) }
62
- end
63
-
64
- def has_image?
65
- image.present?
66
- end
67
-
68
- def image
69
- @image ||= model.attachments.find(&:image?)
70
- end
71
-
72
- def resource_image_path
73
- image.url if has_image?
74
- end
75
- end
76
- end
77
- end
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Initiatives
5
- # This controller provides a widget that allows embedding the initiative
6
- class WidgetsController < Decidim::WidgetsController
7
- helper InitiativesHelper
8
- helper PaginateHelper
9
- helper InitiativeHelper
10
- helper Decidim::Comments::CommentsHelper
11
- helper Decidim::Admin::IconLinkHelper
12
-
13
- include NeedsInitiative
14
-
15
- def show
16
- enforce_permission_to :embed, :participatory_space, current_participatory_space: model if model
17
-
18
- super
19
- end
20
-
21
- private
22
-
23
- def model
24
- @model ||= if current_initiative.created? || current_initiative.validating? || current_initiative.discarded?
25
- nil
26
- else
27
- current_initiative
28
- end
29
- end
30
-
31
- def current_participatory_space
32
- model
33
- end
34
-
35
- def iframe_url
36
- @iframe_url ||= initiative_widget_url(model)
37
- end
38
-
39
- def permission_class_chain
40
- ::Decidim.permissions_registry.chain_for(::Decidim::Initiatives::ApplicationController)
41
- end
42
- end
43
- end
44
- end
@@ -1,33 +0,0 @@
1
- .committee_link{
2
- border: 1px solid lightgray;
3
- float: left;
4
- padding: .85em 1em;
5
- width: auto;
6
- }
7
-
8
- .invite-users-link{
9
- padding: .85em 1em;
10
- }
11
-
12
- #initiatives_type_remove_banner_image{
13
- display: none;
14
- }
15
-
16
- #initiatives_type_remove_banner_image + label{
17
- display: none;
18
- }
19
-
20
- .text-right{
21
- text-align: right !important;
22
- }
23
-
24
- .white-button{
25
- color: #599aa6;
26
- background: white;
27
- }
28
-
29
- .white-button:hover{
30
- color: #599aa6;
31
- background: white;
32
- font-weight: bold;
33
- }
@@ -1,64 +0,0 @@
1
- @import "stylesheets/decidim/initiatives/popularity_item";
2
- @import "stylesheets/decidim/initiatives/statistics";
3
- @import "stylesheets/decidim/initiatives/admin";
4
-
5
- .ql-formats{
6
- .ql-video{
7
- margin: 0;
8
- }
9
- }
10
-
11
- .initiative-status{
12
- float: left;
13
- margin-right: .5rem;
14
- }
15
-
16
- .supports-list{
17
- .author{
18
- margin-right: 15px;
19
-
20
- .author__name{
21
- color: #599aa6;
22
- }
23
- }
24
- }
25
-
26
- .initiative-authors{
27
- padding-left: 0 !important;
28
-
29
- .publish-date{
30
- display: inline-block;
31
- margin-left: -10px;
32
- }
33
-
34
- .author{
35
- margin-right: 15px;
36
- }
37
-
38
- .author__avatar--small{
39
- margin-left: 0 !important;
40
- }
41
-
42
- .author__name{
43
- margin-left: 25px;
44
- }
45
- }
46
-
47
- .lowercase{
48
- text-transform: lowercase !important;
49
- }
50
-
51
- .legal_text{
52
- font-size: 8pt;
53
- }
54
-
55
- .progress__bar--horizontal{
56
- &:last-of-type{
57
- margin-bottom: 1.5rem;
58
- }
59
- }
60
-
61
- fieldset{
62
- padding: .5em;
63
- margin-bottom: 1em;
64
- }