decidim-conferences 0.28.4 → 0.29.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/conferences/conference_g_cell.rb +2 -2
  3. data/app/cells/decidim/conferences/conference_speaker_cell.rb +1 -1
  4. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +0 -2
  5. data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +0 -1
  6. data/app/cells/decidim/conferences/media_link/show.erb +1 -1
  7. data/app/cells/decidim/conferences/media_link_cell.rb +0 -3
  8. data/app/cells/decidim/conferences/partner/image.erb +1 -1
  9. data/app/cells/decidim/conferences/partner_cell.rb +1 -1
  10. data/app/cells/decidim/conferences/registration_type_cell.rb +1 -5
  11. data/app/commands/decidim/conferences/admin/create_conference.rb +20 -65
  12. data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +17 -81
  13. data/app/commands/decidim/conferences/admin/create_media_link.rb +10 -44
  14. data/app/commands/decidim/conferences/admin/create_partner.rb +9 -62
  15. data/app/commands/decidim/conferences/admin/create_registration_type.rb +15 -51
  16. data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +6 -38
  17. data/app/commands/decidim/conferences/admin/destroy_media_link.rb +6 -38
  18. data/app/commands/decidim/conferences/admin/destroy_partner.rb +6 -38
  19. data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +6 -38
  20. data/app/commands/decidim/conferences/admin/publish_conference_speaker.rb +51 -0
  21. data/app/commands/decidim/conferences/admin/unpublish_conference_speaker.rb +44 -0
  22. data/app/commands/decidim/conferences/admin/update_conference.rb +35 -93
  23. data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +17 -74
  24. data/app/commands/decidim/conferences/admin/update_media_link.rb +8 -44
  25. data/app/commands/decidim/conferences/admin/update_partner.rb +10 -61
  26. data/app/commands/decidim/conferences/admin/update_registration_type.rb +12 -47
  27. data/app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb +41 -0
  28. data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +8 -3
  29. data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +33 -1
  30. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +1 -1
  31. data/app/controllers/decidim/conferences/admin/media_links_controller.rb +1 -1
  32. data/app/controllers/decidim/conferences/admin/partners_controller.rb +1 -1
  33. data/app/controllers/decidim/conferences/admin/registration_types_controller.rb +1 -1
  34. data/app/controllers/decidim/conferences/application_controller.rb +4 -1
  35. data/app/controllers/decidim/conferences/conference_program_controller.rb +1 -2
  36. data/app/controllers/decidim/conferences/conference_speakers_controller.rb +1 -4
  37. data/app/controllers/decidim/conferences/conferences_controller.rb +1 -4
  38. data/app/controllers/decidim/conferences/media_controller.rb +1 -4
  39. data/app/controllers/decidim/conferences/registration_types_controller.rb +0 -3
  40. data/app/events/decidim/conferences/conference_role_assigned_event.rb +0 -5
  41. data/app/forms/decidim/conferences/admin/conference_form.rb +1 -1
  42. data/app/helpers/decidim/conferences/conference_helper.rb +2 -1
  43. data/app/models/decidim/conference.rb +1 -1
  44. data/app/models/decidim/conference_speaker.rb +2 -0
  45. data/app/permissions/decidim/conferences/permissions.rb +2 -2
  46. data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -1
  47. data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +5 -5
  48. data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +1 -33
  49. data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +2 -4
  50. data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +11 -1
  51. data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +1 -1
  52. data/app/views/decidim/conferences/admin/invite_join_conference_mailer/invite.html.erb +1 -1
  53. data/app/views/decidim/conferences/admin/media_links/index.html.erb +1 -1
  54. data/app/views/decidim/conferences/admin/partners/index.html.erb +3 -3
  55. data/app/views/decidim/conferences/admin/registration_types/index.html.erb +1 -1
  56. data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +6 -6
  57. data/app/views/decidim/conferences/conference_program/_program_item.html.erb +1 -1
  58. data/app/views/decidim/conferences/conference_speakers/index.html.erb +1 -0
  59. data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +1 -1
  60. data/app/views/decidim/conferences/conferences/show.html.erb +5 -3
  61. data/app/views/decidim/conferences/media/index.html.erb +1 -0
  62. data/app/views/decidim/conferences/registration_types/index.html.erb +2 -1
  63. data/app/views/devise/mailer/join_conference.html.erb +1 -1
  64. data/app/views/devise/mailer/join_conference.text.erb +1 -1
  65. data/config/initializers/wicked_pdf.rb +5 -5
  66. data/config/locales/ar.yml +0 -4
  67. data/config/locales/bg.yml +6 -6
  68. data/config/locales/ca.yml +7 -9
  69. data/config/locales/cs.yml +5 -8
  70. data/config/locales/de.yml +7 -9
  71. data/config/locales/el.yml +0 -6
  72. data/config/locales/en.yml +6 -8
  73. data/config/locales/es-MX.yml +6 -8
  74. data/config/locales/es-PY.yml +6 -8
  75. data/config/locales/es.yml +6 -8
  76. data/config/locales/eu.yml +6 -8
  77. data/config/locales/fi-plain.yml +6 -8
  78. data/config/locales/fi.yml +6 -8
  79. data/config/locales/fr-CA.yml +6 -8
  80. data/config/locales/fr.yml +6 -8
  81. data/config/locales/ga-IE.yml +0 -6
  82. data/config/locales/gl.yml +0 -4
  83. data/config/locales/hu.yml +0 -6
  84. data/config/locales/id-ID.yml +0 -4
  85. data/config/locales/it.yml +0 -4
  86. data/config/locales/ja.yml +7 -9
  87. data/config/locales/lb.yml +0 -6
  88. data/config/locales/lt.yml +0 -6
  89. data/config/locales/lv.yml +0 -6
  90. data/config/locales/nl.yml +0 -4
  91. data/config/locales/no.yml +0 -6
  92. data/config/locales/pl.yml +6 -6
  93. data/config/locales/pt-BR.yml +0 -51
  94. data/config/locales/pt.yml +0 -6
  95. data/config/locales/ro-RO.yml +0 -6
  96. data/config/locales/sk.yml +0 -6
  97. data/config/locales/sv.yml +21 -27
  98. data/config/locales/tr-TR.yml +0 -4
  99. data/config/locales/zh-CN.yml +0 -4
  100. data/config/locales/zh-TW.yml +0 -6
  101. data/db/migrate/20240613095855_add_published_at_to_conference_speakers.rb +7 -0
  102. data/decidim-conferences.gemspec +1 -1
  103. data/lib/decidim/api/conference_partner_type.rb +1 -1
  104. data/lib/decidim/api/conference_speaker_type.rb +1 -1
  105. data/lib/decidim/api/conference_type.rb +6 -2
  106. data/lib/decidim/conferences/admin_engine.rb +6 -1
  107. data/lib/decidim/conferences/engine.rb +1 -0
  108. data/lib/decidim/conferences/menu.rb +11 -0
  109. data/lib/decidim/conferences/seeds.rb +4 -22
  110. data/lib/decidim/conferences/test/factories.rb +5 -0
  111. data/lib/decidim/conferences/version.rb +1 -1
  112. metadata +18 -20
  113. data/app/cells/decidim/conference_activity_cell.rb +0 -10
  114. data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -19
  115. data/app/helpers/decidim/conferences/partners_helper.rb +0 -17
  116. data/app/uploaders/decidim/cw/conferences/diploma_uploader.rb +0 -14
  117. data/app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb +0 -15
  118. data/app/views/layouts/decidim/conference.html.erb +0 -17
