decidim-meetings 0.19.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_meetings_manifest.js +2 -0
  3. data/app/assets/images/decidim/gamification/badges/attended_meetings.svg +1 -106
  4. data/app/assets/images/decidim/meetings/icon.svg +1 -5
  5. data/app/assets/javascripts/decidim/meetings/admin/destroy_meeting_alert.js.es6 +16 -0
  6. data/app/assets/javascripts/decidim/meetings/admin/meetings_form.js.es6 +3 -0
  7. data/app/assets/javascripts/decidim/meetings/meetings_form.js.es6 +9 -0
  8. data/app/cells/decidim/meetings/content_blocks/upcoming_events_cell.rb +2 -1
  9. data/app/cells/decidim/meetings/highlighted_meetings_for_component/show.erb +7 -7
  10. data/app/cells/decidim/meetings/highlighted_meetings_for_component_cell.rb +1 -1
  11. data/app/cells/decidim/meetings/join_meeting_button/show.erb +2 -2
  12. data/app/cells/decidim/meetings/meeting_cell.rb +1 -0
  13. data/app/cells/decidim/meetings/meeting_list_item/show.erb +3 -3
  14. data/app/cells/decidim/meetings/meeting_list_item_cell.rb +1 -1
  15. data/app/cells/decidim/meetings/meeting_m/date.erb +1 -1
  16. data/app/cells/decidim/meetings/meeting_m/footer.erb +1 -1
  17. data/app/cells/decidim/meetings/meeting_m/multiple_dates.erb +1 -1
  18. data/app/cells/decidim/meetings/meeting_m_cell.rb +9 -1
  19. data/app/cells/decidim/meetings/meeting_s/show.erb +6 -6
  20. data/app/cells/decidim/meetings/meetings_map/show.erb +0 -2
  21. data/app/cells/decidim/meetings/meetings_map_cell.rb +3 -1
  22. data/app/commands/decidim/meetings/admin/close_meeting.rb +1 -2
  23. data/app/commands/decidim/meetings/admin/copy_meeting.rb +38 -28
  24. data/app/commands/decidim/meetings/admin/create_meeting.rb +36 -24
  25. data/app/commands/decidim/meetings/admin/destroy_meeting.rb +6 -1
  26. data/app/commands/decidim/meetings/admin/invite_user_to_join_meeting.rb +2 -1
  27. data/app/commands/decidim/meetings/admin/update_meeting.rb +9 -3
  28. data/app/commands/decidim/meetings/create_meeting.rb +78 -0
  29. data/app/commands/decidim/meetings/join_meeting.rb +11 -0
  30. data/app/commands/decidim/meetings/update_meeting.rb +94 -0
  31. data/app/controllers/decidim/meetings/admin/application_controller.rb +1 -1
  32. data/app/controllers/decidim/meetings/admin/meeting_closes_controller.rb +2 -0
  33. data/app/controllers/decidim/meetings/admin/meetings_controller.rb +21 -7
  34. data/app/controllers/decidim/meetings/admin/registration_form_controller.rb +4 -0
  35. data/app/controllers/decidim/meetings/calendars_controller.rb +1 -0
  36. data/app/controllers/decidim/meetings/directory/meetings_controller.rb +1 -1
  37. data/app/controllers/decidim/meetings/meetings_controller.rb +75 -12
  38. data/app/controllers/decidim/meetings/registrations_controller.rb +2 -2
  39. data/app/controllers/decidim/meetings/versions_controller.rb +14 -0
  40. data/app/controllers/decidim/meetings/{meeting_widgets_controller.rb → widgets_controller.rb} +2 -2
  41. data/app/forms/decidim/meetings/admin/close_meeting_form.rb +7 -1
  42. data/app/forms/decidim/meetings/admin/meeting_copy_form.rb +2 -8
  43. data/app/forms/decidim/meetings/admin/meeting_form.rb +24 -23
  44. data/app/forms/decidim/meetings/meeting_form.rb +78 -0
  45. data/app/helpers/decidim/meetings/admin/application_helper.rb +1 -6
  46. data/app/helpers/decidim/meetings/application_helper.rb +26 -0
  47. data/app/helpers/decidim/meetings/map_helper.rb +2 -1
  48. data/app/helpers/decidim/meetings/meetings_helper.rb +13 -1
  49. data/app/models/decidim/meetings/agenda.rb +3 -0
  50. data/app/models/decidim/meetings/agenda_item.rb +3 -0
  51. data/app/models/decidim/meetings/meeting.rb +43 -15
  52. data/app/models/decidim/meetings/minutes.rb +3 -0
  53. data/app/models/decidim/meetings/service.rb +13 -0
  54. data/app/permissions/decidim/meetings/admin/permissions.rb +2 -0
  55. data/app/permissions/decidim/meetings/permissions.rb +20 -0
  56. data/app/presenters/decidim/meetings/admin_log/invite_presenter.rb +5 -1
  57. data/app/presenters/decidim/meetings/admin_log/meeting_presenter.rb +1 -2
  58. data/app/presenters/decidim/meetings/meeting_presenter.rb +21 -6
  59. data/app/presenters/decidim/meetings/official_author_presenter.rb +14 -0
  60. data/app/queries/decidim/meetings/filtered_meetings.rb +37 -0
  61. data/app/queries/decidim/meetings/metrics/meetings_metric_manage.rb +2 -8
  62. data/app/services/decidim/meetings/calendar/meeting_to_event.rb +3 -3
  63. data/app/services/decidim/meetings/diff_renderer.rb +21 -0
  64. data/app/services/decidim/meetings/meeting_search.rb +3 -25
  65. data/app/types/decidim/meetings/agenda_item_type.rb +28 -0
  66. data/app/types/decidim/meetings/agenda_type.rb +25 -0
  67. data/app/types/decidim/meetings/meeting_type.rb +35 -8
  68. data/app/types/decidim/meetings/meetings_type.rb +1 -1
  69. data/app/types/decidim/meetings/minutes_type.rb +26 -0
  70. data/app/types/decidim/meetings/service_type.rb +13 -0
  71. data/app/views/decidim/meetings/_calendar_modal.html.erb +4 -4
  72. data/app/views/decidim/meetings/admin/invites/index.html.erb +2 -2
  73. data/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +1 -6
  74. data/app/views/decidim/meetings/admin/meeting_closes/proposals_picker.html.erb +1 -0
  75. data/app/views/decidim/meetings/admin/meeting_copies/_form.html.erb +2 -9
  76. data/app/views/decidim/meetings/admin/meetings/_form.html.erb +8 -12
  77. data/app/views/decidim/meetings/admin/meetings/edit.html.erb +1 -1
  78. data/app/views/decidim/meetings/admin/meetings/index.html.erb +22 -3
  79. data/app/views/decidim/meetings/admin/registrations/_form.html.erb +4 -0
  80. data/app/views/decidim/meetings/directory/meetings/index.html.erb +5 -3
  81. data/app/views/decidim/meetings/directory/meetings/index.js.erb +11 -4
  82. data/app/views/decidim/meetings/meetings/_count.html.erb +1 -0
  83. data/app/views/decidim/meetings/meetings/_filters.html.erb +13 -7
  84. data/app/views/decidim/meetings/meetings/_form.html.erb +51 -0
  85. data/app/views/decidim/meetings/meetings/_linked_meetings.html.erb +2 -2
  86. data/app/views/decidim/meetings/meetings/_meeting_agenda.html.erb +2 -2
  87. data/app/views/decidim/meetings/meetings/_meeting_minutes.html.erb +8 -8
  88. data/app/views/decidim/meetings/meetings/edit.html.erb +25 -0
  89. data/app/views/decidim/meetings/meetings/index.html.erb +16 -1
  90. data/app/views/decidim/meetings/meetings/index.js.erb +13 -4
  91. data/app/views/decidim/meetings/meetings/new.html.erb +25 -0
  92. data/app/views/decidim/meetings/meetings/show.html.erb +30 -8
  93. data/app/views/decidim/meetings/versions/index.html.erb +8 -0
  94. data/app/views/decidim/meetings/versions/show.html.erb +10 -0
  95. data/app/views/decidim/participatory_processes/participatory_process_groups/_meeting.html.erb +2 -2
  96. data/app/views/decidim/participatory_spaces/_conference_venues.html.erb +1 -1
  97. data/app/views/decidim/participatory_spaces/_upcoming_meeting_for_card.html.erb +1 -3
  98. data/config/locales/am-ET.yml +1 -0
  99. data/config/locales/ar.yml +4 -8
  100. data/config/locales/bg-BG.yml +21 -0
  101. data/config/locales/bg.yml +21 -0
  102. data/config/locales/ca.yml +64 -8
  103. data/config/locales/cs.yml +70 -8
  104. data/config/locales/da-DK.yml +1 -0
  105. data/config/locales/da.yml +1 -0
  106. data/config/locales/de.yml +64 -7
  107. data/config/locales/el-GR.yml +1 -0
  108. data/config/locales/el.yml +449 -0
  109. data/config/locales/en.yml +65 -9
  110. data/config/locales/eo.yml +1 -0
  111. data/config/locales/es-MX.yml +63 -7
  112. data/config/locales/es-PY.yml +63 -7
  113. data/config/locales/es.yml +65 -9
  114. data/config/locales/et-EE.yml +1 -0
  115. data/config/locales/et.yml +1 -0
  116. data/config/locales/eu.yml +0 -8
  117. data/config/locales/fi-plain.yml +63 -7
  118. data/config/locales/fi.yml +89 -33
  119. data/config/locales/fr-CA.yml +504 -0
  120. data/config/locales/fr.yml +63 -7
  121. data/config/locales/ga-IE.yml +1 -0
  122. data/config/locales/gl.yml +0 -8
  123. data/config/locales/hr-HR.yml +1 -0
  124. data/config/locales/hr.yml +1 -0
  125. data/config/locales/hu.yml +14 -7
  126. data/config/locales/id-ID.yml +0 -8
  127. data/config/locales/is-IS.yml +228 -0
  128. data/config/locales/is.yml +228 -0
  129. data/config/locales/it.yml +62 -8
  130. data/config/locales/ja-JP.yml +494 -0
  131. data/config/locales/ja.yml +496 -0
  132. data/config/locales/ko-KR.yml +1 -0
  133. data/config/locales/ko.yml +1 -0
  134. data/config/locales/lt-LT.yml +1 -0
  135. data/config/locales/lt.yml +1 -0
  136. data/config/locales/lv.yml +452 -0
  137. data/config/locales/mt-MT.yml +1 -0
  138. data/config/locales/mt.yml +1 -0
  139. data/config/locales/nl.yml +95 -47
  140. data/config/locales/no.yml +358 -1
  141. data/config/locales/om-ET.yml +1 -0
  142. data/config/locales/pl.yml +210 -147
  143. data/config/locales/pt-BR.yml +1 -9
  144. data/config/locales/pt.yml +232 -177
  145. data/config/locales/ro-RO.yml +500 -0
  146. data/config/locales/ru.yml +0 -8
  147. data/config/locales/sk-SK.yml +463 -0
  148. data/config/locales/sk.yml +458 -0
  149. data/config/locales/sl.yml +29 -0
  150. data/config/locales/so-SO.yml +1 -0
  151. data/config/locales/sr-CS.yml +13 -0
  152. data/config/locales/sv.yml +67 -13
  153. data/config/locales/ti-ER.yml +1 -0
  154. data/config/locales/tr-TR.yml +0 -8
  155. data/config/locales/uk.yml +0 -8
  156. data/config/locales/vi-VN.yml +1 -0
  157. data/config/locales/vi.yml +1 -0
  158. data/config/locales/zh-CN.yml +496 -0
  159. data/config/locales/zh-TW.yml +1 -0
  160. data/db/migrate/20200320105922_index_foreign_keys_in_decidim_meetings_registrations.rb +7 -0
  161. data/db/migrate/20200526110940_add_author_to_meetings.rb +30 -0
  162. data/db/migrate/20200702123209_create_meeting_services_table.rb +13 -0
  163. data/db/migrate/20200702123210_move_meeting_services_to_own_model.rb +31 -0
  164. data/db/migrate/20200827153856_add_commentable_counter_cache_to_meetings.rb +9 -0
  165. data/db/migrate/20201016065302_fix_meetings_registration_terms.rb +29 -0
  166. data/lib/decidim/api/linked_resources_interface.rb +17 -0
  167. data/lib/decidim/api/services_interface.rb +13 -0
  168. data/lib/decidim/meetings.rb +1 -0
  169. data/lib/decidim/meetings/admin_engine.rb +5 -1
  170. data/lib/decidim/meetings/api.rb +8 -0
  171. data/lib/decidim/meetings/component.rb +69 -14
  172. data/lib/decidim/meetings/engine.rb +3 -6
  173. data/lib/decidim/meetings/meeting_serializer.rb +1 -1
  174. data/lib/decidim/meetings/seeds/city.jpeg +0 -0
  175. data/lib/decidim/meetings/test/factories.rb +45 -8
  176. data/lib/decidim/meetings/version.rb +1 -1
  177. data/lib/tasks/decidim_meetings.rake +16 -0
  178. metadata +92 -20
  179. data/app/presenters/decidim/meetings/admin_log/value_types/organizer_presenter.rb +0 -70
  180. data/app/views/decidim/meetings/meeting_widgets/show.html.erb +0 -9
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-meetings version.
5
5
  module Meetings
