decidim-conferences 0.24.3 → 0.25.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/conferences/conference_m_cell.rb +1 -1
  3. data/app/cells/decidim/conferences/conference_speaker/show.erb +2 -2
  4. data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -3
  5. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +1 -1
  6. data/app/cells/decidim/conferences/partner_cell.rb +2 -2
  7. data/app/commands/decidim/conferences/admin/copy_conference.rb +9 -2
  8. data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +4 -2
  9. data/app/commands/decidim/conferences/admin/update_conference.rb +5 -10
  10. data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +5 -9
  11. data/app/commands/decidim/conferences/admin/update_diploma.rb +2 -2
  12. data/app/commands/decidim/conferences/admin/update_partner.rb +5 -5
  13. data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +0 -2
  14. data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +0 -2
  15. data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +3 -3
  16. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +1 -5
  17. data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +2 -4
  18. data/app/forms/decidim/conferences/admin/conference_form.rb +2 -2
  19. data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +1 -1
  20. data/app/forms/decidim/conferences/admin/partner_form.rb +2 -2
  21. data/app/models/decidim/conference.rb +8 -8
  22. data/app/models/decidim/conference_speaker.rb +2 -2
  23. data/app/models/decidim/conferences/partner.rb +2 -2
  24. data/app/packs/entrypoints/decidim_conferences_admin.js +7 -0
  25. data/app/{assets/images/decidim/conferences/conference.svg → packs/images/decidim/conferences/decidim_conferences.svg} +0 -0
  26. data/app/{assets/javascripts/decidim/conferences/admin/conference_invite_form.es6 → packs/src/decidim/conferences/admin/conference_invite_form.js} +3 -3
  27. data/app/{assets/javascripts/decidim/conferences/admin/conference_speakers.js.es6 → packs/src/decidim/conferences/admin/conference_speakers.js} +3 -3
  28. data/app/packs/src/decidim/conferences/admin/conferences.js +27 -0
  29. data/app/{assets/stylesheet → packs/stylesheets}/decidim/conferences/conferences.scss +0 -0
  30. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +8 -22
  31. data/app/queries/decidim/conferences/admin/admin_users.rb +24 -11
  32. data/app/uploaders/decidim/conferences/diploma_uploader.rb +4 -2
  33. data/app/uploaders/decidim/conferences/partner_logo_uploader.rb +5 -5
  34. data/app/uploaders/decidim/cw/conferences/diploma_uploader.rb +14 -0
  35. data/app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb +15 -0
  36. data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +1 -1
  37. data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +1 -1
  38. data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +1 -1
  39. data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +1 -1
  40. data/app/views/decidim/conferences/admin/conferences/_form.html.erb +1 -3
  41. data/app/views/decidim/conferences/admin/invite_join_conference_mailer/invite.html.erb +4 -4
  42. data/app/views/decidim/conferences/admin/partners/index.html.erb +1 -1
  43. data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
  44. data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +5 -5
  45. data/app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb +3 -3
  46. data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb +3 -3
  47. data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +1 -1
  48. data/app/views/decidim/conferences/conferences/show.html.erb +2 -3
  49. data/app/views/devise/mailer/join_conference.html.erb +5 -5
  50. data/app/views/layouts/decidim/_conference_hero.html.erb +1 -1
  51. data/app/views/layouts/decidim/admin/conference.html.erb +4 -106
  52. data/app/views/layouts/decidim/conference.html.erb +2 -2
  53. data/app/views/layouts/decidim/diploma.html.erb +1 -1
  54. data/config/assets.rb +9 -0
  55. data/config/locales/ar.yml +0 -18
  56. data/config/locales/ca.yml +4 -18
  57. data/config/locales/cs.yml +4 -18
  58. data/config/locales/de.yml +4 -18
  59. data/config/locales/el.yml +0 -18
  60. data/config/locales/en.yml +4 -18
  61. data/config/locales/es-MX.yml +4 -18
  62. data/config/locales/es-PY.yml +4 -18
  63. data/config/locales/es.yml +4 -18
  64. data/config/locales/eu.yml +0 -18
  65. data/config/locales/fi-plain.yml +4 -18
  66. data/config/locales/fi.yml +4 -18
  67. data/config/locales/fr-CA.yml +1 -18
  68. data/config/locales/fr-LU.yml +577 -0
  69. data/config/locales/fr.yml +1 -18
  70. data/config/locales/gl.yml +4 -18
  71. data/config/locales/hu.yml +0 -18
  72. data/config/locales/id-ID.yml +0 -18
  73. data/config/locales/it.yml +49 -18
  74. data/config/locales/ja.yml +43 -18
  75. data/config/locales/lb-LU.yml +1 -0
  76. data/config/locales/lv.yml +0 -17
  77. data/config/locales/nl.yml +4 -18
  78. data/config/locales/no.yml +0 -18
  79. data/config/locales/pl.yml +23 -23
  80. data/config/locales/pt-BR.yml +59 -18
  81. data/config/locales/pt.yml +0 -18
  82. data/config/locales/ro-RO.yml +24 -18
  83. data/config/locales/sk.yml +0 -18
  84. data/config/locales/sl.yml +0 -2
  85. data/config/locales/sv.yml +2 -17
  86. data/config/locales/tr-TR.yml +0 -18
  87. data/config/locales/zh-CN.yml +0 -18
  88. data/db/migrate/20210408204953_allow_null_logo_column_in_decidim_conferences_partners_table.rb +7 -0
  89. data/lib/decidim/api/conference_partner_type.rb +4 -0
  90. data/lib/decidim/api/conference_speaker_type.rb +4 -0
  91. data/lib/decidim/api/conference_type.rb +9 -1
  92. data/lib/decidim/conferences/admin_engine.rb +138 -8
  93. data/lib/decidim/conferences/engine.rb +6 -9
  94. data/lib/decidim/conferences/participatory_space.rb +40 -7
  95. data/lib/decidim/conferences/version.rb +1 -1
  96. metadata +27 -25
  97. data/app/assets/config/admin/decidim_conferences_manifest.js +0 -3
  98. data/app/assets/config/decidim_conferences_manifest.js +0 -2
  99. data/app/assets/javascripts/decidim/conferences/admin/conferences.js.es6 +0 -30
  100. data/app/assets/javascripts/decidim/conferences/conferences.js.es6 +0 -0
  101. data/app/views/decidim/conferences/conferences/_statistics.html.erb +0 -10
  102. data/config/locales/ja-JP.yml +0 -575
