decidim-conferences 0.27.4 → 0.28.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/conferences/conference_cell.rb +9 -4
  3. data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
  4. data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
  5. data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
  6. data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
  7. data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
  8. data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
  9. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
  10. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
  11. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
  12. data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
  13. data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
  14. data/app/cells/decidim/conferences/media_link/show.erb +6 -8
  15. data/app/cells/decidim/conferences/partner/image.erb +3 -0
  16. data/app/cells/decidim/conferences/partner/show.erb +8 -8
  17. data/app/cells/decidim/conferences/partner/text.erb +1 -0
  18. data/app/cells/decidim/conferences/partner_cell.rb +4 -2
  19. data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
  20. data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
  21. data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
  22. data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
  23. data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
  24. data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
  25. data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
  26. data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
  27. data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
  28. data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
  29. data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
  30. data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
  31. data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
  32. data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
  33. data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
  34. data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
  35. data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
  36. data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
  37. data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
  38. data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
  39. data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
  40. data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
  41. data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
  42. data/app/commands/decidim/conferences/join_conference.rb +5 -5
  43. data/app/constraints/decidim/conferences/current_component.rb +2 -2
  44. data/app/constraints/decidim/conferences/current_conference.rb +2 -2
  45. data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
  46. data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
  47. data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
  48. data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
  49. data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
  50. data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
  51. data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
  52. data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
  53. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
  54. data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
  55. data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
  56. data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
  57. data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
  58. data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
  59. data/app/controllers/decidim/conferences/application_controller.rb +6 -0
  60. data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
  61. data/app/controllers/decidim/conferences/conferences_controller.rb +10 -3
  62. data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
  63. data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
  64. data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
  65. data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
  66. data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
  67. data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
  68. data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
  69. data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
  70. data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
  71. data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
  72. data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
  73. data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
  74. data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
  75. data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
  76. data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
  77. data/app/models/decidim/conference.rb +4 -4
  78. data/app/models/decidim/conference_user_role.rb +6 -34
  79. data/app/packs/entrypoints/decidim_conferences.js +5 -0
  80. data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
  81. data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
  82. data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
  83. data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
  84. data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
  85. data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
  86. data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
  87. data/app/permissions/decidim/conferences/permissions.rb +2 -2
  88. data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
  89. data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
  90. data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
  91. data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
  92. data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
  93. data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
  94. data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
  95. data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
  96. data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
  97. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
  98. data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
  99. data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
  100. data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
  101. data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
  102. data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
  103. data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
  104. data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
  105. data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
  106. data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
  107. data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
  108. data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
  109. data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
  110. data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
  111. data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
  112. data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
  113. data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
  114. data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
  115. data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
  116. data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
  117. data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
  118. data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
  119. data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
  120. data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
  121. data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
  122. data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
  123. data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
  124. data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
  125. data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
  126. data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
  127. data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
  128. data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
  129. data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
  130. data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
  131. data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
  132. data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
  133. data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
  134. data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
  135. data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
  136. data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
  137. data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
  138. data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
  139. data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
  140. data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
  141. data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
  142. data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
  143. data/app/views/decidim/conferences/media/index.html.erb +33 -19
  144. data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
  145. data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
  146. data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
  147. data/app/views/layouts/decidim/conference.html.erb +7 -17
  148. data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
  149. data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
  150. data/config/assets.rb +1 -1
  151. data/config/environment.rb +3 -0
  152. data/config/initializers/wicked_pdf.rb +1 -1
  153. data/config/locales/ar.yml +1 -68
  154. data/config/locales/bg.yml +0 -1
  155. data/config/locales/ca.yml +35 -55
  156. data/config/locales/cs.yml +40 -58
  157. data/config/locales/de.yml +37 -57
  158. data/config/locales/el.yml +11 -57
  159. data/config/locales/en.yml +36 -56
  160. data/config/locales/es-MX.yml +34 -54
  161. data/config/locales/es-PY.yml +34 -54
  162. data/config/locales/es.yml +33 -53
  163. data/config/locales/eu.yml +179 -198
  164. data/config/locales/fi-plain.yml +33 -53
  165. data/config/locales/fi.yml +39 -59
  166. data/config/locales/fr-CA.yml +33 -53
  167. data/config/locales/fr.yml +34 -54
  168. data/config/locales/ga-IE.yml +0 -17
  169. data/config/locales/gl.yml +1 -68
  170. data/config/locales/hu.yml +15 -57
  171. data/config/locales/id-ID.yml +1 -62
  172. data/config/locales/it.yml +2 -68
  173. data/config/locales/ja.yml +34 -55
  174. data/config/locales/lb.yml +1 -59
  175. data/config/locales/lt.yml +21 -54
  176. data/config/locales/lv.yml +1 -65
  177. data/config/locales/nl.yml +1 -68
  178. data/config/locales/no.yml +1 -68
  179. data/config/locales/pl.yml +1 -66
  180. data/config/locales/pt-BR.yml +1 -68
  181. data/config/locales/pt.yml +1 -68
  182. data/config/locales/ro-RO.yml +11 -56
  183. data/config/locales/sk.yml +1 -65
  184. data/config/locales/sl.yml +0 -3
  185. data/config/locales/sq-AL.yml +1 -0
  186. data/config/locales/sr-CS.yml +0 -5
  187. data/config/locales/sv.yml +7 -67
  188. data/config/locales/th-TH.yml +1 -0
  189. data/config/locales/tr-TR.yml +12 -66
  190. data/config/locales/zh-CN.yml +1 -65
  191. data/config/locales/zh-TW.yml +6 -53
  192. data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
  193. data/lib/decidim/api/conference_speaker_type.rb +1 -1
  194. data/lib/decidim/conferences/admin_engine.rb +14 -138
  195. data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
  196. data/lib/decidim/conferences/engine.rb +17 -15
  197. data/lib/decidim/conferences/menu.rb +182 -0
  198. data/lib/decidim/conferences/participatory_space.rb +6 -200
  199. data/lib/decidim/conferences/query_extensions.rb +2 -2
  200. data/lib/decidim/conferences/seeds.rb +153 -0
  201. data/lib/decidim/conferences/test/factories.rb +10 -9
  202. data/lib/decidim/conferences/version.rb +1 -1
  203. metadata +46 -46
  204. data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
  205. data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
  206. data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
  207. data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
  208. data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
  209. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
  210. data/app/cells/decidim/conferences/photo/show.erb +0 -26
  211. data/app/cells/decidim/conferences/photo_cell.rb +0 -41
  212. data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
  213. data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
  214. data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
  215. data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
  216. data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
  217. data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
  218. data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
  219. data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
  220. data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
  221. data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
  222. data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
  223. data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
  224. data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
  225. data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
  226. data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
  227. data/db/seeds/Exampledocument.pdf +0 -0
  228. data/db/seeds/city.jpeg +0 -0
  229. data/db/seeds/city2.jpeg +0 -0
  230. data/db/seeds/homepage_image.jpg +0 -0
  231. data/db/seeds/logo.png +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-conferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.4