6
6
  def self.version
7
- "0.19.1"
7
+ "0.23.0"
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :decidim_meetings do
4
+ # For privacy reasons we recommend that you delete this registration form when you no longer need it.
5
+ # By default this is 3 months after the meeting has passed
6
+ desc "Remove registration forms belonging to meetings that have ended more than X months ago"
7
+ task :clean_registration_forms, [:months] => :environment do |_t, args|
8
+ args.with_defaults(months: 3)
9
+
10
+ query = Decidim::Meetings::Meeting.arel_table[:end_time].lteq(Time.current - args[:months].months)
11
+ old_meeting_ids = Decidim::Meetings::Meeting.where(query).pluck(:id)
12
+ old_questionnaires = Decidim::Forms::Questionnaire.where(questionnaire_for_type: "Decidim::Meetings::Meeting", questionnaire_for_id: old_meeting_ids)
13
+
14
+ old_questionnaires.destroy_all
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-meetings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-12-13 00:00:00.000000000 Z
13
+ date: 2020-11-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cells-erb
@@ -46,28 +46,28 @@ dependencies:
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.19.1
49
+ version: 0.23.0
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.19.1
56
+ version: 0.23.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-forms
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.19.1
63
+ version: 0.23.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.19.1
70
+ version: 0.23.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: httparty
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -116,14 +116,20 @@ dependencies:
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '1.1'
119
+ version: '1.2'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.2.1
120
123
  type: :runtime