@@ -287,12 +287,8 @@ tr:
287
287
  non_user: Mevcut olmayan kullanıcı
288
288
  select_user: Kullanıcı seç
289
289
  index:
290
- filter:
291
- all: Herşey
292
- sent: Gönderilen
293
290
  invite_attendee: Katılımcı Davet Et
294
291
  invites: Davetler
295
- search: Arama
296
292
  new:
297
293
  invite: Davet et
298
294
  new_invite: Kullanıcı davet et
@@ -278,12 +278,8 @@ zh-CN:
278
278
  non_user: 非现有参与者
279
279
  select_user: 选择参与者
280
280
  index:
281
- filter:
282
- all: 所有的
283
- sent: 已发送
284
281
  invite_attendee: Invite participant
285
282
  invites: 邀请
286
- search: 搜索
287
283
  new:
288
284
  invite: 邀请
289
285
  new_invite: Invite participant
@@ -332,14 +332,8 @@ zh-TW:
332
332
  non_user: 不存在的參與者。
333
333
  select_user: 選擇參與者
334
334
  index:
335
- filter:
336
- accepted: 已接受
337
- all: 全部
338
- rejected: 已拒絕
339
- sent: 傳送
340
335
  invite_attendee: 邀請參與者
341
336
  invites: 邀請