4
+ version: 0.28.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.4
19
+ version: 0.28.0.rc5
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.4
26
+ version: 0.28.0.rc5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-meetings
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.27.4
33
+ version: 0.28.0.rc5
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.4
40
+ version: 0.28.0.rc5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wicked_pdf
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.1'
47
+ version: '2.7'
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: '2.1'
54
+ version: '2.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: wkhtmltopdf-binary
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.27.4
75
+ version: 0.28.0.rc5
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.27.4
82
+ version: 0.28.0.rc5
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: decidim-dev
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.27.4
89
+ version: 0.28.0.rc5
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.27.4
96
+ version: 0.28.0.rc5
97
97
  description: Conferences component for decidim.
98
98
  email:
99
99
  - isaac.mg@coditramuntana.com
@@ -103,26 +103,24 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - README.md
105
105
  - Rakefile
106
- - app/cells/decidim/conferences/conference_address/show.erb
107
- - app/cells/decidim/conferences/conference_address_cell.rb
108
106
  - app/cells/decidim/conferences/conference_cell.rb
109
- - app/cells/decidim/conferences/conference_m/footer.erb
110
- - app/cells/decidim/conferences/conference_m/tags.erb
111
- - app/cells/decidim/conferences/conference_m_cell.rb
107
+ - app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb
108
+ - app/cells/decidim/conferences/conference_g_cell.rb
109
+ - app/cells/decidim/conferences/conference_metadata_cell.rb
110
+ - app/cells/decidim/conferences/conference_s_cell.rb
112
111
  - app/cells/decidim/conferences/conference_speaker/show.erb
