decidim-core 0.32.2 → 0.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/address_cell.rb +7 -3
  3. data/app/cells/decidim/card_metadata_cell.rb +3 -1
  4. data/app/cells/decidim/date_range/show.erb +6 -6
  5. data/app/cells/decidim/date_range_cell.rb +7 -2
  6. data/app/commands/decidim/create_follow.rb +2 -3
  7. data/app/commands/decidim/create_omniauth_registration.rb +2 -5
  8. data/app/commands/decidim/create_user_report.rb +1 -1
  9. data/app/commands/decidim/destroy_account.rb +6 -6
  10. data/app/commands/decidim/destroy_ephemeral_user.rb +2 -0
  11. data/app/commands/decidim/invite_user.rb +1 -1
  12. data/app/commands/decidim/multiple_attachments_methods.rb +17 -3
  13. data/app/commands/decidim/update_resources_taxonomies.rb +2 -1
  14. data/app/controllers/concerns/decidim/direct_upload.rb +12 -6
  15. data/app/controllers/concerns/decidim/impersonate_users.rb +2 -2
  16. data/app/controllers/concerns/decidim/needs_organization.rb +15 -0
  17. data/app/controllers/decidim/amendments_controller.rb +34 -6
  18. data/app/controllers/decidim/application_controller.rb +2 -0
  19. data/app/controllers/decidim/authorization_modals_controller.rb +1 -1
  20. data/app/controllers/decidim/doorkeeper/authorizations_controller.rb +10 -4
  21. data/app/controllers/decidim/doorkeeper/credentials_controller.rb +6 -1
  22. data/app/controllers/decidim/messaging/conversations_controller.rb +1 -1
  23. data/app/controllers/decidim/profiles_controller.rb +1 -1
  24. data/app/helpers/decidim/cells_paginate_helper.rb +0 -5
  25. data/app/helpers/decidim/layout_helper.rb +1 -0
  26. data/app/helpers/decidim/orders_helper.rb +8 -6
  27. data/app/helpers/decidim/paginate_helper.rb +15 -3
  28. data/app/helpers/decidim/url_helper.rb +35 -0
  29. data/app/jobs/decidim/open_data_job.rb +21 -5
  30. data/app/models/decidim/action_log.rb +7 -1
  31. data/app/models/decidim/component.rb +10 -0
  32. data/app/models/decidim/like.rb +1 -1
  33. data/app/packs/src/decidim/datepicker/datepicker_functions.js +20 -7
  34. data/app/packs/src/decidim/datepicker/form_datepicker.js +18 -2
  35. data/app/packs/src/decidim/datepicker/generate_datepicker.js +12 -4
  36. data/app/packs/src/decidim/datepicker/generate_timepicker.js +5 -3
  37. data/app/packs/src/decidim/datepicker/test/date.test.js +8 -0
  38. data/app/packs/stylesheets/decidim/_datepicker.scss +3 -3
  39. data/app/packs/stylesheets/decidim/_spinner.scss +16 -0
  40. data/app/packs/stylesheets/decidim/_tom_select.scss +1 -1
  41. data/app/presenters/decidim/log/base_presenter.rb +10 -1
  42. data/app/services/decidim/action_logger.rb +97 -29
  43. data/app/services/decidim/svg_content_validator.rb +419 -84
  44. data/app/validators/uploader_image_content_validator.rb +6 -2
  45. data/app/views/decidim/manifests/show.json.erb +25 -22
  46. data/app/views/decidim/shared/_results_per_page.html.erb +1 -1
  47. data/config/locales/bg.yml +1 -3
  48. data/config/locales/ca-IT.yml +7 -3
  49. data/config/locales/ca.yml +7 -5
  50. data/config/locales/cs.yml +9 -3
  51. data/config/locales/de.yml +1 -3
  52. data/config/locales/en.yml +5 -3
  53. data/config/locales/es-MX.yml +5 -3
  54. data/config/locales/es-PY.yml +5 -3
  55. data/config/locales/es.yml +7 -5
  56. data/config/locales/eu.yml +10 -8
  57. data/config/locales/fi-plain.yml +2 -2
  58. data/config/locales/fi.yml +2 -2
  59. data/config/locales/fr-CA.yml +5 -3
  60. data/config/locales/fr.yml +5 -3
  61. data/config/locales/gl.yml +0 -1
  62. data/config/locales/it.yml +0 -2
  63. data/config/locales/ja.yml +3 -3
  64. data/config/locales/pl.yml +1 -3
  65. data/config/locales/pt-BR.yml +1 -3
  66. data/config/locales/ro-RO.yml +0 -2
  67. data/config/locales/sk.yml +68 -3
  68. data/config/locales/sv.yml +3 -3
  69. data/config/locales/tr-TR.yml +1 -1
  70. data/db/migrate/20250523104311_move_cta_to_hero_content_block.rb +1 -1
  71. data/db/migrate/20250527122040_move_highlighted_content_banner_settings_to_content_block.rb +3 -0
  72. data/db/migrate/20261007090000_make_user_optional_in_action_logs.rb +12 -0
  73. data/decidim-core.gemspec +1 -1
  74. data/lib/decidim/content_renderers/mention_resource_renderer.rb +1 -1
  75. data/lib/decidim/core/version.rb +1 -1
  76. data/lib/decidim/core.rb +1 -1
  77. data/lib/decidim/maintenance/import_models/scope.rb +2 -1
  78. data/lib/decidim/maintenance/taxonomy_importer.rb +4 -1
  79. data/lib/decidim/seeds.rb +1 -1
  80. data/lib/decidim/view_model.rb +1 -0
  81. data/lib/tasks/decidim_open_data_tasks.rake +7 -0
  82. metadata +7 -5