342
- search: 搜尋
343
337
  new:
344
338
  explanation: 參加者將被邀請加入會議。如果他們的電子郵件尚未註冊,他們也會被邀請加入該組織。
345
339
  invite: 邀請
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddPublishedAtToConferenceSpeakers < ActiveRecord::Migration[7.0]
4
+ def change
5
+ add_column :decidim_conference_speakers, :published_at, :datetime, index: true
6
+ end
7
+ end
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  "homepage_uri" => "https://decidim.org",
18
18
  "source_code_uri" => "https://github.com/decidim/decidim"
19
19
  }
20
- s.required_ruby_version = "~> 3.1.0"
20
+ s.required_ruby_version = "~> 3.2.0"
21
21
 
22
22
  s.name = "decidim-conferences"
23
23
  s.summary = "Decidim conferences module"
@@ -16,7 +16,7 @@ module Decidim
16
16
  field :updated_at, Decidim::Core::DateTimeType, "The time this partner was updated", null: true
17
17
 
18
18
  def logo
19
- object.attached_uploader(:logo).url
19
+ object.attached_uploader(:logo).path
20
20
  end
21
21
  end
22
22
  end
@@ -20,7 +20,7 @@ module Decidim
20
20
  field :updated_at, Decidim::Core::DateTimeType, "The time this member was updated", null: true
21
21
 
22
22
  def avatar
23
- object.attached_uploader(:avatar).url
23
+ object.attached_uploader(:avatar).path
24
24
  end
25
25
  end
26
26
  end
@@ -39,11 +39,15 @@ module Decidim
39
39
  field :media_links, [Decidim::Conferences::ConferenceMediaLinkType, { null: true }], "List of media links in this conference", null: true
40
40
 
41
41
  def hero_image
42
- object.attached_uploader(:hero_image).url
42
+ object.attached_uploader(:hero_image).path
43
43
  end
44
44
 
45
45
  def banner_image
46
- object.attached_uploader(:banner_image).url
46
+ object.attached_uploader(:banner_image).path
47
+ end
48
+
49
+ def speakers
50
+ object.speakers.published
47
51
  end
48
52
  end
49
53
  end
@@ -18,7 +18,12 @@ module Decidim
18
18
  resources :conferences, param: :slug, except: [:show, :destroy] do
19
19
  resource :publish, controller: "conference_publications", only: [:create, :destroy]
20
20
  resources :copies, controller: "conference_copies", only: [:new, :create]
21
- resources :speakers, controller: "conference_speakers"
21
+ resources :speakers, controller: "conference_speakers" do
22
+ member do
23
+ put :publish
24
+ put :unpublish
25
+ end
26
+ end
22
27
  resources :partners, controller: "partners", except: [:show]
23
28
  resources :media_links, controller: "media_links"
24
29
  resources :registration_types, controller: "registration_types" do
@@ -74,6 +74,7 @@ module Decidim
74
74
 
75
75
  initializer "decidim_conferences.menu" do
76
76
  Decidim::Conferences::Menu.register_menu!