113
112
  - app/cells/decidim/conferences/conference_speaker_cell.rb
114
- - app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb
115
113
  - app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb
114
+ - app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb
115
+ - app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb
116
116
  - app/cells/decidim/conferences/linked_participatory_spaces/show.erb
117
117
  - app/cells/decidim/conferences/linked_participatory_spaces_cell.rb
118
118
  - app/cells/decidim/conferences/media_link/show.erb
119
119
  - app/cells/decidim/conferences/media_link_cell.rb
120
+ - app/cells/decidim/conferences/partner/image.erb
120
121
  - app/cells/decidim/conferences/partner/show.erb
122
+ - app/cells/decidim/conferences/partner/text.erb
121
123
  - app/cells/decidim/conferences/partner_cell.rb
122
- - app/cells/decidim/conferences/photo/show.erb
123
- - app/cells/decidim/conferences/photo_cell.rb
124
- - app/cells/decidim/conferences/photos_list/show.erb
125
- - app/cells/decidim/conferences/photos_list_cell.rb
126
124
  - app/cells/decidim/conferences/registration_type/join_conference.erb
127
125
  - app/cells/decidim/conferences/registration_type/registration_confirm.erb
128
126
  - app/cells/decidim/conferences/registration_type/show.erb
@@ -130,26 +128,21 @@ files:
130
128
  - app/commands/decidim/conferences/admin/confirm_conference_registration.rb
131
129
  - app/commands/decidim/conferences/admin/copy_conference.rb
132
130
  - app/commands/decidim/conferences/admin/create_conference.rb
133
- - app/commands/decidim/conferences/admin/create_conference_admin.rb
134
131
  - app/commands/decidim/conferences/admin/create_conference_speaker.rb
135
132
  - app/commands/decidim/conferences/admin/create_media_link.rb
136
133
  - app/commands/decidim/conferences/admin/create_partner.rb
137
134
  - app/commands/decidim/conferences/admin/create_registration_type.rb
138
- - app/commands/decidim/conferences/admin/destroy_conference_admin.rb
139
135
  - app/commands/decidim/conferences/admin/destroy_conference_speaker.rb
140
136
  - app/commands/decidim/conferences/admin/destroy_media_link.rb
141
137
  - app/commands/decidim/conferences/admin/destroy_partner.rb
142
138
  - app/commands/decidim/conferences/admin/destroy_registration_type.rb
143
139
  - app/commands/decidim/conferences/admin/export_conference_registrations.rb
144
140
  - app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb
145
- - app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb
146
141
  - app/commands/decidim/conferences/admin/publish_conference.rb
147
142
  - app/commands/decidim/conferences/admin/publish_registration_type.rb
148
143
  - app/commands/decidim/conferences/admin/send_conference_diplomas.rb
149
- - app/commands/decidim/conferences/admin/unpublish_conference.rb
150
144
  - app/commands/decidim/conferences/admin/unpublish_registration_type.rb