@@ -86,8 +86,6 @@ pl:
86
86
  decidim_with_month_name_short: "%d %b"
87
87
  help:
88
88
  date_format: 'Format: dd/mm/rrrr'
89
- order: d-m-y
90
- separator: "/"
91
89
  datetime:
92
90
  distance_in_words:
93
91
  about_x_hours:
@@ -1690,7 +1688,7 @@ pl:
1690
1688
  long_with_particles: "%B %d, %Y o %H:%M"
1691
1689
  short: "%d/%m/%Y %H:%M"
1692
1690
  time_of_day: "%H:%M"
1693
- tooltip: "%d-%m-%Y %H:%M %p %Z (GMT %:z)"
1691
+ tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
1694
1692
  versions:
1695
1693
  directions:
1696
1694
  left: Elementy usunięte
@@ -118,8 +118,6 @@ pt-BR:
118
118
  decidim_with_month_name_short: "%d %b"
119
119
  help:
120
120
  date_format: 'Formato: dd/mm/aaaa'
121
- order: d-m-y
122
- separator: "/"
123
121
  datetime:
124
122
  distance_in_words:
125
123
  about_x_hours:
@@ -2213,7 +2211,7 @@ pt-BR:
2213
2211
  long_with_particles: "%d %B, %Y as %H:%M"
2214
2212
  short: "%d/%m/%Y %H:%M"
2215
2213
  time_of_day: "%H:%M"
2216
- tooltip: "%d-%m-%Y %H:%M %p %Z (GMT %: z)"
2214
+ tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
2217
2215
  versions:
2218
2216
  directions:
2219
2217
  left: Exclusões
@@ -122,8 +122,6 @@ ro:
122
122
  decidim_with_month_name_short: "%d %b"
123
123
  help:
124
124
  date_format: 'Format: zz/ll/aaa'
125
- order: z-l-a
126
- separator: "/"
127
125
  datetime:
128
126
  distance_in_words:
129
127
  about_x_hours:
@@ -126,8 +126,6 @@ sk:
126
126
  decidim_with_month_name_short: "%d %b"
127
127
  help:
128
128
  date_format: 'Formát: dd/mm/yyyy'
129
- order: d-m-y
130
- separator: "/"
131
129
  datetime:
132
130
  distance_in_words:
133
131
  about_x_hours:
@@ -278,6 +276,7 @@ sk:
278
276
  create: "%{user_name}pridal súčasť %{resource_name} do priestoru %{space_name}"
279
277
  delete: "%{user_name} odstránil súčasť %{resource_name} z priestoru %{space_name}"
280
278
  export_component: "%{user_name} exportoval/a %{resource_name} %{component_name} v %{space_name} ako %{format_name}"
279
+ menu_hidden: "%{user_name} skryl/a komponent %{resource_name} z ponuky v priestore %{space_name}"
281
280
  publish: "%{user_name} publikoval súčasť %{resource_name} v priestore %{space_name}"
282
281
  restore: "%{user_name} obnovil/a komponent %{resource_name} v priestore %{space_name}"