77
+ Decidim::Conferences::Menu.register_mobile_menu!
77
78
  Decidim::Conferences::Menu.register_home_content_block_menu!
78
79
  end
79
80
 
@@ -14,6 +14,17 @@ module Decidim
14
14
  end
15
15
  end
16
16
 
17
+ def self.register_mobile_menu!
18
+ Decidim.menu :mobile_menu do |menu|
19
+ menu.add_item :conferences,
20
+ I18n.t("menu.conferences", scope: "decidim"),
21
+ decidim_conferences.conferences_path,
22
+ position: 2.8,
23
+ if: Decidim::Conference.where(organization: current_organization).published.any?,
24
+ active: :inclusive
25
+ end
26
+ end
27
+
17
28
  def self.register_home_content_block_menu!
18
29
  Decidim.menu :home_content_block_menu do |menu|
19
30
  menu.add_item :conferences,
@@ -17,7 +17,7 @@ module Decidim
17
17
  )
18
18
 
19
19
  2.times do |_n|
20
- params = {
20
+ conference = Decidim::Conference.create!(
21
21
  title: Decidim::Faker::Localized.sentence(word_count: 5),
22
22
  slogan: Decidim::Faker::Localized.sentence(word_count: 2),
23
23
  slug: Decidim::Faker::Internet.unique.slug(words: nil, glue: "-"),
@@ -43,32 +43,13 @@ module Decidim
43
43
  registration_terms: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
44
44
  Decidim::Faker::Localized.paragraph(sentence_count: 3)
45
45
  end
46
- }
47
-
48
- conference = Decidim.traceability.perform_action!(
49
- "publish",
50
- Decidim::Conference,
51
- organization.users.first,
52
- visibility: "all"
53
- ) do
54
- Decidim::Conference.create!(params)
55
- end
46
+ )
56
47
  conference.add_to_index_as_search_resource
57
48
 
58
49
  # Create users with specific roles
59
50
  Decidim::ConferenceUserRole::ROLES.each do |role|
60
51
  email = "conference_#{conference.id}_#{role}@example.org"
61
-
62
- user = Decidim::User.find_or_initialize_by(email:)
63
- user.update!(
64
- name: ::Faker::Name.name,
65
- nickname: ::Faker::Twitter.unique.screen_name,
66
- password: "decidim123456789",
67
- organization:,
68
- confirmed_at: Time.current,
69
- locale: I18n.default_locale,
70
- tos_agreement: true
71
- )
52
+ user = find_or_initialize_user_by(email:)
72
53
 
73
54
  Decidim::ConferenceUserRole.find_or_create_by!(
74
55
  user:,
@@ -103,6 +84,7 @@ module Decidim
103
84
  end,
104
85
  twitter_handle: ::Faker::Twitter.unique.screen_name,
105
86
  personal_url: ::Faker::Internet.url,
87
+ published_at: Time.current,
106
88
  conference:
107
89
  )
108
90
  end
@@ -29,6 +29,7 @@ FactoryBot.define do
29
29
  start_date { 1.month.ago }
30
30
  end_date { 1.month.ago + 3.days }
31
31
  registration_terms { generate_localized_title(:conference_registration_terms, skip_injection:) }
32
+ registrations_enabled { true }
32
33
 
33
34
  trait :promoted do
34
35
  promoted { true }
@@ -164,6 +165,10 @@ FactoryBot.define do
164
165
  skip_injection: evaluator.skip_injection)
165
166
  end
166
167
  end
168
+
169
+ trait :published do
170
+ published_at { Time.current }
171
+ end
167
172
  end
168
173
 
169
174
  factory :conference_speaker_conference_meeting, class: "Decidim::ConferenceSpeakerConferenceMeeting" do
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-conferences version.
5
5
  module Conferences
6
6
  def self.version
7
- "0.28.4"
7
+ "0.29.0.rc1"
8
8
  end
9
9
  end