@@ -1,7 +1,7 @@
1
1
  <% add_decidim_page_title(translated_attribute(current_component.name)) if try(:current_component) %>
2
2
  <% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
3
3
  <% add_decidim_meta_tags(
4
- image_url: current_participatory_space.banner_image.url,
4
+ image_url: current_participatory_space.attached_uploader(:banner_image).path,
5
5
  description: translated_attribute(current_participatory_space.short_description),
6
6
  ) %>
7
7
 
@@ -24,4 +24,4 @@
24
24
  <% end %>
25
25
  <% end %>
26
26
 
27
- <% provide :meta_image_url, current_participatory_space.banner_image.url %>
27
+ <% provide :meta_image_url, current_participatory_space.attached_uploader(:banner_image).path %>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
5
  <meta name="viewport" content="width=device-width">
6
- <%= wicked_pdf_stylesheet_link_tag "decidim/conference-diploma" %>
6
+ <%= wicked_pdf_stylesheet_pack_tag "decidim_conference_diploma" %>
7
7
  </head>
8
8
  <body>
9
9
  <%= yield %>
data/config/assets.rb ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ base_path = File.expand_path("..", __dir__)
4
+
5
+ Decidim::Webpacker.register_path("#{base_path}/app/packs")
6
+ Decidim::Webpacker.register_entrypoints(
7
+ decidim_conferences_admin: "#{base_path}/app/packs/entrypoints/decidim_conferences_admin.js"
8
+ )
9
+ Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/conferences/conferences")
@@ -223,7 +223,6 @@ ar:
223
223
  price: السعر