283
282
  soft_delete: "%{user_name} presunul/a do koša komponent %{resource_name} v priestore %{space_name}"
@@ -445,6 +444,10 @@ sk:
445
444
  withdraw:
446
445
  error: Pri sťahovaní pozmeňujúceho návrhu sa vyskytol problém.
447
446
  success: Pozmeňujúci návrh bol úspešne stiahnutý.
447
+ wizard_step_form:
448
+ steps:
449
+ '1': Vytvorte svoj pozmeňujúci návrh
450
+ '2': Publikujte svoj pozmeňujúci návrh
448
451
  anonymous_user: Anonymné
449
452
  application:
450
453
  document:
@@ -583,6 +586,7 @@ sk:
583
586
  global:
584
587
  amendments_enabled: Zmeny povolené
585
588
  comments_enabled: Komentáre povolené
589
+ comments_max_length: Maximálny počet znakov na komentár
586
590
  define_taxonomy_filters: Pred použitím tohto nastavenia definujte nejaké filtre pre tento participatívny priestor.
587
591
  dummy_global_attribute1: Zástupný atribút 1
588
592
  dummy_global_attribute2: Zástupný atribút 2
@@ -688,6 +692,13 @@ sk:
688
692
  all: Všetky
689
693
  filter_taxonomy_values:
690
694
  all: Všetky
695
+ delete_user_mailer:
696
+ delete:
697
+ body_1: Váš účet bol deaktivovaný a už nie je prístupný. Vaše osobné údaje sú naplánované na trvalé odstránenie v súlade s našimi zásadami uchovávania údajov.
698
+ body_2: Z bezpečnostných dôvodov sa niektoré údaje súvisiace s autorizáciou uchovajú; ak si vytvoríte nový účet a znova sa autorizujete, môžu byť prepojené s vaším novým účtom.
699
+ greetings_html: S pozdravom,<br/><a href="%{organization_url}">%{organization_name}</a>
700
+ hello: Vážený/á %{username},
701
+ subject: Váš účet bol odstránený
691
702
  devise:
692
703
  omniauth_registrations:
693
704
  create:
@@ -909,9 +920,13 @@ sk:
909
920
  affected_user:
910
921
  email_intro: 'Zmena bola prijatá pre %{amendable_title}. Môžete ju vidieť z tejto stránky: '
911
922
  email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
923
+ email_subject: Prijatý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
924
+ notification_title: <a href="%{emendation_path}">Pozmeňujúci návrh</a>, ktorý vytvoril/a <a href="%{emendation_author_path}">%{emendation_author_name}</a>, bol prijatý pre <a href="%{amendable_path}">%{amendable_title}</a>.
912
925
  follower:
913
926
  email_intro: 'Zmena bola prijatá pre %{amendable_title}. Môžete ju vidieť z tejto stránky: '
914
927
  email_outro: Toto oznámenie ste dostali, pretože sledujete %{amendable_title}. Po kliknutí na predchádzajúcu odkaz môžete prestať prijímať oznámenia.
928
+ email_subject: Prijatý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
929
+ notification_title: <a href="%{emendation_path}">Pozmeňujúci návrh</a>, ktorý vytvoril/a <a href="%{emendation_author_path}">%{emendation_author_name}</a>, bol prijatý pre <a href="%{amendable_path}">%{amendable_title}</a>.
915
930
  amendment_created:
916
931
  affected_user:
917
932
  email_intro: 'Nová zmena bola vytvorená pre hodnotu%{amendable_title}. Môžete ju vidieť z tejto stránky: '
@@ -927,20 +942,29 @@ sk:
927
942
  affected_user:
928
943
  email_intro: 'Zamietnutý pozmeňovací návrh pre %{amendable_title} bol publikovaný ako nový %{amendable_type}. Môžete ho vidieť z tejto stránky: '
929
944
  email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
945
+ email_subject: Pozmeňujúci návrh od %{emendation_author_name} bol zverejnený ako nový %{amendable_type}
946
+ notification_title: <a href="%{emendation_path}">Zamietnutý pozmeňujúci návrh</a> pre <a href="%{amendable_path}">%{amendable_title}</a> zverejnil/a <a href="%{emendation_author_path}">%{emendation_author_name}</a> ako nový %{amendable_type}.
930
947
  follower:
931
948
  email_intro: 'Označenie odmietnutej pre číslo %{amendable_title} bolo povýšené na nezávislý%{amendable_type}. Môžete ju vidieť z tejto stránky: '