10
10
  end
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.28.4
4
+ version: 0.29.0.rc1
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: 2024-10-02 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.28.4
19
+ version: 0.29.0.rc1
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.28.4
26
+ version: 0.29.0.rc1
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.28.4
33
+ version: 0.29.0.rc1
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.28.4
40
+ version: 0.29.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wicked_pdf
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.28.4
75
+ version: 0.29.0.rc1
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.28.4
82
+ version: 0.29.0.rc1
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.28.4
89
+ version: 0.29.0.rc1
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.28.4
96
+ version: 0.29.0.rc1
97
97
  description: Conferences component for decidim.
98
98
  email:
99
99
  - isaac.mg@coditramuntana.com
@@ -103,7 +103,6 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - README.md
105
105
  - Rakefile
106
- - app/cells/decidim/conference_activity_cell.rb
107
106
  - app/cells/decidim/conferences/conference_cell.rb
108
107
  - app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb
109
108
  - app/cells/decidim/conferences/conference_g_cell.rb
@@ -140,8 +139,10 @@ files:
140
139
  - app/commands/decidim/conferences/admin/export_conference_registrations.rb
141
140
  - app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb
142
141
  - app/commands/decidim/conferences/admin/publish_conference.rb
142
+ - app/commands/decidim/conferences/admin/publish_conference_speaker.rb
143
143
  - app/commands/decidim/conferences/admin/publish_registration_type.rb
144
144
  - app/commands/decidim/conferences/admin/send_conference_diplomas.rb
145
+ - app/commands/decidim/conferences/admin/unpublish_conference_speaker.rb
145
146
  - app/commands/decidim/conferences/admin/unpublish_registration_type.rb
146
147
  - app/commands/decidim/conferences/admin/update_conference.rb
147
148
  - app/commands/decidim/conferences/admin/update_conference_speaker.rb
@@ -155,6 +156,7 @@ files:
155
156
  - app/constraints/decidim/conferences/current_component.rb
156
157
  - app/constraints/decidim/conferences/current_conference.rb
157
158
  - app/controllers/concerns/decidim/conferences/admin/conference_context.rb
159
+ - app/controllers/concerns/decidim/conferences/admin/conferences_invites/filterable.rb
158
160
  - app/controllers/concerns/decidim/conferences/admin/filterable.rb
159
161
  - app/controllers/decidim/conferences/admin/application_controller.rb
160
162
  - app/controllers/decidim/conferences/admin/categories_controller.rb
@@ -205,8 +207,6 @@ files:
205
207
  - app/helpers/decidim/conferences/admin/conferences_helper.rb
206
208
  - app/helpers/decidim/conferences/conference_helper.rb
207
209
  - app/helpers/decidim/conferences/conference_program_helper.rb
208
- - app/helpers/decidim/conferences/media_attachments_helper.rb
209
- - app/helpers/decidim/conferences/partners_helper.rb
210
210
  - app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb
211
211
  - app/jobs/decidim/conferences/upcoming_conference_notification_job.rb
212
212
  - app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb
@@ -268,8 +268,6 @@ files:
268
268
  - app/serializers/decidim/conferences/download_your_data_conference_registration_serializer.rb
269
269
  - app/uploaders/decidim/conferences/diploma_uploader.rb
270
270
  - app/uploaders/decidim/conferences/partner_logo_uploader.rb
271
- - app/uploaders/decidim/cw/conferences/diploma_uploader.rb
272
- - app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb
273
271
  - app/views/decidim/conference_speakers/_conference_speaker.html.erb
274
272
  - app/views/decidim/conferences/_conference.html.erb
275
273
  - app/views/decidim/conferences/admin/conference_copies/_form.html.erb
@@ -323,7 +321,6 @@ files:
323
321
  - app/views/devise/mailer/join_conference.text.erb
324
322
  - app/views/layouts/decidim/admin/conference.html.erb
325
323
  - app/views/layouts/decidim/admin/conferences.html.erb
326
- - app/views/layouts/decidim/conference.html.erb
327
324
  - app/views/layouts/decidim/conferences/_conference_nav_item.html.erb