121
124
  prerelease: false
122
125
  version_requirements: !ruby/object:Gem::Requirement
123
126
  requirements:
124
127
  - - "~>"
125
128
  - !ruby/object:Gem::Version
126
- version: '1.1'
129
+ version: '1.2'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 1.2.1
127
133
  - !ruby/object:Gem::Dependency
128
134
  name: searchlight
129
135
  requirement: !ruby/object:Gem::Requirement
@@ -144,56 +150,56 @@ dependencies:
144
150
  requirements:
145
151
  - - '='
146
152
  - !ruby/object:Gem::Version
147
- version: 0.19.1
153
+ version: 0.23.0
148
154
  type: :development
149
155
  prerelease: false
150
156
  version_requirements: !ruby/object:Gem::Requirement
151
157
  requirements:
152
158
  - - '='
153
159
  - !ruby/object:Gem::Version
154
- version: 0.19.1
160
+ version: 0.23.0
155
161
  - !ruby/object:Gem::Dependency
156
162
  name: decidim-assemblies
157
163
  requirement: !ruby/object:Gem::Requirement
158
164
  requirements:
159
165
  - - '='
160
166
  - !ruby/object:Gem::Version
161
- version: 0.19.1
167
+ version: 0.23.0
162
168
  type: :development
163
169
  prerelease: false