932
949
  email_outro: Toto oznámenie ste dostali, pretože sledujete %{amendable_title}. Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
950
+ email_subject: Pozmeňujúci návrh od %{emendation_author_name} bol zverejnený ako nový %{amendable_type}
951
+ notification_title: <a href="%{emendation_path}">Zamietnutý pozmeňujúci návrh</a> pre <a href="%{amendable_path}">%{amendable_title}</a> zverejnil/a <a href="%{emendation_author_path}">%{emendation_author_name}</a> ako nový %{amendable_type}.
933
952
  amendment_rejected:
934
953
  affected_user:
935
954
  email_intro: 'Oznámenie bolo zamietnuté za %{amendable_title}. Môžete ju vidieť z tejto stránky: '
936
955
  email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
956
+ email_subject: Zamietnutý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
957
+ notification_title: <a href="%{emendation_path}">Pozmeňujúci návrh</a>, ktorý vytvoril/a <a href="%{emendation_author_path}">%{emendation_author_name}</a>, bol zamietnutý pre <a href="%{amendable_path}">%{amendable_title}</a>.
937
958
  follower:
938
959
  email_intro: 'Oznámenie bolo zamietnuté za %{amendable_title}. Môžete ju vidieť z tejto stránky: '
939
960
  email_outro: Toto oznámenie ste dostali, pretože sledujete %{amendable_title}. Notifikácie môžete zrušiť po kliknutí na predchádzajúci odkaz.
961
+ email_subject: Zamietnutý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
962
+ notification_title: <a href="%{emendation_path}">Pozmeňujúci návrh</a>, ktorý vytvoril/a <a href="%{emendation_author_path}">%{emendation_author_name}</a>, bol zamietnutý pre <a href="%{amendable_path}">%{amendable_title}</a>.
940
963
  emendation_promoted:
941
964
  follower:
942
965
  email_intro: 'Pre %{amendable_title} bola zverejnená úprava. Môžete si ju pozrieť na tejto stránke:'
943
966
  email_outro: Toto upozornenie ste dostali, pretože ste autorom %{amendable_title}.
967
+ email_subject: Úprava od %{emendation_author_name} bola zverejnená ako nový %{amendable_type}
944
968
  attachments:
945
969
  attachment_created:
946
970
  email_intro: 'Do dokumentu%{resource_title} bol pridaný nový dokument. Môžete ho vidieť z tejto stránky: '
@@ -973,6 +997,18 @@ sk:
973
997
  notification_body: Opravili sme spôsob používania prezývok, aby nevznikali duplicity, a preto sme odstránili pravidlo rozlišovania veľkých a malých písmen. <br/> Vaša prezývka bola vytvorená po inej s rovnakým menom, preto sme ju automaticky premenovali. Môžete si ju zmeniť v <a href="%{link_to_account_settings}">nastaveniach vášho účtu</a>.
974
998
  notification_event:
975
999
  notification_title: Vyskytla sa udalosť pre <a href="%{resource_path}">%{resource_title}</a>.
1000
+ participatory_space:
1001
+ member_added:
1002
+ published:
1003
+ email_intro: Boli ste pridaný/á ako člen do participatívneho priestoru.
1004
+ email_outro: Toto upozornenie ste dostali, pretože vás administrátor pridal do <a href="%{resource_url}">%{resource_title}</a>. Ak je prístup do tohto priestoru obmedzený, budete k nemu mať prístup pomocou svojho účtu.<br> Váš profil sa zobrazí v <a href="%{members_page}">zozname členov</a> priestoru.
1005
+ email_subject: Teraz máte prístup k %{resource_title}.
1006
+ notification_title: Teraz máte prístup k <a href="%{resource_url}">%{resource_title}</a>.
1007
+ unpublished:
1008
+ email_intro: Boli ste pridaný/á ako člen do participatívneho priestoru.
1009
+ email_outro: Toto upozornenie ste dostali, pretože vás administrátor pridal do <a href="%{resource_url}">%{resource_title}</a>. Ak je prístup do tohto priestoru obmedzený, budete k nemu mať prístup pomocou svojho účtu.
1010
+ email_subject: Teraz máte prístup k %{resource_title}.
1011
+ notification_title: Teraz máte prístup k <a href="%{resource_url}">%{resource_title}</a>.
976
1012
  reports:
977
1013
  parent_hidden:
978
1014
  email_intro: |-
@@ -991,13 +1027,25 @@ sk:
991
1027
  notification_title: |-
992
1028
  Administrátor odstránil váš %{resource_type}, pretože bol nahlásený ako %{report_reasons}.</br>
993
1029
  <i>%{resource_content}</i>
1030
+ resource_liked:
1031
+ email_intro: 'Používateľ %{liker_name}, ktorého sledujete, práve označil, že sa mu páči „%{resource_title}“, a myslíme si, že by vás to mohlo zaujímať. Pozrite si to a zapojte sa:'
1032
+ email_outro: Toto upozornenie ste dostali, pretože sledujete používateľa %{liker_name}. Prijímanie upozornení môžete zrušiť kliknutím na predchádzajúci odkaz.
1033
+ email_subject: "%{liker_name} pridal/a nové označenie Páči sa mi to"
1034
+ notification_title: Používateľovi <a href="%{liker_path}">%{liker_name}</a> sa páči %{resource_type} <a href="%{resource_path}">%{resource_title}</a>.
994
1035
  resources:
995
1036
  soft_deleted:
996
1037
  notification_title: Administrátor odstránil váš „%{resource_type}“ „%{resource_title}“.
997
1038
  users:
1039
+ profile_updated:
1040
+ email_intro: <a href="%{resource_url}">Profilová stránka</a> používateľa %{name}, ktorého sledujete, bola aktualizovaná.
1041
+ email_outro: Toto upozornenie ste dostali, pretože sledujete používateľa %{name}. Prijímanie upozornení môžete zrušiť kliknutím na predchádzajúci odkaz.
1042
+ email_subject: "%{name} aktualizoval/a svoj profil"
1043
+ notification_title: <a href="%{resource_path}">Profilová stránka</a> používateľa %{name}, ktorého sledujete, bola aktualizovaná.
998
1044
  user_officialized:
1045
+ email_intro: Účastník %{name} bol oficializovaný.
999
1046
  email_outro: Toto upozornenie ste dostali, pretože ste administrátorom organizácie.
1000
1047
  email_subject: "%{name} bol/a oficializovaný/á"
1048
+ notification_title: Účastník %{name} bol oficializovaný.
1001
1049
  export_mailer:
1002
1050
  download_your_data_export:
1003
1051
  click_button_html: Kliknutím na nasledujúci odkaz si stiahnete svoje údaje.<br/>Súbor bude k dispozícii na stiahnutie do %{date}.
@@ -1204,6 +1252,8 @@ sk:
1204
1252
  dynamic:
1205
1253
  screen_reader_explanation: Nasledujúci prvok je mapa, ktorá zobrazuje položky na tejto stránke ako body na mape. Prvok je možné použiť s čítačkou obrazovky, ale môže byť ťažšie pochopiteľný.
1206
1254
  skip_button: Preskočiť mapu
1255
+ zoom_in: Priblížiť
1256
+ zoom_out: Oddialiť
1207
1257
  static:
1208
1258
  latlng_text: 'zemepisná šírka: %{latitude}, zemepisná dĺžka: %{longitude}'
1209
1259
  map_service_brand: OpenStreetMap
@@ -1358,6 +1408,7 @@ sk:
1358
1408
  own_activity: Moje vlastné činnosť, ako keby niekto komentoval vo svojom návrhu alebo ma zmienil
1359
1409
  push_notifications: Push upozornenia
1360
1410
  push_notifications_reminder: Ak chcete dostávať upozornenia z platformy, musíte ich najprv povoliť v nastaveniach prehliadača.
1411
+ push_notifications_unsupported_browser: Váš prehliadač nie je podporovaný.
1361
1412
  receive_notifications_about: Chcem dostávať oznámenia
1362
1413
  update_notifications_settings: Uložiť zmeny
1363
1414
  update:
@@ -1546,6 +1597,10 @@ sk:
1546
1597
  never_logged_in: nikdy neprihlásený/á
1547
1598
  subject: Upozornenie na neaktívny účet
1548
1599
  participatory_space:
1600
+ labels:
1601
+ reference: Referencia priestoru
1602
+ restricted: Obmedzený priestor
1603
+ transparent: Transparentný priestor
1549
1604
  pages:
1550
1605
  user_profile:
1551
1606
  member_of:
@@ -1553,6 +1608,10 @@ sk:
1553
1608
  participatory_space_members:
1554
1609
  index:
1555
1610
  members: Členovia
1611
+ participatory_spaces:
1612
+ show:
1613
+ restricted_space: Toto je obmedzený priestor. Zobraziť si ho a zúčastniť sa môžu iba členovia a administrátori.
1614
+ transparent_space: Toto je transparentný priestor. Obsah si môže zobraziť ktokoľvek, ale zúčastniť sa môžu iba členovia a administrátori.
1556
1615
  passwords:
1557
1616
  update:
1558
1617
  error: Pri aktualizácii hesla sa vyskytol problém.
@@ -1700,6 +1759,8 @@ sk:
1700
1759
  login_modal:
1701
1760
  please_log_in: Prosím, prihláste sa
1702
1761
  sign_up: Vytvoriť účet
1762
+ mentions:
1763
+ search_prompt: Píšte pre vyhľadávanie účastníkov
1703
1764
  mentions_modal:
1704
1765
  remove_recipient: Odstrániť príjemcu %{name}
1705
1766
  progress: Priebeh
@@ -2263,6 +2324,7 @@ sk:
2263
2324
  close: Zavrieť
2264
2325
  reset: Obnoviť
2265
2326
  select: Vybrat
2327
+ clock_format: 24
2266
2328
  formats:
2267
2329
  day_of_month: "%b %d"
2268
2330
  day_of_week: "%a"
@@ -2271,6 +2333,8 @@ sk:
2271
2333
  ddmm: "%d.%m"
2272
2334
  ddmmyyyy: "%d.%m.%Y"
2273
2335
  decidim_day_of_year: "%d %B %Y"
2336
+ decidim_month: "%B"
2337
+ decidim_month_and_year: "%B %Y"
2274
2338
  decidim_short: "%d/%m/%Y %H:%M"
2275
2339
  default: "%a, %d %b %Y %H:%M:%S %z"
2276
2340
  devise:
@@ -2284,7 +2348,8 @@ sk:
2284
2348
  long_with_particles: "%d. %B %Y o %H:%M"
2285
2349
  short: "%d/%m/%Y %H:%M"
2286
2350
  time_of_day: "%H:%M"
2287
- tooltip: "%d.%m.%Y %H:%M %p %Z (GMT %:z)"
2351
+ time_of_day_with_time_zone: "%H:%M %Z"
2352
+ tooltip: "%d.%m.%Y %H:%M %Z (GMT %:z)"
2288
2353
  versions:
2289
2354
  directions:
2290
2355
  left: Smazané
@@ -118,8 +118,6 @@ sv:
118
118
  decidim_with_month_name_short: "%d %b"
119
119
  help:
120
120
  date_format: 'Format: dd/mm/åååå'
121
- order: d-m-y
122
- separator: "/"
123
121
  datetime:
124
122
  distance_in_words:
125
123
  about_x_hours:
@@ -858,6 +856,8 @@ sv:
858
856
  errors:
859
857
  files:
860
858
  file_cannot_be_processed: Filen kan inte bearbetas
859
+ file_contains_unsafe_content: Filen innehåller osäkert innehåll
860
+ file_is_not_a_valid_image: Filen är inte en giltig bild
861
861
  file_resolution_too_large: Filupplösningen är för stor
862
862
  not_inside_organization: Filen är inte kopplad till någon organisation.
863
863
  internal_server_error:
@@ -2294,7 +2294,7 @@ sv:
2294
2294
  long_with_particles: "%B %d, %Y kl. %H:%M"
2295
2295
  short: "%d/%m/%Y kl.%H:%M"
2296
2296
  time_of_day: "%H:%M"
2297
- tooltip: "%d-%m-%Y %H:%M %p %Z (GMT %:z)"
2297
+ tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
2298
2298
  versions:
2299
2299
  directions:
2300
2300
  left: Raderingar
@@ -1064,7 +1064,7 @@ tr:
1064
1064
  long_dashed: "%Y-%m-%d %H:%M:%S"
1065
1065
  short: "%d/%m/%Y %H:%M"
1066
1066
  time_of_day: "%H:%M"
1067
- tooltip: "%d-%m-%Y %H:%M %p %Z (GMT %:z)\n%Gün-%Ay-%Yıl %Saat:%Dakika %p %Zone (GMT %:z)"
1067
+ tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
1068
1068
  versions:
1069
1069
  directions:
1070
1070
  left: Silme
