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.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_cell.rb +9 -4
- data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
- data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
- data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -13
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
- data/app/cells/decidim/conferences/media_link/show.erb +6 -8
- data/app/cells/decidim/conferences/partner/image.erb +3 -0
- data/app/cells/decidim/conferences/partner/show.erb +8 -8
- data/app/cells/decidim/conferences/partner/text.erb +1 -0
- data/app/cells/decidim/conferences/partner_cell.rb +4 -2
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
- data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
- data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
- data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
- data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
- data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
- data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
- data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
- data/app/commands/decidim/conferences/join_conference.rb +5 -5
- data/app/constraints/decidim/conferences/current_component.rb +2 -2
- data/app/constraints/decidim/conferences/current_conference.rb +2 -2
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/application_controller.rb +6 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
- data/app/controllers/decidim/conferences/conferences_controller.rb +10 -3
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
- data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
- data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
- data/app/models/decidim/conference.rb +4 -4
- data/app/models/decidim/conference_user_role.rb +6 -34
- data/app/packs/entrypoints/decidim_conferences.js +5 -0
- data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
- data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
- data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
- data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
- data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
- data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
- data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
- data/app/permissions/decidim/conferences/permissions.rb +2 -2
- data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
- data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
- data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
- data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
- data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
- data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
- data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
- data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
- data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
- data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
- data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
- data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
- data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
- data/app/views/decidim/conferences/media/index.html.erb +33 -19
- data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
- data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
- data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
- data/app/views/layouts/decidim/conference.html.erb +7 -17
- data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
- data/config/assets.rb +1 -1
- data/config/environment.rb +3 -0
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +1 -68
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +35 -55
- data/config/locales/cs.yml +40 -58
- data/config/locales/de.yml +37 -57
- data/config/locales/el.yml +11 -57
- data/config/locales/en.yml +36 -56
- data/config/locales/es-MX.yml +34 -54
- data/config/locales/es-PY.yml +34 -54
- data/config/locales/es.yml +33 -53
- data/config/locales/eu.yml +179 -198
- data/config/locales/fi-plain.yml +33 -53
- data/config/locales/fi.yml +39 -59
- data/config/locales/fr-CA.yml +33 -53
- data/config/locales/fr.yml +34 -54
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +1 -68
- data/config/locales/hu.yml +15 -57
- data/config/locales/id-ID.yml +1 -62
- data/config/locales/it.yml +2 -68
- data/config/locales/ja.yml +34 -55
- data/config/locales/lb.yml +1 -59
- data/config/locales/lt.yml +21 -54
- data/config/locales/lv.yml +1 -65
- data/config/locales/nl.yml +1 -68
- data/config/locales/no.yml +1 -68
- data/config/locales/pl.yml +1 -66
- data/config/locales/pt-BR.yml +1 -68
- data/config/locales/pt.yml +1 -68
- data/config/locales/ro-RO.yml +11 -56
- data/config/locales/sk.yml +1 -65
- data/config/locales/sl.yml +0 -3
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +7 -67
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +12 -66
- data/config/locales/zh-CN.yml +1 -65
- data/config/locales/zh-TW.yml +6 -53
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/api/conference_speaker_type.rb +1 -1
- data/lib/decidim/conferences/admin_engine.rb +14 -138
- data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
- data/lib/decidim/conferences/engine.rb +17 -15
- data/lib/decidim/conferences/menu.rb +182 -0
- data/lib/decidim/conferences/participatory_space.rb +6 -200
- data/lib/decidim/conferences/query_extensions.rb +2 -2
- data/lib/decidim/conferences/seeds.rb +153 -0
- data/lib/decidim/conferences/test/factories.rb +10 -9
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +46 -46
- data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
- data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
- data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
- data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +0 -42
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
- data/app/cells/decidim/conferences/photo/show.erb +0 -26
- data/app/cells/decidim/conferences/photo_cell.rb +0 -41
- data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
- data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -23
- data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
- data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
- data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
- data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
- data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/db/seeds/logo.png +0 -0
data/config/locales/zh-TW.yml
CHANGED
@@ -6,7 +6,6 @@ zh-TW:
|
|
6
6
|
assemblies_ids: 相關大會
|
7
7
|
available_slots: 可用時段
|
8
8
|
banner_image: 橫幅圖片
|
9
|
-
consultations_ids: 相關咨詢
|
10
9
|
copy_categories: 複製類別
|
11
10
|
copy_components: 複製組件
|
12
11
|
copy_features: 複製功能
|
@@ -34,6 +33,7 @@ zh-TW:
|
|
34
33
|
slug: URL名稱
|
35
34
|
start_date: 開始日期
|
36
35
|
title: 標題
|
36
|
+
weight: 排序位置
|
37
37
|
conference_media_link:
|
38
38
|
date: 日期
|
39
39
|
link: 連結
|
@@ -63,7 +63,6 @@ zh-TW:
|
|
63
63
|
personal_url: 個人 URL
|
64
64
|
position: 職位
|
65
65
|
short_bio: 簡介
|
66
|
-
twitter_handle: Twitter 處理
|
67
66
|
user_id: 使用者
|
68
67
|
conference_user_role:
|
69
68
|
email: 電子郵件
|
@@ -74,7 +73,7 @@ zh-TW:
|
|
74
73
|
conference_registration_invite:
|
75
74
|
attributes:
|
76
75
|
email:
|
77
|
-
already_invited:
|
76
|
+
already_invited: 已發出邀請到此電子郵件.
|
78
77
|
activerecord:
|
79
78
|
models:
|
80
79
|
decidim/conference:
|
@@ -87,7 +86,6 @@ zh-TW:
|
|
87
86
|
admin:
|
88
87
|
actions:
|
89
88
|
confirm: 確認
|
90
|
-
new_conference: 新的會議
|
91
89
|
send_diplomas: 發送出席證明書
|
92
90
|
conference_copies:
|
93
91
|
new:
|
@@ -150,7 +148,6 @@ zh-TW:
|
|
150
148
|
form:
|
151
149
|
title: 基本資訊
|
152
150
|
index:
|
153
|
-
not_published: 未發佈
|
154
151
|
published: 已發佈
|
155
152
|
new:
|
156
153
|
create: 建立
|
@@ -191,7 +188,6 @@ zh-TW:
|
|
191
188
|
conference_invites: 邀請
|
192
189
|
conference_speakers: 講者
|
193
190
|
diploma: 出席證明書
|
194
|
-
info: 資訊
|
195
191
|
media_links: 媒體連結
|
196
192
|
moderations: 版主
|
197
193
|
partners: 夥伴
|
@@ -202,7 +198,6 @@ zh-TW:
|
|
202
198
|
conference:
|
203
199
|
fields:
|
204
200
|
created_at: 建立於
|
205
|
-
promoted: 重點顯示
|
206
201
|
published: 已發佈
|
207
202
|
title: 標題
|
208
203
|
conference_speaker:
|
@@ -326,9 +321,6 @@ zh-TW:
|
|
326
321
|
title: 講者
|
327
322
|
conferences:
|
328
323
|
admin:
|
329
|
-
conference_copies:
|
330
|
-
form:
|
331
|
-
slug_help: 'URL 標識符用於生成指向此會議的 URL。僅接受字母、數字和破折號,並且必須以字母開頭。例如:%{url}'
|
332
324
|
conference_invites:
|
333
325
|
create:
|
334
326
|
error: 邀請參與者加入會議時發生問題。
|
@@ -345,7 +337,6 @@ zh-TW:
|
|
345
337
|
all: 全部
|
346
338
|
rejected: 已拒絕
|
347
339
|
sent: 傳送
|
348
|
-
filter_by: 篩選條件
|
349
340
|
invite_attendee: 邀請參與者
|
350
341
|
invites: 邀請
|
351
342
|
search: 搜尋
|
@@ -369,7 +360,6 @@ zh-TW:
|
|
369
360
|
available_slots_help: 如果您有無限的可用名額,請將其設置為0。
|
370
361
|
registrations_count:
|
371
362
|
other: 已有 %{count} 個註冊。
|
372
|
-
slug_help: 'URL 標識符用於生成指向此會議的 URL。僅接受字母、數字和破折號,並且必須以字母開頭。例如:%{url}'
|
373
363
|
diplomas:
|
374
364
|
edit:
|
375
365
|
save: 儲存
|
@@ -403,18 +393,11 @@ zh-TW:
|
|
403
393
|
cancel: 取消
|
404
394
|
confirm: 確認
|
405
395
|
show:
|
406
|
-
free: 免費
|
407
396
|
going: 正在出席
|
408
397
|
no_slots_available: 無法預約
|
409
398
|
registration: 註冊
|
410
399
|
conference_program:
|
411
|
-
program_meeting:
|
412
|
-
content: 內容
|
413
|
-
location: 位置
|
414
|
-
speakers: 講者
|
415
|
-
streaming: 串流直播
|
416
400
|
show:
|
417
|
-
day: 日
|
418
401
|
program: 節目表
|
419
402
|
conference_registration_mailer:
|
420
403
|
confirmation:
|
@@ -429,16 +412,13 @@ zh-TW:
|
|
429
412
|
create:
|
430
413
|
invalid: 加入此會議時發生問題。
|
431
414
|
success: 您已成功加入此會議。
|
432
|
-
unauthorized: 在註冊會議前,您需要先登錄。
|
433
415
|
decline_invitation:
|
434
416
|
invalid: 拒絕邀請出現問題。
|
435
417
|
success: 您已成功拒絕邀請。
|
436
|
-
unauthorized: 在拒絕邀請前,您需要先登錄。
|
437
418
|
destroy:
|
438
419
|
invalid: 離開此會議時發生問題。
|
439
420
|
success: 您已成功離開此會議。
|
440
421
|
conference_speaker:
|
441
|
-
go_to_twitter: 轉到Twitter
|
442
422
|
more_info: 更多資訊
|
443
423
|
personal_website: 個人網址
|
444
424
|
show:
|
@@ -447,18 +427,17 @@ zh-TW:
|
|
447
427
|
conference_speaker_cell:
|
448
428
|
personal_url:
|
449
429
|
personal_website: 個人網址
|
450
|
-
twitter_handle:
|
451
|
-
go_to_twitter: 轉到Twitter
|
452
430
|
conference_speakers:
|
453
431
|
index:
|
454
|
-
speakers:
|
432
|
+
speakers:
|
433
|
+
other: 講者
|
455
434
|
conferences:
|
456
435
|
partners:
|
457
436
|
collaborators: 夥伴
|
458
437
|
main_promotors: 組織者
|
459
438
|
show:
|
460
439
|
login_as: 您已登入為 %{name} <%{email}>
|
461
|
-
make_conference_registration:
|
440
|
+
make_conference_registration: 註冊參加會議
|
462
441
|
register: 註冊
|
463
442
|
content_blocks:
|
464
443
|
highlighted_conferences:
|
@@ -501,37 +480,18 @@ zh-TW:
|
|
501
480
|
pages:
|
502
481
|
home:
|
503
482
|
highlighted_conferences:
|
504
|
-
|
505
|
-
conferences_button_title: 顯示所有會議的會議頁面連結
|
506
|
-
photo:
|
507
|
-
image:
|
508
|
-
attributes:
|
509
|
-
alt: 媒體圖片
|
510
|
-
show:
|
511
|
-
close_modal: 關閉視窗
|
512
|
-
photo: 圖片
|
513
|
-
photos_list:
|
514
|
-
show:
|
515
|
-
related_photos: 圖片
|
483
|
+
active_spaces: 正在進行的會議
|
516
484
|
registration_types:
|
517
485
|
index:
|
518
486
|
choose_an_option: '選擇您的註冊選項:'
|
519
|
-
login_as: 您已登入為 %{name} <%{email}>
|
520
487
|
no_registrations: 沒有註冊
|
521
488
|
register: 登錄
|
522
489
|
title: 註冊類型
|
523
|
-
shared:
|
524
|
-
conference_user_login:
|
525
|
-
already_account: 你已經在 Decidim 中擁有帳戶了嗎?
|
526
|
-
new_user: 新用戶?
|
527
|
-
sign_in: 登入以註冊參加會議
|
528
|
-
sign_up: 在 Decidim 建立一個帳號以註冊會議。
|
529
490
|
show:
|
530
491
|
details: 詳細資料
|
531
492
|
introduction: 簡介
|
532
493
|
objectives: 目標
|
533
494
|
related_assemblies: 相關大會
|
534
|
-
related_consultations: 相關咨詢
|
535
495
|
related_participatory_processes: 相關參與過程
|
536
496
|
events:
|
537
497
|
conferences:
|
@@ -590,9 +550,6 @@ zh-TW:
|
|
590
550
|
decidim:
|
591
551
|
conference_hero:
|
592
552
|
register: 註冊
|
593
|
-
conference_widgets:
|
594
|
-
show:
|
595
|
-
take_part: 參與
|
596
553
|
conferences:
|
597
554
|
conference:
|
598
555
|
more_info: 更多資訊
|
@@ -602,11 +559,7 @@ zh-TW:
|
|
602
559
|
order_by_conferences:
|
603
560
|
conferences:
|
604
561
|
other: "%{count} 個會議"
|
605
|
-
promoted_conference:
|
606
|
-
more_info: 更多資訊
|
607
|
-
take_part: 參與
|
608
562
|
conferences_nav:
|
609
|
-
conference_menu_item: 訊息
|
610
563
|
conference_partners_menu_item: 夥伴
|
611
564
|
conference_speaker_menu_item: 講者
|
612
565
|
media: 媒體
|
@@ -10,7 +10,7 @@ module Decidim
|
|
10
10
|
field :full_name, GraphQL::Types::String, "Full name of the speaker", null: true
|
11
11
|
field :position, Decidim::Core::TranslatedFieldType, "Position of the speaker in the conference", null: true
|
12
12
|
field :affiliation, Decidim::Core::TranslatedFieldType, "Affiliation of the speaker", null: true
|
13
|
-
field :twitter_handle, GraphQL::Types::String, "
|
13
|
+
field :twitter_handle, GraphQL::Types::String, "X handle", null: true
|
14
14
|
field :short_bio, Decidim::Core::TranslatedFieldType, "Short biography of the speaker", null: true
|
15
15
|
field :personal_url, GraphQL::Types::String, "Personal URL of the speaker", null: true
|
16
16
|
field :avatar, GraphQL::Types::String, "Avatar of the speaker", null: true
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require "rails"
|
4
4
|
require "active_support/all"
|
5
5
|
require "decidim/core"
|
6
|
+
require "decidim/conferences/menu"
|
6
7
|
|
7
8
|
module Decidim
|
8
9
|
module Conferences
|
@@ -46,12 +47,12 @@ module Decidim
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
49
|
-
resources :attachment_collections, controller: "conference_attachment_collections"
|
50
|
-
resources :attachments, controller: "conference_attachments"
|
50
|
+
resources :attachment_collections, controller: "conference_attachment_collections", except: [:show]
|
51
|
+
resources :attachments, controller: "conference_attachments", except: [:show]
|
51
52
|
end
|
52
53
|
|
53
54
|
scope "/conferences/:conference_slug" do
|
54
|
-
resources :categories
|
55
|
+
resources :categories, except: [:show]
|
55
56
|
|
56
57
|
resources :components do
|
57
58
|
resource :permissions, controller: "component_permissions"
|
@@ -88,149 +89,24 @@ module Decidim
|
|
88
89
|
end
|
89
90
|
end
|
90
91
|
|
91
|
-
initializer "
|
92
|
-
Decidim.
|
93
|
-
current_participatory_space.components.each do |component|
|
94
|
-
caption = translated_attribute(component.name)
|
95
|
-
if component.primary_stat.present?
|
96
|
-
caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
97
|
-
end
|
98
|
-
|
99
|
-
menu.add_item [component.manifest_name, component.id].join("_"),
|
100
|
-
caption.html_safe,
|
101
|
-
manage_component_path(component),
|
102
|
-
active: is_active_link?(manage_component_path(component)) ||
|
103
|
-
is_active_link?(decidim_admin_conferences.edit_component_path(current_participatory_space, component)) ||
|
104
|
-
is_active_link?(decidim_admin_conferences.edit_component_permissions_path(current_participatory_space, component)) ||
|
105
|
-
participatory_space_active_link?(component),
|
106
|
-
if: component.manifest.admin_engine && user_role_config.component_is_accessible?(component.manifest_name)
|
107
|
-
end
|
108
|
-
end
|
92
|
+
initializer "decidim_conferences_admin.components_menu" do
|
93
|
+
Decidim::Conferences::Menu.register_admin_conferences_components_menu!
|
109
94
|
end
|
110
|
-
initializer "decidim_conferences.conferences_admin_registrations_menu" do
|
111
|
-
Decidim.menu :conferences_admin_registrations_menu do |menu|
|
112
|
-
menu.add_item :conference_registration_types,
|
113
|
-
I18n.t("registration_types", scope: "decidim.admin.menu.conferences_submenu"),
|
114
|
-
decidim_admin_conferences.conference_registration_types_path(current_participatory_space),
|
115
|
-
active: is_active_link?(decidim_admin_conferences.conference_registration_types_path(current_participatory_space)),
|
116
|
-
if: allowed_to?(:read, :registration_type, conference: current_participatory_space)
|
117
|
-
|
118
|
-
menu.add_item :conference_conference_registrations,
|
119
|
-
I18n.t("user_registrations", scope: "decidim.admin.menu.conferences_submenu"),
|
120
|
-
decidim_admin_conferences.conference_conference_registrations_path(current_participatory_space),
|
121
|
-
active: is_active_link?(decidim_admin_conferences.conference_conference_registrations_path(current_participatory_space)),
|
122
|
-
if: allowed_to?(:read, :conference_registration, conference: current_participatory_space)
|
123
95
|
|
124
|
-
|
125
|
-
|
126
|
-
decidim_admin_conferences.conference_conference_invites_path(current_participatory_space),
|
127
|
-
active: is_active_link?(decidim_admin_conferences.conference_conference_invites_path(current_participatory_space)),
|
128
|
-
if: allowed_to?(:read, :conference_invite, conference: current_participatory_space)
|
129
|
-
|
130
|
-
menu.add_item :edit_conference_diploma,
|
131
|
-
I18n.t("diploma", scope: "decidim.admin.menu.conferences_submenu"),
|
132
|
-
decidim_admin_conferences.edit_conference_diploma_path(current_participatory_space),
|
133
|
-
active: is_active_link?(decidim_admin_conferences.edit_conference_diploma_path(current_participatory_space)),
|
134
|
-
if: allowed_to?(:update, :conference, conference: current_participatory_space)
|
135
|
-
end
|
96
|
+
initializer "decidim_conferences_admin.registrations_menu" do
|
97
|
+
Decidim::Conferences::Menu.register_conferences_admin_registrations_menu!
|
136
98
|
end
|
137
|
-
initializer "decidim_conferences.conferences_admin_attachments_menu" do
|
138
|
-
Decidim.menu :conferences_admin_attachments_menu do |menu|
|
139
|
-
menu.add_item :conference_attachment_collections,
|
140
|
-
I18n.t("attachment_collections", scope: "decidim.admin.menu.conferences_submenu"),
|
141
|
-
decidim_admin_conferences.conference_attachment_collections_path(current_participatory_space),
|
142
|
-
active: is_active_link?(decidim_admin_conferences.conference_attachment_collections_path(current_participatory_space)),
|
143
|
-
if: allowed_to?(:read, :attachment_collection, conference: current_participatory_space)
|
144
99
|
|
145
|
-
|
146
|
-
|
147
|
-
decidim_admin_conferences.conference_attachments_path(current_participatory_space),
|
148
|
-
active: is_active_link?(decidim_admin_conferences.conference_attachments_path(current_participatory_space)),
|
149
|
-
if: allowed_to?(:read, :attachment, conference: current_participatory_space)
|
150
|
-
end
|
100
|
+
initializer "decidim_conferences_admin.attachments_menu" do
|
101
|
+
Decidim::Conferences::Menu.register_conferences_admin_attachments_menu!
|
151
102
|
end
|
152
|
-
initializer "decidim_conferences.conferences_admin_menu" do
|
153
|
-
Decidim.menu :conferences_admin_menu do |menu|
|
154
|
-
menu.add_item :edit_conference,
|
155
|
-
I18n.t("info", scope: "decidim.admin.menu.conferences_submenu"),
|
156
|
-
decidim_admin_conferences.edit_conference_path(current_participatory_space),
|
157
|
-
position: 1,
|
158
|
-
if: allowed_to?(:update, :conference, conference: current_participatory_space),
|
159
|
-
active: is_active_link?(decidim_admin_conferences.edit_conference_path(current_participatory_space))
|
160
|
-
|
161
|
-
menu.add_item :components,
|
162
|
-
I18n.t("components", scope: "decidim.admin.menu.conferences_submenu"),
|
163
|
-
decidim_admin_conferences.components_path(current_participatory_space),
|
164
|
-
active: is_active_link?(decidim_admin_conferences.components_path(current_participatory_space)),
|
165
|
-
if: allowed_to?(:read, :component, conference: current_participatory_space),
|
166
|
-
submenu: { target_menu: :admin_conferences_components_menu, options: { container_options: { id: "components-list" } } }
|
167
103
|
|
168
|
-
|
169
|
-
|
170
|
-
decidim_admin_conferences.categories_path(current_participatory_space),
|
171
|
-
active: is_active_link?(decidim_admin_conferences.categories_path(current_participatory_space)),
|
172
|
-
if: allowed_to?(:read, :category, conference: current_participatory_space)
|
173
|
-
|
174
|
-
menu.add_item :attachments,
|
175
|
-
I18n.t("attachments", scope: "decidim.admin.menu.conferences_submenu"),
|
176
|
-
"#",
|
177
|
-
active: is_active_link?(decidim_admin_conferences.conference_attachment_collections_path(current_participatory_space)) ||
|
178
|
-
is_active_link?(decidim_admin_conferences.conference_attachments_path(current_participatory_space)),
|
179
|
-
if: allowed_to?(:read, :attachment_collection, conference: current_participatory_space) ||
|
180
|
-
allowed_to?(:read, :attachment, conference: current_participatory_space),
|
181
|
-
submenu: { target_menu: :conferences_admin_attachments_menu }
|
182
|
-
|
183
|
-
menu.add_item :conference_media_links,
|
184
|
-
I18n.t("media_links", scope: "decidim.admin.menu.conferences_submenu"),
|
185
|
-
decidim_admin_conferences.conference_media_links_path(current_participatory_space),
|
186
|
-
if: allowed_to?(:read, :media_link, conference: current_participatory_space),
|
187
|
-
active: is_active_link?(decidim_admin_conferences.conference_media_links_path(current_participatory_space))
|
188
|
-
|
189
|
-
menu.add_item :conference_partners,
|
190
|
-
I18n.t("partners", scope: "decidim.admin.menu.conferences_submenu"),
|
191
|
-
decidim_admin_conferences.conference_partners_path(current_participatory_space),
|
192
|
-
if: allowed_to?(:read, :partner, conference: current_participatory_space),
|
193
|
-
active: is_active_link?(decidim_admin_conferences.conference_partners_path(current_participatory_space))
|
194
|
-
|
195
|
-
menu.add_item :conference_speakers,
|
196
|
-
I18n.t("conference_speakers", scope: "decidim.admin.menu.conferences_submenu"),
|
197
|
-
decidim_admin_conferences.conference_speakers_path(current_participatory_space),
|
198
|
-
if: allowed_to?(:read, :conference_speaker, conference: current_participatory_space),
|
199
|
-
active: is_active_link?(decidim_admin_conferences.conference_speakers_path(current_participatory_space))
|
200
|
-
|
201
|
-
menu.add_item :registrations,
|
202
|
-
I18n.t("registrations", scope: "decidim.admin.menu.conferences_submenu"),
|
203
|
-
"#",
|
204
|
-
active: false,
|
205
|
-
if: allowed_to?(:read, :conference_invite, conference: current_participatory_space) ||
|
206
|
-
allowed_to?(:read, :registration_type, conference: current_participatory_space) ||
|
207
|
-
allowed_to?(:read, :conference_registration, conference: current_participatory_space),
|
208
|
-
submenu: { target_menu: :conferences_admin_registrations_menu }
|
209
|
-
|
210
|
-
menu.add_item :conference_user_roles,
|
211
|
-
I18n.t("conference_admins", scope: "decidim.admin.menu.conferences_submenu"),
|
212
|
-
decidim_admin_conferences.conference_user_roles_path(current_participatory_space),
|
213
|
-
if: allowed_to?(:read, :conference_user_role, conference: current_participatory_space),
|
214
|
-
active: is_active_link?(decidim_admin_conferences.conference_user_roles_path(current_participatory_space))
|
215
|
-
|
216
|
-
menu.add_item :moderations,
|
217
|
-
I18n.t("moderations", scope: "decidim.admin.menu.conferences_submenu"),
|
218
|
-
decidim_admin_conferences.moderations_path(current_participatory_space),
|
219
|
-
if: allowed_to?(:read, :moderation, conference: current_participatory_space),
|
220
|
-
active: is_active_link?(decidim_admin_conferences.moderations_path(current_participatory_space))
|
221
|
-
end
|
104
|
+
initializer "decidim_conferences_admin.conferences_menu" do
|
105
|
+
Decidim::Conferences::Menu.register_conferences_admin_menu!
|
222
106
|
end
|
223
107
|
|
224
|
-
initializer "
|
225
|
-
Decidim.
|
226
|
-
menu.add_item :conferences,
|
227
|
-
I18n.t("menu.conferences", scope: "decidim.admin"),
|
228
|
-
decidim_admin_conferences.conferences_path,
|
229
|
-
icon_name: "microphone",
|
230
|
-
position: 2.8,
|
231
|
-
active: :inclusive,
|
232
|
-
if: allowed_to?(:enter, :space_area, space_name: :conferences)
|
233
|
-
end
|
108
|
+
initializer "decidim_conferences_admin.menu" do
|
109
|
+
Decidim::Conferences::Menu.register_admin_menu_modules!
|
234
110
|
end
|
235
111
|
end
|
236
112
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Conferences
|
5
|
+
module ContentBlocks
|
6
|
+
class RegistryManager
|
7
|
+
def self.register!
|
8
|
+
Decidim.content_blocks.register(:homepage, :highlighted_conferences) do |content_block|
|
9
|
+
content_block.cell = "decidim/conferences/content_blocks/highlighted_conferences"
|
10
|
+
content_block.public_name_key = "decidim.conferences.content_blocks.highlighted_conferences.name"
|
11
|
+
content_block.settings_form_cell = "decidim/conferences/content_blocks/highlighted_conferences_settings_form"
|
12
|
+
|
13
|
+
content_block.settings do |settings|
|
14
|
+
settings.attribute :max_results, type: :integer, default: 6
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -6,6 +6,8 @@ require "decidim/core"
|
|
6
6
|
require "wicked_pdf"
|
7
7
|
|
8
8
|
require "decidim/conferences/query_extensions"
|
9
|
+
require "decidim/conferences/content_blocks/registry_manager"
|
10
|
+
require "decidim/conferences/menu"
|
9
11
|
|
10
12
|
module Decidim
|
11
13
|
module Conferences
|
@@ -28,7 +30,6 @@ module Decidim
|
|
28
30
|
get :user, to: "conferences#user_diploma"
|
29
31
|
resources :conference_speakers, only: :index, path: "speakers"
|
30
32
|
resources :conference_program, only: :show, path: "program"
|
31
|
-
resource :conference_widget, only: :show, path: "embed"
|
32
33
|
resources :registration_types, only: :index, path: "registration" do
|
33
34
|
resource :conference_registration, only: [:create, :destroy] do
|
34
35
|
collection do
|
@@ -50,33 +51,34 @@ module Decidim
|
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
54
|
+
initializer "decidim_conferences.register_icons" do
|
55
|
+
Decidim.icons.register(name: "Decidim::Conference", icon: "mic-line", description: "Conference", category: "activity", engine: :conferences)
|
56
|
+
Decidim.icons.register(name: "conference_speaker", icon: "user-voice-line", description: "Speaker", category: "conferences", engine: :conferences)
|
57
|
+
|
58
|
+
Decidim.icons.register(name: "film-line", icon: "film-line", category: "system", description: "", engine: :conferences)
|
59
|
+
Decidim.icons.register(name: "ticket-line", icon: "ticket-line", category: "system", description: "", engine: :conferences)
|
60
|
+
Decidim.icons.register(name: "user-follow-line", icon: "user-follow-line", category: "system", description: "", engine: :conferences)
|
61
|
+
Decidim.icons.register(name: "link-m", icon: "link-m", category: "system", description: "", engine: :conferences)
|
62
|
+
end
|
63
|
+
|
53
64
|
initializer "decidim_conferences.add_cells_view_paths" do
|
54
65
|
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Conferences::Engine.root}/app/cells")
|
55
66
|
Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Conferences::Engine.root}/app/views") # for partials
|
56
67
|
end
|
57
68
|
|
58
|
-
initializer "
|
69
|
+
initializer "decidim_conferences.stats" do
|
59
70
|
Decidim.stats.register :conferences_count, priority: StatsRegistry::HIGH_PRIORITY do |organization, _start_at, _end_at|
|
60
|
-
Decidim::Conference.where(organization:
|
71
|
+
Decidim::Conference.where(organization:).public_spaces.count
|
61
72
|
end
|
62
73
|
end
|
63
74
|
|
64
75
|
initializer "decidim_conferences.menu" do
|
65
|
-
Decidim.
|
66
|
-
|
67
|
-
I18n.t("menu.conferences", scope: "decidim"),
|
68
|
-
decidim_conferences.conferences_path,
|
69
|
-
position: 2.8,
|
70
|
-
if: Decidim::Conference.where(organization: current_organization).published.any?,
|
71
|
-
active: :inclusive
|
72
|
-
end
|
76
|
+
Decidim::Conferences::Menu.register_menu!
|
77
|
+
Decidim::Conferences::Menu.register_home_content_block_menu!
|
73
78
|
end
|
74
79
|
|
75
80
|
initializer "decidim_conferences.content_blocks" do
|
76
|
-
Decidim.
|
77
|
-
content_block.cell = "decidim/conferences/content_blocks/highlighted_conferences"
|
78
|
-
content_block.public_name_key = "decidim.conferences.content_blocks.highlighted_conferences.name"
|
79
|
-
end
|
81
|
+
Decidim::Conferences::ContentBlocks::RegistryManager.register!
|
80
82
|
end
|
81
83
|
|
82
84
|
initializer "decidim_conferences.query_extensions" do
|