164
170
  version_requirements: !ruby/object:Gem::Requirement
165
171
  requirements:
166
172
  - - '='
167
173
  - !ruby/object:Gem::Version
168
- version: 0.19.1
174
+ version: 0.23.0
169
175
  - !ruby/object:Gem::Dependency
170
176
  name: decidim-dev
171
177
  requirement: !ruby/object:Gem::Requirement
172
178
  requirements:
173
179
  - - '='
174
180
  - !ruby/object:Gem::Version
175
- version: 0.19.1
181
+ version: 0.23.0
176
182
  type: :development
177
183
  prerelease: false
178
184
  version_requirements: !ruby/object:Gem::Requirement
179
185
  requirements:
180
186
  - - '='
181
187
  - !ruby/object:Gem::Version
182
- version: 0.19.1
188
+ version: 0.23.0
183
189
  - !ruby/object:Gem::Dependency
184
190
  name: decidim-participatory_processes
185
191
  requirement: !ruby/object:Gem::Requirement
186
192
  requirements:
187
193
  - - '='
188
194
  - !ruby/object:Gem::Version
189
- version: 0.19.1
195
+ version: 0.23.0
190
196
  type: :development
191
197
  prerelease: false
192
198
  version_requirements: !ruby/object:Gem::Requirement
193
199
  requirements:
194
200
  - - '='
195
201
  - !ruby/object:Gem::Version
196
- version: 0.19.1
202
+ version: 0.23.0
197
203
  description: A meetings component for decidim's participatory spaces.
198
204
  email:
199
205
  - josepjaume@gmail.com
@@ -209,9 +215,11 @@ files:
209
215
  - app/assets/images/decidim/gamification/badges/attended_meetings.svg
210
216
  - app/assets/images/decidim/meetings/icon.svg
211
217
  - app/assets/javascripts/decidim/meetings/admin/agendas.js.es6
218
+ - app/assets/javascripts/decidim/meetings/admin/destroy_meeting_alert.js.es6
212
219
  - app/assets/javascripts/decidim/meetings/admin/meetings_form.js.es6
213
220
  - app/assets/javascripts/decidim/meetings/admin/registrations_form.js.es6
214
221
  - app/assets/javascripts/decidim/meetings/admin/registrations_invite_form.es6
222
+ - app/assets/javascripts/decidim/meetings/meetings_form.js.es6
215
223
  - app/cells/decidim/meetings/content_blocks/upcoming_events/show.erb
216
224
  - app/cells/decidim/meetings/content_blocks/upcoming_events_cell.rb
217
225
  - app/cells/decidim/meetings/highlighted_meetings/show.erb
@@ -250,9 +258,11 @@ files:
250
258
  - app/commands/decidim/meetings/admin/update_minutes.rb
251
259
  - app/commands/decidim/meetings/admin/update_registrations.rb
252
260
  - app/commands/decidim/meetings/admin/validate_registration_code.rb
261
+ - app/commands/decidim/meetings/create_meeting.rb
253
262
  - app/commands/decidim/meetings/decline_invitation.rb
254
263
  - app/commands/decidim/meetings/join_meeting.rb
255
264
  - app/commands/decidim/meetings/leave_meeting.rb
265
+ - app/commands/decidim/meetings/update_meeting.rb
256
266
  - app/controllers/decidim/meetings/admin/agenda_controller.rb
257
267
  - app/controllers/decidim/meetings/admin/application_controller.rb
258
268
  - app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
@@ -267,9 +277,10 @@ files:
267
277
  - app/controllers/decidim/meetings/application_controller.rb
268
278
  - app/controllers/decidim/meetings/calendars_controller.rb
269
279
  - app/controllers/decidim/meetings/directory/meetings_controller.rb
270
- - app/controllers/decidim/meetings/meeting_widgets_controller.rb
271
280
  - app/controllers/decidim/meetings/meetings_controller.rb
272
281
  - app/controllers/decidim/meetings/registrations_controller.rb
282
+ - app/controllers/decidim/meetings/versions_controller.rb
283
+ - app/controllers/decidim/meetings/widgets_controller.rb
273
284
  - app/events/decidim/meetings/close_meeting_event.rb
274
285
  - app/events/decidim/meetings/create_meeting_event.rb
275
286
  - app/events/decidim/meetings/meeting_registration_notification_event.rb
@@ -289,6 +300,7 @@ files:
289
300
  - app/forms/decidim/meetings/admin/minutes_form.rb
290
301
  - app/forms/decidim/meetings/admin/validate_registration_code_form.rb
291
302
  - app/forms/decidim/meetings/join_meeting_form.rb
303
+ - app/forms/decidim/meetings/meeting_form.rb
292
304
  - app/helpers/decidim/meetings/admin/application_helper.rb
293
305
  - app/helpers/decidim/meetings/application_helper.rb
294
306
  - app/helpers/decidim/meetings/map_helper.rb
@@ -304,17 +316,19 @@ files:
304
316
  - app/models/decidim/meetings/meeting.rb