328
325
  - app/views/layouts/decidim/conferences/application.html.erb
329
326
  - app/views/layouts/decidim/diploma.html.erb
@@ -428,6 +425,7 @@ files:
428
425
  - db/migrate/20210310134942_add_followable_counter_cache_to_conferences.rb
429
426
  - db/migrate/20210408204953_allow_null_logo_column_in_decidim_conferences_partners_table.rb
430
427
  - db/migrate/20221116084952_add_weight_to_conferences.rb
428
+ - db/migrate/20240613095855_add_published_at_to_conference_speakers.rb
431
429
  - decidim-conferences.gemspec
432
430
  - lib/decidim/api/conference_media_link_type.rb
433
431
  - lib/decidim/api/conference_partner_type.rb
@@ -462,14 +460,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
462
460
  requirements:
463
461
  - - "~>"
464
462
  - !ruby/object:Gem::Version
465
- version: 3.1.0
463
+ version: 3.2.0
466
464
  required_rubygems_version: !ruby/object:Gem::Requirement
467
465
  requirements:
468
- - - ">="
466
+ - - ">"
469
467
  - !ruby/object:Gem::Version
470
- version: '0'
468
+ version: 1.3.1
471
469
  requirements: []
472
- rubygems_version: 3.3.7
470
+ rubygems_version: 3.4.10
473
471
  signing_key:
474
472
  specification_version: 4
475
473
  summary: Decidim conferences module
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- # A cell to display when a conference has been created.
5
- class ConferenceActivityCell < ActivityCell
6
- def title
7
- I18n.t("decidim.conferences.last_activity.new_conference")
8
- end
9
- end
10
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- # A Helper to render and link to resources.
5
- module Conferences
6
- module MediaAttachmentsHelper
7
- # Renders the attachment's title.
8
- # Checks if the attachment's title is translated or not and use
9
- # the correct render method.
10
- #
11
- # attachment - An Attachment object
12
- #
13
- # Returns String.
14
- def attachment_title(attachment)
15
- attachment.title.is_a?(Hash) ? translated_attribute(attachment.title) : attachment.title
16
- end
17
- end
18
- end
19
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- # A Helper to render and link to partners for conferences.
5
- module Conferences
6
- module PartnersHelper
7
- # conference - The model to render the partners
8
- #
9
- # Returns nothing.
10
-
11
- # deprecated
12
- def partners_for(conference)
13
- render partial: "partners", locals: { conference: }
14
- end
15
- end
16
- end
17
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim::Cw
4
- module Conferences
5
- # This class deals with uploading the conference partner logo.
6
- class DiplomaUploader < Decidim::Cw::ImageUploader
7
- set_variants do
8
- {
9
- thumb: { resize_to_fit: [275, 90] }
10
- }
11
- end
12
- end
13
- end
14
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim::Cw
4
- module Conferences
5
- # This class deals with uploading the conference partner logo.
6
- class PartnerLogoUploader < Decidim::Cw::ImageUploader
7
- set_variants do
8
- {
9
- thumb: { resize_to_fit: [200, 55] },
10
- medium: { resize_to_fit: [600, 160] }
11
- }
12
- end
13
- end
14
- end
15
- end
@@ -1,17 +0,0 @@
1
- <% add_decidim_page_title(translated_attribute(current_component.name)) if try(:current_component) %>
2
- <% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
3
- <% add_decidim_meta_tags(
4
- image_url: current_participatory_space.attached_uploader(:banner_image).path,
5
- description: translated_attribute(current_participatory_space.short_description)
6
- ) %>
7
-
8
- <%= append_javascript_pack_tag "decidim_conferences" %>
9
- <%= append_stylesheet_pack_tag "decidim_conferences" %>
10
-
11
- <%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
12
-
13
- <%= render "layouts/decidim/application" do %>
14
- <%= yield %>
15
- <% end %>
16
-
17
- <% provide :meta_image_url, current_participatory_space.attached_uploader(:banner_image).path %>