decidim-meetings 0.27.4 → 0.27.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/meetings/cancel_registration_meeting_button/show.erb +13 -0
  3. data/app/cells/decidim/meetings/cancel_registration_meeting_button_cell.rb +36 -0
  4. data/app/cells/decidim/meetings/content_blocks/upcoming_meetings/show.erb +1 -1
  5. data/app/cells/decidim/meetings/content_blocks/upcoming_meetings_cell.rb +10 -2
  6. data/app/cells/decidim/meetings/join_meeting_button/show.erb +1 -15
  7. data/app/services/decidim/meetings/calendar/meeting_to_event.rb +6 -1
  8. data/app/views/decidim/meetings/meetings/index.html.erb +1 -1
  9. data/app/views/decidim/meetings/meetings/show.html.erb +1 -0
  10. data/app/views/decidim/participatory_spaces/_conference_venues.html.erb +3 -0
  11. data/config/environment.rb +3 -0
  12. data/config/locales/ar.yml +0 -5
  13. data/config/locales/ca.yml +7 -5
  14. data/config/locales/cs.yml +5 -3
  15. data/config/locales/de.yml +13 -8
  16. data/config/locales/el.yml +1 -6
  17. data/config/locales/en.yml +3 -1
  18. data/config/locales/es-MX.yml +12 -7
  19. data/config/locales/es-PY.yml +9 -4
  20. data/config/locales/es.yml +11 -9
  21. data/config/locales/eu.yml +105 -100
  22. data/config/locales/fi-plain.yml +9 -6
  23. data/config/locales/fi.yml +25 -22
  24. data/config/locales/fr-CA.yml +9 -6
  25. data/config/locales/fr.yml +6 -6
  26. data/config/locales/ga-IE.yml +0 -2
  27. data/config/locales/gl.yml +1 -7
  28. data/config/locales/hu.yml +1 -4
  29. data/config/locales/id-ID.yml +1 -7
  30. data/config/locales/is-IS.yml +4 -3
  31. data/config/locales/it.yml +5 -8
  32. data/config/locales/ja.yml +3 -5
  33. data/config/locales/lb.yml +6 -10
  34. data/config/locales/lt.yml +25 -8
  35. data/config/locales/lv.yml +1 -7
  36. data/config/locales/nl.yml +0 -5
  37. data/config/locales/no.yml +0 -2
  38. data/config/locales/pl.yml +26 -5
  39. data/config/locales/pt-BR.yml +69 -7
  40. data/config/locales/pt.yml +1 -4
  41. data/config/locales/ro-RO.yml +2 -5
  42. data/config/locales/ru.yml +2 -8
  43. data/config/locales/sk.yml +2 -8
  44. data/config/locales/sl.yml +3 -0
  45. data/config/locales/sq-AL.yml +1 -0
  46. data/config/locales/sv.yml +4 -5
  47. data/config/locales/th-TH.yml +1 -0
  48. data/config/locales/tr-TR.yml +1 -3
  49. data/config/locales/uk.yml +2 -8
  50. data/config/locales/zh-CN.yml +0 -2
  51. data/config/locales/zh-TW.yml +0 -5
  52. data/lib/decidim/meetings/component.rb +1 -1
  53. data/lib/decidim/meetings/engine.rb +3 -2
  54. data/lib/decidim/meetings/meeting_serializer.rb +2 -2
  55. data/lib/decidim/meetings/user_answers_serializer.rb +1 -1
  56. data/lib/decidim/meetings/version.rb +1 -1
  57. metadata +19 -15
@@ -83,7 +83,7 @@ Decidim.register_component(:meetings) do |component|
83
83
  settings.attribute :announcement, type: :text, translated: true, editor: true
84
84
  settings.attribute :default_registration_terms, type: :text, translated: true, editor: true
85
85
  settings.attribute :comments_enabled, type: :boolean, default: true
86
- settings.attribute :comments_max_length, type: :integer, required: false
86
+ settings.attribute :comments_max_length, type: :integer, required: true
87
87
  settings.attribute :registration_code_enabled, type: :boolean, default: true
88
88
  settings.attribute :resources_permissions_enabled, type: :boolean, default: true
89
89
  settings.attribute :enable_pads_creation, type: :boolean, default: false
@@ -71,8 +71,9 @@ module Decidim
71
71
 
72
72
  Decidim.view_hooks.register(:conference_venues, priority: Decidim::ViewHooks::HIGH_PRIORITY) do |view_context|