224
224
  registrations_count: عدد التسجيلات
225
225
  title: عنوان
226
- weight: وزن
227
226
  name: نوع التسجيل
228
227
  partners:
229
228
  create:
@@ -504,23 +503,6 @@ ar:
504
503
  related_assemblies: الجمعيات ذات الصلة
505
504
  related_consultations: المشاورات ذات الصلة
506
505
  related_participatory_processes: العمليات التشاركية ذات الصلة
507
- statistics:
508
- answers_count: الأجوبة
509
- comments_count: تعليقات
510
- conference_count: المؤتمرات
511
- debates_count: المناقشات
512
- endorsements_count: موافقات
513
- headline: نشاط
514
- meetings_count: اجتماعات
515
- orders_count: الدعم
516
- pages_count: صفحات
517
- posts_count: المشاركات
518
- projects_count: مشاريع
519
- proposals_count: اقتراحات
520
- results_count: النتائج
521
- surveys_count: الدراسات الاستقصائية
522
- users_count: المشاركين
523
- votes_count: الدعم
524
506
  events:
525
507
  conferences:
526
508
  conference_registration_confirmed:
@@ -246,7 +246,7 @@ ca:
246
246
  price: Preu
247
247
  registrations_count: Nombre d'inscripcions
248
248
  title: Títol
249
- weight: Pes
249
+ weight: Ordre de posició
250
250
  name: Tipus d'inscripció
251
251
  partners:
252
252
  create:
@@ -501,6 +501,7 @@ ca:
501
501
  home:
502
502
  highlighted_conferences:
503
503
  active_conferences: Jornades actives
504
+ conferences_button_title: Enllaç a la pàgina de Conferències mostrant totes les conferències
504
505
  see_all_conferences: Veure totes les jornades
505
506
  photo:
506
507
  image:
@@ -532,23 +533,6 @@ ca:
532
533
  related_assemblies: Assemblees relacionades
533
534
  related_consultations: Consultes relacionades
534
535
  related_participatory_processes: Processos participatius relacionats
535
- statistics:
536
- answers_count: Respostes
537
- comments_count: Comentaris
538
- conference_count: Jornades
539
- debates_count: Debats
540
- endorsements_count: Adhesions
541
- headline: Activitat
542
- meetings_count: Trobades
543
- orders_count: Donar suport
544
- pages_count: Pàgines
545
- posts_count: Publicacions
546
- projects_count: Projectes
547
- proposals_count: Propostes
548
- results_count: Resultats
549
- surveys_count: Enquestes
550
- users_count: Participants
551
- votes_count: Suports
552
536
  events:
553
537
  conferences:
554
538
  conference_registration_confirmed:
@@ -596,6 +580,8 @@ ca:
596
580
  title: Multimedia i enllaços
597
581
  menu:
598
582
  conferences: Jornades
583
+ statistics:
584
+ conferences_count: Jornades
599
585
  devise:
600
586
  mailer:
601
587
  join_conference:
@@ -252,7 +252,7 @@ cs:
252
252
  price: Cena
253
253
  registrations_count: Počet registrací
254
254
  title: Název
255
- weight: Váha
255
+ weight: Pozice v řazení
256
256
  name: Typ registrace
257
257
  partners:
258
258
  create:
@@ -509,6 +509,7 @@ cs:
509
509
  home:
510
510
  highlighted_conferences:
511
511
  active_conferences: Aktivní konference
512
+ conferences_button_title: Odkaz na stránku Konference zobrazující všechny konference
512
513
  see_all_conferences: Podívejte se na všechny konference