305
317
  - app/models/decidim/meetings/minutes.rb
306
318
  - app/models/decidim/meetings/registration.rb
319
+ - app/models/decidim/meetings/service.rb
307
320
  - app/permissions/decidim/meetings/admin/permissions.rb
308
321
  - app/permissions/decidim/meetings/permissions.rb
309
322
  - app/presenters/decidim/meetings/admin_log/invite_presenter.rb
310
323
  - app/presenters/decidim/meetings/admin_log/meeting_presenter.rb
311
324
  - app/presenters/decidim/meetings/admin_log/minutes_presenter.rb
312
325
  - app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
313
- - app/presenters/decidim/meetings/admin_log/value_types/organizer_presenter.rb
314
326
  - app/presenters/decidim/meetings/invite_presenter.rb
315
327
  - app/presenters/decidim/meetings/log/resource_presenter.rb
316
328
  - app/presenters/decidim/meetings/meeting_presenter.rb
329
+ - app/presenters/decidim/meetings/official_author_presenter.rb
317
330
  - app/queries/decidim/meetings/admin/invites.rb
331
+ - app/queries/decidim/meetings/filtered_meetings.rb
318
332
  - app/queries/decidim/meetings/metrics/meeting_followers_metric_measure.rb
319
333
  - app/queries/decidim/meetings/metrics/meetings_metric_manage.rb
320
334
  - app/serializers/decidim/meetings/data_portability_invite_serializer.rb
@@ -325,9 +339,14 @@ files:
325
339
  - app/services/decidim/meetings/calendar/meeting_to_event.rb
326
340
  - app/services/decidim/meetings/calendar/organization_calendar.rb
327
341
  - app/services/decidim/meetings/calendar_renderer.rb
342
+ - app/services/decidim/meetings/diff_renderer.rb
328
343
  - app/services/decidim/meetings/meeting_search.rb
344
+ - app/types/decidim/meetings/agenda_item_type.rb
345
+ - app/types/decidim/meetings/agenda_type.rb
329
346
  - app/types/decidim/meetings/meeting_type.rb
330
347
  - app/types/decidim/meetings/meetings_type.rb
348
+ - app/types/decidim/meetings/minutes_type.rb
349
+ - app/types/decidim/meetings/service_type.rb
331
350
  - app/views/decidim/meetings/_calendar_modal.html.erb
332
351
  - app/views/decidim/meetings/admin/agenda/_agenda_item.html.erb
333
352
  - app/views/decidim/meetings/admin/agenda/_agenda_item_child.html.erb
@@ -342,6 +361,7 @@ files:
342
361
  - app/views/decidim/meetings/admin/invites/index.html.erb
343
362
  - app/views/decidim/meetings/admin/meeting_closes/_form.html.erb
344
363
  - app/views/decidim/meetings/admin/meeting_closes/edit.html.erb
364
+ - app/views/decidim/meetings/admin/meeting_closes/proposals_picker.html.erb
345
365
  - app/views/decidim/meetings/admin/meeting_copies/_form.html.erb
346
366
  - app/views/decidim/meetings/admin/meeting_copies/new.html.erb
347
367
  - app/views/decidim/meetings/admin/meetings/_form.html.erb
@@ -358,53 +378,95 @@ files:
358
378
  - app/views/decidim/meetings/directory/meetings/_meetings.html.erb
359
379
  - app/views/decidim/meetings/directory/meetings/index.html.erb
360
380
  - app/views/decidim/meetings/directory/meetings/index.js.erb
361
- - app/views/decidim/meetings/meeting_widgets/show.html.erb
381
+ - app/views/decidim/meetings/meetings/_count.html.erb
362
382
  - app/views/decidim/meetings/meetings/_datetime.html.erb
363
383
  - app/views/decidim/meetings/meetings/_filters.html.erb
364
384
  - app/views/decidim/meetings/meetings/_filters_small_view.html.erb
385
+ - app/views/decidim/meetings/meetings/_form.html.erb
365
386
  - app/views/decidim/meetings/meetings/_linked_meetings.html.erb
366
387
  - app/views/decidim/meetings/meetings/_meeting_agenda.html.erb
367
388
  - app/views/decidim/meetings/meetings/_meeting_minutes.html.erb
368
389
  - app/views/decidim/meetings/meetings/_meetings.html.erb
390
+ - app/views/decidim/meetings/meetings/edit.html.erb
369
391
  - app/views/decidim/meetings/meetings/index.html.erb
370
392
  - app/views/decidim/meetings/meetings/index.js.erb
393
+ - app/views/decidim/meetings/meetings/new.html.erb
371
394
  - app/views/decidim/meetings/meetings/show.html.erb
372
395
  - app/views/decidim/meetings/registration_mailer/confirmation.html.erb
396
+ - app/views/decidim/meetings/versions/index.html.erb
397
+ - app/views/decidim/meetings/versions/show.html.erb
373
398
  - app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_meetings.html.erb
374
399
  - app/views/decidim/participatory_processes/participatory_process_groups/_meeting.html.erb
375
400
  - app/views/decidim/participatory_spaces/_conference_venues.html.erb
376
401
  - app/views/decidim/participatory_spaces/_upcoming_meeting_for_card.html.erb
377
402
  - app/views/devise/mailer/join_meeting.html.erb
378
403
  - app/views/devise/mailer/join_meeting.text.erb
404
+ - config/locales/am-ET.yml
379
405
  - config/locales/ar-SA.yml
380
406
  - config/locales/ar.yml
407
+ - config/locales/bg-BG.yml
408
+ - config/locales/bg.yml
381
409
  - config/locales/ca.yml
382
410
  - config/locales/cs-CZ.yml
383
411
  - config/locales/cs.yml
412
+ - config/locales/da-DK.yml
413
+ - config/locales/da.yml
384
414
  - config/locales/de.yml
415
+ - config/locales/el-GR.yml
416
+ - config/locales/el.yml
385
417
  - config/locales/en.yml
386
418
  - config/locales/eo-UY.yml
419
+ - config/locales/eo.yml
387
420
  - config/locales/es-MX.yml
388
421
  - config/locales/es-PY.yml
389
422
  - config/locales/es.yml
423
+ - config/locales/et-EE.yml
424
+ - config/locales/et.yml
390
425
  - config/locales/eu.yml
391
426
  - config/locales/fi-pl.yml
392
427
  - config/locales/fi-plain.yml
393
428
  - config/locales/fi.yml
429
+ - config/locales/fr-CA.yml
394
430
  - config/locales/fr.yml
431
+ - config/locales/ga-IE.yml
395
432
  - config/locales/gl.yml
433
+ - config/locales/hr-HR.yml
434
+ - config/locales/hr.yml
396
435
  - config/locales/hu.yml
397
436
  - config/locales/id-ID.yml
437
+ - config/locales/is-IS.yml
438
+ - config/locales/is.yml
398
439
  - config/locales/it.yml
440
+ - config/locales/ja-JP.yml
441
+ - config/locales/ja.yml
442
+ - config/locales/ko-KR.yml
443
+ - config/locales/ko.yml
444
+ - config/locales/lt-LT.yml
445
+ - config/locales/lt.yml
446
+ - config/locales/lv.yml
447
+ - config/locales/mt-MT.yml
448
+ - config/locales/mt.yml
399
449
  - config/locales/nl.yml
400
450
  - config/locales/no.yml
451
+ - config/locales/om-ET.yml
401
452
  - config/locales/pl.yml
402
453
  - config/locales/pt-BR.yml
403
454
  - config/locales/pt.yml
455
+ - config/locales/ro-RO.yml
404
456
  - config/locales/ru.yml
457
+ - config/locales/sk-SK.yml
458
+ - config/locales/sk.yml
459
+ - config/locales/sl.yml
460
+ - config/locales/so-SO.yml
461
+ - config/locales/sr-CS.yml
405
462
  - config/locales/sv.yml
463
+ - config/locales/ti-ER.yml
406
464
  - config/locales/tr-TR.yml
407
465
  - config/locales/uk.yml
466
+ - config/locales/vi-VN.yml
467
+ - config/locales/vi.yml
468
+ - config/locales/zh-CN.yml
469
+ - config/locales/zh-TW.yml
408
470
  - db/migrate/20161130121354_create_meetings.rb
409
471
  - db/migrate/20170110142105_close_a_meeting.rb
410
472
  - db/migrate/20170123151650_add_latitude_and_longitude_to_meetings.rb