@@ -9,7 +9,7 @@ class MoveCtaToHeroContentBlock < ActiveRecord::Migration[7.0]
9
9
  Decidim::ContentBlock.reset_column_information
10
10
  Organization.find_each do |organization|
11
11
  content_block = Decidim::ContentBlock.find_by(organization:, scope_name: :homepage, manifest_name: :hero)
12
- settings = {}
12
+ settings = content_block[:settings] || {}
13
13
  cta_button_text = organization.cta_button_text || {}
14
14
  settings = cta_button_text.inject(settings) { |acc, (k, v)| acc.update("cta_button_text_#{k}" => v) }
15
15
 
@@ -12,6 +12,9 @@ class MoveHighlightedContentBannerSettingsToContentBlock < ActiveRecord::Migrati
12
12
 
13
13
  Organization.find_each do |organization|
14
14
  content_block = Decidim::ContentBlock.find_by(organization:, scope_name: :homepage, manifest_name: :highlighted_content_banner)
15
+ # The content block can be missing (e.g. an admin deleted it), so there is no banner to move
16
+ next if content_block.nil?
17
+
15
18
  settings = extract_settings(organization)
16
19
 
17
20
  # We need to do a workaround for getting the image, as ActiveStorage is polymorphic and expects that the `record_type` is the class name of the model
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class MakeUserOptionalInActionLogs < ActiveRecord::Migration[8.1]
4
+ def up
5
+ change_column_null :decidim_action_logs, :user_id, true
6
+ change_column_null :decidim_action_logs, :user_type, true
7
+ end
8
+
9
+ def down
10
+ raise ActiveRecord::IrreversibleMigration
11
+ end
12
+ end
data/decidim-core.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "decidim-core"
7
- version = "0.32.2"
7
+ version = "0.32.3"
8
8
  s.version = version
9
9
  s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
10
10
  s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
@@ -69,7 +69,7 @@ module Decidim
69
69
  end
70
70
 
71
71
  def mention_title(resource)
72
- title = presenter_for(resource).title
72
+ title = CGI.escapeHTML(presenter_for(resource).title.to_s)
73
73
 
74
74
  "<span class='editor-mention'>
75
75
  #{mention_avatar(resource)}
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-core version.
5
5
  module Core
6
6
  def self.version
7
- "0.32.2"
7
+ "0.32.3"
8
8
  end
9
9
  end
10
10
  end
data/lib/decidim/core.rb CHANGED
@@ -684,7 +684,7 @@ module Decidim
684
684
  ),
685
685
  CoreDataManifest.new(
686
686
  name: :taxonomies,
687
- collection: ->(organization) { Decidim::Taxonomy.where(organization:) },
687
+ collection: ->(organization) { organization.taxonomies },
688
688
  serializer: Decidim::Exporters::OpenDataTaxonomySerializer,
689
689
  include_in_open_data: true
690
690
  )
@@ -117,12 +117,13 @@ module Decidim
117
117
  }
118
118
  end
119
119
 
120
- def self.filter_item_for_component(component, space)
120
+ def self.filter_item_for_component(component, space) # rubocop:disable Metrics/CyclomaticComplexity
121
121
  return unless component.settings.respond_to?(:taxonomy_filters)
122
122
 
123
123
  scopes_enabled = component.attributes.dig("settings", "global", "scopes_enabled")
124
124
  scope_id = component.attributes.dig("settings", "global", "scope_id")
125
125
  return unless scopes_enabled
126
+ return unless space.respond_to?(:scopes_enabled) && space.respond_to?(:decidim_scope_id) && space.scopes_enabled?
126
127
 
127
128
  scope = find_by(id: scope_id) || (space.scopes_enabled? && find_by(id: space.decidim_scope_id))
128
129
  list = scope ? [scope] + scope.all_children : all
@@ -85,7 +85,10 @@ module Decidim
85
85
  component = GlobalID::Locator.locate(component_id)
86
86
  if component
87
87
  begin
88
- component.update!(settings: component.settings.to_h.merge(taxonomy_filters: [filter.id.to_s]))
88
+ settings = component.settings.to_h
89
+ settings[:taxonomy_filters] ||= []
90
+ settings[:taxonomy_filters] << filter.id.to_s unless settings[:taxonomy_filters].include?(filter.id.to_s)
91
+ component.update!(settings:)
89
92
  result[:components_assigned][filter.internal_name[organization.default_locale]] ||= []
90
93
  result[:components_assigned][filter.internal_name[organization.default_locale]] << component_id