73
73
  published_components = Decidim::Component.where(participatory_space: view_context.current_participatory_space).published
74
- meetings = Decidim::Meetings::Meeting.where(component: published_components).group_by(&:address)
75
- meetings_geocoded = Decidim::Meetings::Meeting.where(component: published_components).geocoded
74
+ meetings = Decidim::Meetings::Meeting.visible.not_hidden.published.where(component: published_components).group_by(&:address)
75
+ meetings_geocoded = Decidim::Meetings::Meeting.visible.not_hidden.published.where(component: published_components).geocoded
76
+
76
77
  next unless meetings.any?
77
78
 
78
79
  view_context.render(
@@ -32,8 +32,8 @@ module Decidim
32
32
  component: { id: component.id },
33
33
  title: meeting.title,
34
34
  description: meeting.description,
35
- start_time: meeting.start_time.to_s(:db),
36
- end_time: meeting.end_time.to_s(:db),
35
+ start_time: meeting.start_time,
36
+ end_time: meeting.end_time,
37
37
  attendees: meeting.attendees_count.to_i,
38
38
  contributions: meeting.contributions_count.to_i,
39
39
  organizations: meeting.attending_organizations,
@@ -17,7 +17,7 @@ module Decidim
17
17
  @answers.each_with_index.inject({}) do |serialized, (answer, idx)|
18
18
  serialized.update(
19
19
  answer_translated_attribute_name(:id) => [answer.id, answer.user.id].join("_"),
20
- answer_translated_attribute_name(:created_at) => answer.created_at.to_s(:db),
20
+ answer_translated_attribute_name(:created_at) => answer.created_at,
21
21
  answer_translated_attribute_name(:user_status) => answer_translated_attribute_name(answer.decidim_user_id.present? ? "registered" : "unregistered"),
22
22
  "#{idx + 1}. #{translated_attribute(answer.question.body)}" => normalize_body(answer)
23
23
  )
@@ -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.27.4"
7
+ "0.27.5"
8
8
  end
9
9
  end
10
10
  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.27.4
4
+ version: 0.27.5
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: 2023-07-27 00:00:00.000000000 Z
13
+ date: 2023-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.27.4
21
+ version: 0.27.5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.27.4
28
+ version: 0.27.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-forms
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.27.4
35
+ version: 0.27.5
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.27.4
42
+ version: 0.27.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: icalendar
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -60,56 +60,56 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.27.4
63
+ version: 0.27.5
64
64
  type: :development
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.27.4
70
+ version: 0.27.5
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-assemblies
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.27.4
77
+ version: 0.27.5
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.27.4
84
+ version: 0.27.5
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-dev
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.27.4
91
+ version: 0.27.5
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.27.4
98
+ version: 0.27.5
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-participatory_processes
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.27.4
105
+ version: 0.27.5
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.27.4
112
+ version: 0.27.5
113
113
  description: A meetings component for decidim's participatory spaces.
114
114
  email:
115
115
  - josepjaume@gmail.com
@@ -121,6 +121,8 @@ extra_rdoc_files: []
121
121
  files:
122
122
  - README.md
123
123
  - Rakefile
124
+ - app/cells/decidim/meetings/cancel_registration_meeting_button/show.erb
125
+ - app/cells/decidim/meetings/cancel_registration_meeting_button_cell.rb
124
126
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings/elements.erb
125
127
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings/heading.erb
126
128
  - app/cells/decidim/meetings/content_blocks/highlighted_meetings_cell.rb
@@ -446,9 +448,11 @@ files:
446
448
  - config/locales/sk.yml
447
449
  - config/locales/sl.yml
448
450
  - config/locales/so-SO.yml
451
+ - config/locales/sq-AL.yml
449
452
  - config/locales/sr-CS.yml
450
453
  - config/locales/sv.yml
451
454
  - config/locales/sw-KE.yml
455
+ - config/locales/th-TH.yml
452
456
  - config/locales/ti-ER.yml
453
457
  - config/locales/tr-TR.yml
454
458
  - config/locales/uk.yml
@@ -562,7 +566,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
566
  - !ruby/object:Gem::Version
563
567
  version: '0'
564
568
  requirements: []
565
- rubygems_version: 3.2.22
569
+ rubygems_version: 3.4.22
566
570
  signing_key:
567
571
  specification_version: 4
568
572
  summary: Decidim meetings module