151
145
  - app/commands/decidim/conferences/admin/update_conference.rb
152
- - app/commands/decidim/conferences/admin/update_conference_admin.rb
153
146
  - app/commands/decidim/conferences/admin/update_conference_speaker.rb
154
147
  - app/commands/decidim/conferences/admin/update_diploma.rb
155
148
  - app/commands/decidim/conferences/admin/update_media_link.rb
@@ -190,7 +183,6 @@ files:
190
183
  - app/controllers/decidim/conferences/conference_program_controller.rb
191
184
  - app/controllers/decidim/conferences/conference_registrations_controller.rb
192
185
  - app/controllers/decidim/conferences/conference_speakers_controller.rb
193
- - app/controllers/decidim/conferences/conference_widgets_controller.rb
194
186
  - app/controllers/decidim/conferences/conferences_controller.rb
195
187
  - app/controllers/decidim/conferences/media_controller.rb
196
188
  - app/controllers/decidim/conferences/registration_types_controller.rb
@@ -230,11 +222,17 @@ files:
230
222
  - app/models/decidim/conferences/media_link.rb
231
223
  - app/models/decidim/conferences/partner.rb
232
224
  - app/models/decidim/conferences/registration_type.rb
225
+ - app/packs/entrypoints/decidim_conferences.js
233
226
  - app/packs/entrypoints/decidim_conferences_admin.js
234
227
  - app/packs/images/decidim/conferences/decidim_conferences.svg
235
228
  - app/packs/src/decidim/conferences/admin/conference_invite_form.js
236
229
  - app/packs/src/decidim/conferences/admin/conference_speakers.js
237
230
  - app/packs/src/decidim/conferences/admin/conferences.js
231
+ - app/packs/stylesheets/decidim/conferences/_conference.scss
232
+ - app/packs/stylesheets/decidim/conferences/_media.scss
233
+ - app/packs/stylesheets/decidim/conferences/_program.scss
234
+ - app/packs/stylesheets/decidim/conferences/_registration.scss
235
+ - app/packs/stylesheets/decidim/conferences/_speaker.scss
238
236
  - app/packs/stylesheets/decidim/conferences/conferences.scss
239
237
  - app/permissions/decidim/conferences/permissions.rb
240
238
  - app/presenters/decidim/admin/conference_speaker_presenter.rb
@@ -253,7 +251,6 @@ files:
253
251
  - app/presenters/decidim/conferences/conference_stats_presenter.rb
254
252
  - app/presenters/decidim/log/value_types/conference_presenter.rb
255
253
  - app/queries/decidim/conferences/admin/admin_users.rb
256
- - app/queries/decidim/conferences/admin/conference_invites.rb
257
254
  - app/queries/decidim/conferences/admin/conference_speakers.rb
258
255
  - app/queries/decidim/conferences/conference_program_meetings.rb
259
256
  - app/queries/decidim/conferences/conference_program_meetings_by_day.rb
@@ -274,7 +271,6 @@ files:
274
271
  - app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb
275
272
  - app/views/decidim/conference_speakers/_conference_speaker.html.erb
276
273
  - app/views/decidim/conferences/_conference.html.erb
277
- - app/views/decidim/conferences/_order_by_conferences.html.erb
278
274
  - app/views/decidim/conferences/admin/conference_copies/_form.html.erb
279
275
  - app/views/decidim/conferences/admin/conference_copies/new.html.erb
280
276
  - app/views/decidim/conferences/admin/conference_invites/_form.html.erb
@@ -316,21 +312,19 @@ files:
316
312
  - app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb
317
313
  - app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb
318
314
  - app/views/decidim/conferences/conference_speakers/index.html.erb
315
+ - app/views/decidim/conferences/conferences/_conference_hero.html.erb
319
316
  - app/views/decidim/conferences/conferences/_partners.html.erb