513
514
  photo:
514
515
  image:
@@ -540,23 +541,6 @@ cs:
540
541
  related_assemblies: Související sestavy
541
542
  related_consultations: Související konzultace
542
543
  related_participatory_processes: Související procesy účasti
543
- statistics:
544
- answers_count: Odpovědi
545
- comments_count: Komentáře
546
- conference_count: Konference
547
- debates_count: Debaty
548
- endorsements_count: Schválení
549
- headline: Aktivita
550
- meetings_count: Setkání
551
- orders_count: Hlasy
552
- pages_count: Stránky
553
- posts_count: Příspěvky
554
- projects_count: Projekty
555
- proposals_count: Návrhy
556
- results_count: Výsledek
557
- surveys_count: Průzkumy
558
- users_count: Účastníci
559
- votes_count: Hlasy
560
544
  events:
561
545
  conferences:
562
546
  conference_registration_confirmed:
@@ -604,6 +588,8 @@ cs:
604
588
  title: Média a odkazy
605
589
  menu:
606
590
  conferences: Konference
591
+ statistics:
592
+ conferences_count: Konference
607
593
  devise:
608
594
  mailer:
609
595
  join_conference:
@@ -212,7 +212,7 @@ de:
212
212
  price: Preis
213
213
  registrations_count: Registrierungen zählen
214
214
  title: Titel
215
- weight: Gewicht
215
+ weight: Bestellposition
216
216
  name: Registrierungstyp
217
217
  partners:
218
218
  create:
@@ -467,6 +467,7 @@ de:
467
467
  home:
468
468
  highlighted_conferences:
469
469
  active_conferences: Aktive Konferenzen
470
+ conferences_button_title: Link zur Konferenz-Seite die alle Konferenzen anzeigt
470
471
  see_all_conferences: Alle Konferenzen anzeigen
471
472
  photo:
472
473
  image:
@@ -498,23 +499,6 @@ de:
498
499
  related_assemblies: Ähnliche Gremien
499
500
  related_consultations: Verwandte Konsultationen
500
501
  related_participatory_processes: Ähnliche Beteiligungsprozesse
501
- statistics:
502
- answers_count: Antworten
503
- comments_count: Bemerkungen
504
- conference_count: Konferenzen
505
- debates_count: Debatten
506
- endorsements_count: Empfehlungen
507
- headline: Aktivität
508
- meetings_count: Meetings
509
- orders_count: Stimmen
510
- pages_count: Seiten
511
- posts_count: Beiträge
512
- projects_count: Projekte
513
- proposals_count: Vorschläge
514
- results_count: Ergebnisse
515
- surveys_count: Umfragen
516
- users_count: Teilnehmer
517
- votes_count: Stimmen
518
502
  events:
519
503
  conferences:
520
504
  conference_registration_confirmed:
@@ -562,6 +546,8 @@ de:
562
546
  title: Medien und Links
563
547
  menu:
564
548
  conferences: Konferenzen
549
+ statistics:
550
+ conferences_count: Konferenzen
565
551
  devise:
566
552
  mailer:
567
553
  join_conference:
@@ -212,7 +212,6 @@ el:
212
212
  price: Τιμή
213
213
  registrations_count: Αριθμός εγγραφών
214
214
  title: Τίτλος
215
- weight: Βάρος
216
215
  name: Τύπος εγγραφής
217
216
  partners:
218
217
  create:
@@ -492,23 +491,6 @@ el:
492
491
  related_assemblies: Σχετικές συνελεύσεις
493
492
  related_consultations: Σχετικές διαβουλεύσεις
494
493
  related_participatory_processes: Σχετικές διαδικασίες συμμετοχής