91
94
  rescue ActiveRecord::RecordInvalid
data/lib/decidim/seeds.rb CHANGED
@@ -8,7 +8,7 @@ module Decidim
8
8
  # Base class to be inherited from the different modules' seeds classes
9
9
  class Seeds
10
10
  SEEDS_CONFIG = {
11
- comments_count: { slow: 6, fast: 2 },
11
+ comments_count: { slow: 0..6, fast: 0..2 },
12
12
  comments_nested_probability: { slow: 0.5, fast: 0.2 },
13
13
  comments_vote_skip_probability: { slow: 0.5, fast: 0.7 },
14
14
  comments_votes_count: { slow: 12, fast: 3 },
@@ -15,6 +15,7 @@ module Decidim
15
15
  include Decidim::SanitizeHelper
16
16
  include Decidim::ApplicationHelper
17
17
  include Decidim::IconHelper
18
+ include Decidim::UrlHelper
18
19
 
19
20
  delegate :helper_method, to: :controller
20
21
  delegate :current_organization, to: :controller
@@ -4,8 +4,15 @@ namespace :decidim do
4
4
  namespace :open_data do
5
5
  desc "Generates the Open Data export files for each organization."
6
6
  task export: :environment do
7
+ resource_names = (
8
+ Decidim.open_data_manifests.select(&:include_in_open_data).map(&:name) +
9
+ Decidim.component_manifests.flat_map(&:export_manifests).select(&:include_in_open_data?).map(&:name) +
10
+ Decidim.participatory_space_manifests.flat_map(&:export_manifests).select(&:include_in_open_data?).map(&:name)
11
+ ).uniq
12
+
7
13
  Decidim::Organization.find_each do |organization|
8
14
  Decidim::OpenDataJob.perform_later(organization)
15
+ resource_names.each { |resource| Decidim::OpenDataJob.perform_later(organization, resource) }
9
16
  end
10
17
  end
11
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.2
4
+ version: 0.32.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -913,28 +913,28 @@ dependencies:
913
913
  requirements:
914
914
  - - '='
915
915
  - !ruby/object:Gem::Version
916
- version: 0.32.2
916
+ version: 0.32.3
917
917
  type: :development
918
918
  prerelease: false
919
919
  version_requirements: !ruby/object:Gem::Requirement
920
920
  requirements:
921
921
  - - '='
922
922
  - !ruby/object:Gem::Version
923
- version: 0.32.2
923
+ version: 0.32.3
924
924
  - !ruby/object:Gem::Dependency
925
925
  name: decidim-dev
926
926
  requirement: !ruby/object:Gem::Requirement
927
927
  requirements:
928
928
  - - '='
929
929
  - !ruby/object:Gem::Version
930
- version: 0.32.2
930
+ version: 0.32.3
931
931
  type: :development
932
932
  prerelease: false
933
933
  version_requirements: !ruby/object:Gem::Requirement
934
934
  requirements:
935
935
  - - '='
936
936
  - !ruby/object:Gem::Version
937
- version: 0.32.2
937
+ version: 0.32.3
938
938
  description: Adds core features so other engines can hook into the framework.
939
939
  email:
940
940
  - josepjaume@gmail.com
@@ -1478,6 +1478,7 @@ files:
1478
1478
  - app/helpers/decidim/taxonomies_helper.rb
1479
1479
  - app/helpers/decidim/traceability_helper.rb
1480
1480
  - app/helpers/decidim/translations_helper.rb
1481
+ - app/helpers/decidim/url_helper.rb
1481
1482
  - app/helpers/decidim/user_profile_helper.rb
1482
1483
  - app/helpers/decidim/view_hooks_helper.rb
1483
1484
  - app/jobs/decidim/application_job.rb
@@ -2617,6 +2618,7 @@ files:
2617
2618
  - db/migrate/20260217152425_remove_enable_participatory_space_filters_from_decidim_organizations.rb
2618
2619
  - db/migrate/20260314081619_add_index_on_decidim_members.rb
2619
2620
  - db/migrate/20260909000000_add_failed_attempts_and_locked_at_to_decidim_authorizations.rb
2621
+ - db/migrate/20261007090000_make_user_optional_in_action_logs.rb
2620
2622
  - db/seeds.rb
2621
2623
  - db/seeds/Exampledocument.pdf
2622
2624
  - db/seeds/avatars/001.jpg