320
- - app/views/decidim/conferences/conferences/_promoted_conference.html.erb
321
317
  - app/views/decidim/conferences/conferences/index.html.erb
322
318
  - app/views/decidim/conferences/conferences/show.html.erb
323
- - app/views/decidim/conferences/media/_attachments.html.erb
324
319
  - app/views/decidim/conferences/media/index.html.erb
325
320
  - app/views/decidim/conferences/registration_types/index.html.erb
326
- - app/views/decidim/conferences/shared/_conference_user_login.html.erb
327
321
  - app/views/devise/mailer/join_conference.html.erb
328
322
  - app/views/devise/mailer/join_conference.text.erb
329
- - app/views/layouts/decidim/_conference_hero.html.erb
330
- - app/views/layouts/decidim/_conferences_nav.html.erb
331
323
  - app/views/layouts/decidim/admin/conference.html.erb
332
324
  - app/views/layouts/decidim/admin/conferences.html.erb
333
325
  - app/views/layouts/decidim/conference.html.erb
326
+ - app/views/layouts/decidim/conferences/_conference_nav_item.html.erb
327
+ - app/views/layouts/decidim/conferences/application.html.erb
334
328
  - app/views/layouts/decidim/diploma.html.erb
335
329
  - config/assets.rb
336
330
  - config/environment.rb
@@ -401,9 +395,11 @@ files:
401
395
  - config/locales/sk.yml
402
396
  - config/locales/sl.yml
403
397
  - config/locales/so-SO.yml
398
+ - config/locales/sq-AL.yml
404
399
  - config/locales/sr-CS.yml
405
400
  - config/locales/sv.yml
406
401
  - config/locales/sw-KE.yml
402
+ - config/locales/th-TH.yml
407
403
  - config/locales/ti-ER.yml
408
404
  - config/locales/tr-TR.yml
409
405
  - config/locales/uk.yml
@@ -430,11 +426,7 @@ files:
430
426
  - db/migrate/20200320105915_index_foreign_keys_in_decidim_conferences_conference_registrations.rb
431
427
  - db/migrate/20210310134942_add_followable_counter_cache_to_conferences.rb
432
428
  - db/migrate/20210408204953_allow_null_logo_column_in_decidim_conferences_partners_table.rb
433
- - db/seeds/Exampledocument.pdf
434
- - db/seeds/city.jpeg
435
- - db/seeds/city2.jpeg
436
- - db/seeds/homepage_image.jpg
437
- - db/seeds/logo.png
429
+ - db/migrate/20221116084952_add_weight_to_conferences.rb
438
430
  - lib/decidim/api/conference_media_link_type.rb
439
431
  - lib/decidim/api/conference_partner_type.rb
440
432
  - lib/decidim/api/conference_speaker_type.rb
@@ -443,15 +435,23 @@ files:
443
435
  - lib/decidim/conferences/admin.rb
444
436
  - lib/decidim/conferences/admin_engine.rb
445
437
  - lib/decidim/conferences/api.rb
438
+ - lib/decidim/conferences/content_blocks/registry_manager.rb
446
439
  - lib/decidim/conferences/engine.rb
440
+ - lib/decidim/conferences/menu.rb
447
441
  - lib/decidim/conferences/participatory_space.rb
448
442
  - lib/decidim/conferences/query_extensions.rb
443
+ - lib/decidim/conferences/seeds.rb
449
444
  - lib/decidim/conferences/test/factories.rb
450
445
  - lib/decidim/conferences/version.rb
451
- homepage: https://github.com/decidim/decidim
446
+ homepage: https://decidim.org
452
447
  licenses:
453
448
  - AGPL-3.0
454
- metadata: {}
449
+ metadata:
450
+ bug_tracker_uri: https://github.com/decidim/decidim/issues
451
+ documentation_uri: https://docs.decidim.org/
452
+ funding_uri: https://opencollective.com/decidim
453
+ homepage_uri: https://decidim.org
454
+ source_code_uri: https://github.com/decidim/decidim
455
455
  post_install_message:
456
456
  rdoc_options: []
457
457
  require_paths:
@@ -460,14 +460,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
460
460
  requirements:
461
461
  - - ">="
462
462
  - !ruby/object:Gem::Version
463
- version: '3.0'
463
+ version: '3.1'
464
464
  required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  requirements:
466
- - - ">="
466
+ - - ">"
467
467
  - !ruby/object:Gem::Version
468
- version: '0'
468
+ version: 1.3.1
469
469
  requirements: []
470
- rubygems_version: 3.2.22
470
+ rubygems_version: 3.4.22
471
471
  signing_key:
472
472
  specification_version: 4
473
473
  summary: Decidim conferences module
@@ -1,11 +0,0 @@
1
- <div class="mb-s">
2
- <% if model.respond_to? :location %>
3
- <div>
4
- <strong><%= translated_attribute model.location %></strong><br>
5
- </div>
6
- <% end %>
7
- <div class="text-medium"><%= model.address %></div>
8
- <% if model.respond_to? :location_hints %>
9
- <div class="text-medium"><%= translated_attribute model.location_hints %></div>
10
- <% end %>
11
- </div>
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- # This cell renders the address of a conference.
5
- module Conferences
6
- class ConferenceAddressCell < Decidim::ViewModel
7
- include Cell::ViewModel::Partial
8
- include LayoutHelper
9
- end
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- <div class="card__footer card__footer--spaces">
2
- <div class="card__support">
3
- <%= link_to(
4
- t(model.cta_button_text_key, scope: "layouts.decidim.conferences.conference"),
5
- resource_path,
6
- class: "card__button button button--sc small"
7
- ) %>
8
- </div>
9
- </div>
@@ -1 +0,0 @@
1
- <%= render_hook :upcoming_meeting_for_card %>
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- # This cell renders the Medium (:m) conference card
6
- # for an given instance of an Conference
7
- class ConferenceMCell < Decidim::CardMCell
8
- include Decidim::ViewHooksHelper
9
-
10
- # Needed for the view hooks
11
- def current_participatory_space
12
- model
13
- end
14
-
15
- private
16
-
17
- def title
18
- decidim_html_escape(super)
19
- end
20
-
21
- def has_image?
22
- true
23
- end
24
-
25
- def resource_path
26
- Decidim::Conferences::Engine.routes.url_helpers.conference_path(model)
27
- end
28
-
29
- def resource_image_path
30
- model.attached_uploader(:hero_image).path
31
- end
32
-
33
- def statuses
34
- [:creation_date, :follow]
35
- end
36
-
37
- def resource_icon
38
- icon "conferences", class: "icon--big"
39
- end
40
- end
41
- end
42
- end
@@ -1,30 +0,0 @@
1
- <section id="highlighted_conferences" class="wrapper-home home-section">
2
- <div class="row" id="highlighted-conferences">
3
- <h3 class="section-heading"><%= t("active_conferences", scope: i18n_scope) %></h3>
4
- <div class="row collapse">
5
- <div class="row small-up-1 smallmedium-up-2 mediumlarge-up-3
6
- large-up-4 card-grid">
7
- <% highlighted_conferences.each do |conference| %>
8
- <div class="column">
9
- <%= link_to decidim_conferences.conference_path(conference), class: "card card--conference card--mini" do %>
10
- <div aria-hidden="true" class="card__image-top"
11
- style="background-image:url('<%= conference.attached_uploader(:hero_image).path %>')"></div>
12
- <div class="card__content">
13
- <span class="card__title card__link"><%= translated_attribute conference.title %></span>
14
- </div>
15
- <% end %>
16
- </div>
17
- <% end %>
18
- </div>
19
- </div>
20
- </div>
21
- <div class="row" id="see-all-conferences">
22
- <div class="columns small-centered small-12
23
- smallmedium-8 medium-6 large-4">
24
- <%= link_to t("see_all_conferences", scope: i18n_scope),
25
- decidim_conferences.conferences_path,
26
- class: "button expanded hollow button--sc home-section__cta",
27
- title: t("conferences_button_title", scope: i18n_scope) %>
28
- </div>
29
- </div>
30
- </section>
@@ -1,26 +0,0 @@
1
- <div class="column">
2
- <div class="card" data-open="media-picture-<%= index %>">
3
- <div class="picture__content">
4
- <%= image_thumb %>
5
- <strong class="card__title"><%= title %></strong>
6
- <div class="text-small">
7
- <%= short_description %>
8
- </div>
9
- </div>
10
- </div>
11
- <div id="media-picture-<%= index %>" class="reveal picture__modal" data-reveal>
12
- <div class="reveal__header">
13
- <h3 class="reveal__title"><%= t("conferences.photo.show.photo", scope: "decidim") %></h3>
14
- </div>
15
- <%= image_big %>
16
- <h5>
17
- <strong><%= title %></strong>
18
- </h5>
19
- <div class="text-small">
20
- <%= decidim_sanitize_editor description %>
21
- </div>
22
- <button class="close-button" data-close aria-label="<%= t("conferences.photo.show.close_modal", scope: "decidim") %>" type="button">
23
- <span aria-hidden="true">&times;</span>
24
- </button>
25
- </div>
26
- </div>
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- # This cell renders the media link card for an instance of a MediaLink
6
- class PhotoCell < Decidim::ViewModel
7
- include Decidim::ApplicationHelper
8
- include Decidim::SanitizeHelper
9
-
10
- def show
11
- render
12
- end
13
-
14
- private
15
-
16
- def index
17
- @options[:index]
18
- end
19
-
20
- def image_thumb
21
- image_tag model.thumbnail_url, alt: t("alt", scope: "decidim.conferences.photo.image.attributes")
22
- end
23
-
24
- def image_big
25
- image_tag model.big_url, alt: t("alt", scope: "decidim.conferences.photo.image.attributes")
26
- end
27
-
28
- def title
29
- translated_attribute model.title
30
- end
31
-
32
- def short_description
33
- decidim_sanitize_editor html_truncate(description, length: 100, separator: "...")
34
- end
35
-
36
- def description
37
- translated_attribute(model.description)
38
- end
39
- end
40
- end
41
- end
@@ -1,8 +0,0 @@
1
- <div class="section images">
2
- <h3 class="section-heading"><%= t("conferences.photos_list.show.related_photos", scope: "decidim") %></h3>
3
- <div class="row small-up-1 smallmedium-up-2 card-grid">
4
- <% model.each_with_index do |photo, index| %>
5
- <%= cell "decidim/conferences/photo", photo, index: index %>
6
- <% end %>
7
- </div>
8
- </div>
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- # This cell renders the photos list
6
- class PhotosListCell < Decidim::ViewModel
7
- include Cell::ViewModel::Partial
8
- include Decidim::ApplicationHelper
9
- include Decidim::SanitizeHelper
10
-
11
- def show
12
- return unless model.any?
13
-
14
- render
15
- end
16
- end
17
- end
18
- end
@@ -1,114 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- module Admin
6
- # A command with all the business logic when creating a new conference
7
- # admin in the system.
8
- class CreateConferenceAdmin < NotifyRoleAssignedToConference
9
- # Public: Initializes the command.
10
- #
11
- # form - A form object with the params.
12
- # conference - The Conference that will hold the
13
- # user role
14
- def initialize(form, current_user, conference)
15
- @form = form
16
- @current_user = current_user
17
- @conference = conference
18
- end
19
-
20
- # Executes the command. Broadcasts these events:
21
- #
22
- # - :ok when everything is valid.
23
- # - :invalid if the form wasn't valid and we couldn't proceed.
24
- #
25
- # Returns nothing.
26
- def call
27
- return broadcast(:invalid) if form.invalid?
28
-
29
- ActiveRecord::Base.transaction do
30
- @user ||= existing_user || new_user
31
- create_role
32
- add_admin_as_follower
33
- end
34
-
35
- broadcast(:ok)
36
- rescue ActiveRecord::RecordInvalid
37
- form.errors.add(:email, :taken)
38
- broadcast(:invalid)
39
- end
40
-
41
- private
42
-
43
- attr_reader :form, :conference, :current_user, :user
44
-
45
- def create_role
46
- Decidim.traceability.perform_action!(
47
- :create,
48
- Decidim::ConferenceUserRole,
49
- current_user,
50
- resource: {
51
- title: user.name
52
- }
53
- ) do
54
- Decidim::ConferenceUserRole.find_or_create_by!(
55
- role: form.role.to_sym,
56
- user: user,
57
- conference: @conference
58
- )
59
- end
60
- send_notification user
61
- end
62
-
63
- def existing_user
64
- return @existing_user if defined?(@existing_user)
65
-
66
- @existing_user = User.find_by(
67
- email: form.email,
68
- organization: conference.organization
69
- )
70
-
71
- InviteUserAgain.call(@existing_user, invitation_instructions) if @existing_user&.invitation_pending?
72
-
73
- @existing_user
74
- end
75
-
76
- def new_user
77
- @new_user ||= InviteUser.call(user_form) do
78
- on(:ok) do |user|
79
- return user
80
- end
81
- end
82
- end
83
-
84
- def user_form
85
- OpenStruct.new(name: form.name,
86
- email: form.email.downcase,
87
- organization: conference.organization,
88
- admin: false,
89
- invited_by: current_user,
90
- invitation_instructions: invitation_instructions)
91
- end
92
-
93
- def invitation_instructions
94
- return "invite_admin" if form.role == "admin"
95
-
96
- "invite_collaborator"
97
- end
98
-
99
- def add_admin_as_follower
100
- return if user.follows?(conference)
101
-
102
- form = Decidim::FollowForm
103
- .from_params(followable_gid: conference.to_signed_global_id.to_s)
104
- .with_context(
105
- current_organization: conference.organization,
106
- current_user: user
107
- )
108
-
109
- Decidim::CreateFollow.new(form, user).call
110
- end
111
- end
112
- end
113
- end
114
- end
@@ -1,58 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Conferences
5
- module Admin
6
- # A command with all the business logic when destroying an conference
7
- # admin in the system.
8
- class DestroyConferenceAdmin < Decidim::Command
9
- # Public: Initializes the command.
10
- #
11
- # role - the ConferenceUserRole to destroy
12
- # current_user - the user performing this action
13
- def initialize(role, current_user)
14
- @role = role
15
- @current_user = current_user
16
- end
17
-
18
- # Executes the command. Broadcasts these events:
19
- #
20
- # - :ok when everything is valid.
21
- # - :invalid if the form wasn't valid and we couldn't proceed.
22
- #
23
- # Returns nothing.
24
- def call
25
- destroy_role!
26
- dispatch_system_event
27
- broadcast(:ok)
28
- end
29
-
30
- private
31
-
32
- attr_reader :role, :current_user
33
-
34
- def dispatch_system_event
35
- ActiveSupport::Notifications.publish("decidim.system.participatory_space.admin.destroyed", role.class.name, role.id)
36
- end
37
-
38
- def destroy_role!
39
- extra_info = {
40
- resource: {
41
- title: role.user.name
42
- }
43
- }
44
-
45
- Decidim.traceability.perform_action!(
46
- "delete",
47
- role,
48
- current_user,
49
- extra_info
50
- ) do
51
- role.destroy!
52
- role
53
- end
54
- end
55
- end
56
- end
57
- end
58
- end