495
- statistics:
496
- answers_count: Απαντήσεις
497
- comments_count: Σχόλια
498
- conference_count: Διασκέψεις
499
- debates_count: Συζητήσεις
500
- endorsements_count: Επιδοκιμασίες
501
- headline: Δραστηριότητα
502
- meetings_count: Συσκέψεις
503
- orders_count: Υποστηρίξεις
504
- pages_count: Σελίδες
505
- posts_count: Δημοσιεύσεις
506
- projects_count: Έργα
507
- proposals_count: Προτάσεις
508
- results_count: Αποτελέσματα
509
- surveys_count: Έρευνες
510
- users_count: Συμμετέχοντες
511
- votes_count: Υποστηρίξεις
512
494
  events:
513
495
  conferences:
514
496
  conference_registration_confirmed:
@@ -247,7 +247,7 @@ en:
247
247
  price: Price
248
248
  registrations_count: Registrations count
249
249
  title: Title
250
- weight: Weight
250
+ weight: Order position
251
251
  name: Registration type
252
252
  partners:
253
253
  create:
@@ -502,6 +502,7 @@ en:
502
502
  home:
503
503
  highlighted_conferences:
504
504
  active_conferences: Active conferences
505
+ conferences_button_title: Link to the Conferences page displaying all the conferences
505
506
  see_all_conferences: See all conferences
506
507
  photo:
507
508
  image:
@@ -533,23 +534,6 @@ en:
533
534
  related_assemblies: Related assemblies
534
535
  related_consultations: Related Consultations
535
536
  related_participatory_processes: Related participatory processes
536
- statistics:
537
- answers_count: Answers
538
- comments_count: Comments
539
- conference_count: Conferences
540
- debates_count: Debates
541
- endorsements_count: Endorsements
542
- headline: Activity
543
- meetings_count: Meetings
544
- orders_count: Supports
545
- pages_count: Pages
546
- posts_count: Posts
547
- projects_count: Projects
548
- proposals_count: Proposals
549
- results_count: Results
550
- surveys_count: Surveys
551
- users_count: Participants
552
- votes_count: Supports
553
537
  events:
554
538
  conferences:
555
539
  conference_registration_confirmed:
@@ -597,6 +581,8 @@ en:
597
581
  title: Media and Links
598
582
  menu:
599
583
  conferences: Conferences
584
+ statistics:
585
+ conferences_count: Conferences
600
586
  devise:
601
587
  mailer:
602
588
  join_conference:
@@ -246,7 +246,7 @@ es-MX:
246
246
  price: Precio
247
247
  registrations_count: Número de inscripciones
248
248
  title: Título
249
- weight: Peso
249
+ weight: Orden de posición
250
250
  name: Tipo de inscripción
251
251
  partners:
252
252
  create:
@@ -501,6 +501,7 @@ es-MX:
501
501
  home:
502
502
  highlighted_conferences:
503
503
  active_conferences: Conferencias activas
504
+ conferences_button_title: Enlace a la página de Jornadas que muestra todas las jornadas
504
505
  see_all_conferences: Ver todas las conferencias
505
506
  photo:
506
507
  image:
@@ -532,23 +533,6 @@ es-MX:
532
533
  related_assemblies: Asambleas relacionadas
533
534
  related_consultations: Consultas relacionadas
534
535
  related_participatory_processes: Procesos participativos relacionados
535
- statistics:
536
- answers_count: Respuestas
537
- comments_count: Comentarios
538
- conference_count: Conferencias
539
- debates_count: Debates
540
- endorsements_count: Adhesiones
541
- headline: Actividad
542
- meetings_count: Encuentros
543
- orders_count: Votos
544
- pages_count: Páginas
545
- posts_count: Publicaciones
546
- projects_count: Proyectos
547
- proposals_count: Propuestas
548
- results_count: Resultados
549
- surveys_count: Encuestas
550
- users_count: Participantes
551
- votes_count: Votos
552
536
  events:
553
537
  conferences:
554
538
  conference_registration_confirmed:
@@ -596,6 +580,8 @@ es-MX:
596
580
  title: Multimedia y enlaces