@@ -429,9 +491,18 @@ files:
429
491
  - db/migrate/20180809134748_add_upcoming_events_as_content_block.rb
430
492
  - db/migrate/20181107175558_add_questionnaire_to_existing_meetings.rb
431
493
  - db/migrate/20190404132923_add_user_group_to_meetings_registrations.rb
494
+ - db/migrate/20200320105922_index_foreign_keys_in_decidim_meetings_registrations.rb
495
+ - db/migrate/20200526110940_add_author_to_meetings.rb
496
+ - db/migrate/20200702123209_create_meeting_services_table.rb
497
+ - db/migrate/20200702123210_move_meeting_services_to_own_model.rb
498
+ - db/migrate/20200827153856_add_commentable_counter_cache_to_meetings.rb
499
+ - db/migrate/20201016065302_fix_meetings_registration_terms.rb
500
+ - lib/decidim/api/linked_resources_interface.rb
501
+ - lib/decidim/api/services_interface.rb
432
502
  - lib/decidim/meetings.rb
433
503
  - lib/decidim/meetings/admin.rb
434
504
  - lib/decidim/meetings/admin_engine.rb
505
+ - lib/decidim/meetings/api.rb
435
506
  - lib/decidim/meetings/component.rb
436
507
  - lib/decidim/meetings/directory.rb
437
508
  - lib/decidim/meetings/directory_engine.rb
@@ -443,6 +514,7 @@ files:
443
514
  - lib/decidim/meetings/seeds/city.jpeg
444
515
  - lib/decidim/meetings/test/factories.rb
445
516
  - lib/decidim/meetings/version.rb
517
+ - lib/tasks/decidim_meetings.rake
446
518
  homepage: https://github.com/decidim/decidim
447
519
  licenses:
448
520
  - AGPL-3.0
@@ -455,7 +527,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
455
527
  requirements:
456
528
  - - ">="
457
529
  - !ruby/object:Gem::Version
458
- version: '2.5'
530
+ version: '2.6'
459
531
  required_rubygems_version: !ruby/object:Gem::Requirement
460
532
  requirements:
461
533
  - - ">="
@@ -1,70 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Meetings
5
- module AdminLog
6
- module ValueTypes
7
- # This class presents the given value as a Decidim::Meetings::Organizer. Check
8
- # the `DefaultPresenter` for more info on how value presenters work.
9
- class OrganizerPresenter < Decidim::Log::ValueTypes::DefaultPresenter
10
- include Rails.application.routes.mounted_helpers
11
- include ActionView::Helpers::UrlHelper
12
- # Public: Presents the value as a Decidim::Meetings::Organizer. If the result can
13
- # be found, it shows its title. Otherwise it shows its ID.
14
- #
15
- # Returns an HTML-safe String.
16
- def present
17
- return unless value
18
- return present_organizer if organizer
19
-
20
- I18n.t("not_found", id: value, scope: "decidim.meetings.admin_log.meeting.value_types.organizer_presenter")
21
- end
22
-
23
- private
24
-
25
- def organizer
26
- @organizer ||= Decidim::User.find_by(id: value)
27
- end
28
-
29
- def present_organizer
30
- return content_tag(:span, present_user_name, class: "logs__log__author") if organizer.blank?
31
-
32
- link_to(
33
- present_user_name,
34
- user_path,
35
- class: "logs__log__author",
36
- title: "@" + present_user_nickname,
37
- target: "_blank",
38
- data: {
39
- tooltip: true,
40
- "disable-hover": false
41
- }, rel: "noopener"
42
- )
43
- end
44
-
45
- # Private: Presents the name of the organizer performing the action.
46
- #
47
- # Returns an HTML-safe String.
48
- def present_user_name
49
- organizer.name.html_safe
50
- end
51
-
52
- # Private: Presents the nickname of the organizer performing the action.
53
- #
54
- # Returns an HTML-safe String.
55
- def present_user_nickname
56
- organizer.nickname.html_safe
57
- end
58
-
59
- # Private: Calculates the path for the organizer. Returns the path of the
60
- # user profile. It's a public link.
61
- #
62
- # Returns an HTML-safe String.
63
- def user_path
64
- decidim.profile_path(present_user_nickname)
65
- end
66
- end
67
- end
68
- end
69
- end
70
- end