597
581
  menu:
598
582
  conferences: Conferencias
583
+ statistics:
584
+ conferences_count: Jornadas
599
585
  devise:
600
586
  mailer:
601
587
  join_conference:
@@ -246,7 +246,7 @@ es-PY:
246
246
  price: Precio
247
247
  registrations_count: Número de inscripciones
248
248
  title: Título
249
- weight: Peso
249
+ weight: Orden de posición
250
250
  name: Tipo de inscripción
251
251
  partners:
252
252
  create:
@@ -501,6 +501,7 @@ es-PY:
501
501
  home:
502
502
  highlighted_conferences:
503
503
  active_conferences: Conferencias activas
504
+ conferences_button_title: Enlace a la página de Jornadas que muestra todas las jornadas
504
505
  see_all_conferences: Ver todas las conferencias
505
506
  photo:
506
507
  image:
@@ -532,23 +533,6 @@ es-PY:
532
533
  related_assemblies: Asambleas relacionadas
533
534
  related_consultations: Consultas Relacionadas
534
535
  related_participatory_processes: Procesos participativos relacionados
535
- statistics:
536
- answers_count: Respuestas
537
- comments_count: Comentarios
538
- conference_count: Conferencias
539
- debates_count: Debates
540
- endorsements_count: Endosos
541
- headline: Actividad
542
- meetings_count: Reuniones
543
- orders_count: Votos
544
- pages_count: Páginas
545
- posts_count: Publicaciones
546
- projects_count: Proyectos
547
- proposals_count: Propuestas
548
- results_count: Resultados
549
- surveys_count: Encuestas
550
- users_count: Participantes
551
- votes_count: Votos
552
536
  events:
553
537
  conferences:
554
538
  conference_registration_confirmed:
@@ -596,6 +580,8 @@ es-PY:
596
580
  title: Medios y enlaces
597
581
  menu:
598
582
  conferences: Conferencias
583
+ statistics:
584
+ conferences_count: Jornadas
599
585
  devise:
600
586
  mailer:
601
587
  join_conference:
@@ -246,7 +246,7 @@ es:
246
246
  price: Precio
247
247
  registrations_count: Número de inscripciones
248
248
  title: Título
249
- weight: Peso
249
+ weight: Orden de posición
250
250
  name: Tipo de inscripción
251
251
  partners:
252
252
  create:
@@ -501,6 +501,7 @@ es:
501
501
  home:
502
502
  highlighted_conferences:
503
503
  active_conferences: Jornadas activas
504
+ conferences_button_title: Enlace a la página de Jornadas que muestra todas las jornadas
504
505
  see_all_conferences: Ver todas las jornadas
505
506
  photo:
506
507
  image:
@@ -532,23 +533,6 @@ es:
532
533
  related_assemblies: Asambleas relacionadas
533
534
  related_consultations: Consultas relacionadas
534
535
  related_participatory_processes: Procesos participativos relacionados
535
- statistics:
536
- answers_count: Respuestas
537
- comments_count: Comentarios
538
- conference_count: Jornadas
539
- debates_count: Debates
540
- endorsements_count: Adhesiones
541
- headline: Actividad
542
- meetings_count: Encuentros
543
- orders_count: Apoyos
544
- pages_count: Páginas
545
- posts_count: Publicaciones
546
- projects_count: Proyectos
547
- proposals_count: Propuestas
548
- results_count: Resultados
549
- surveys_count: Encuestas
550
- users_count: Participantes
551
- votes_count: Apoyos
552
536
  events:
553
537
  conferences:
554
538
  conference_registration_confirmed:
@@ -596,6 +580,8 @@ es:
596
580
  title: Multimedia y enlaces
597
581
  menu:
598
582
  conferences: Jornadas
583
+ statistics:
584
+ conferences_count: Jornadas
599
585
  devise:
600
586
  mailer:
601
587
  join_conference: