decidim-core 0.31.8 → 0.31.9
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.
- checksums.yaml +4 -4
- data/app/cells/decidim/address_cell.rb +7 -3
- data/app/cells/decidim/card_metadata_cell.rb +3 -1
- data/app/cells/decidim/date_range/show.erb +6 -6
- data/app/cells/decidim/date_range_cell.rb +7 -2
- data/app/commands/decidim/create_follow.rb +3 -7
- data/app/commands/decidim/create_omniauth_registration.rb +2 -5
- data/app/commands/decidim/create_user_report.rb +1 -1
- data/app/commands/decidim/destroy_account.rb +6 -6
- data/app/commands/decidim/destroy_ephemeral_user.rb +2 -0
- data/app/commands/decidim/invite_user.rb +1 -1
- data/app/commands/decidim/multiple_attachments_methods.rb +17 -3
- data/app/commands/decidim/update_resources_taxonomies.rb +2 -1
- data/app/controllers/concerns/decidim/devise_controllers.rb +2 -0
- data/app/controllers/concerns/decidim/direct_upload.rb +12 -6
- data/app/controllers/concerns/decidim/impersonate_users.rb +2 -2
- data/app/controllers/concerns/decidim/needs_organization.rb +15 -0
- data/app/controllers/decidim/amendments_controller.rb +34 -6
- data/app/controllers/decidim/application_controller.rb +2 -0
- data/app/controllers/decidim/authorization_modals_controller.rb +1 -1
- data/app/controllers/decidim/doorkeeper/authorizations_controller.rb +10 -4
- data/app/controllers/decidim/doorkeeper/credentials_controller.rb +6 -1
- data/app/controllers/decidim/messaging/conversations_controller.rb +1 -1
- data/app/controllers/decidim/profiles_controller.rb +1 -1
- data/app/helpers/decidim/cells_paginate_helper.rb +0 -5
- data/app/helpers/decidim/layout_helper.rb +1 -0
- data/app/helpers/decidim/orders_helper.rb +8 -6
- data/app/helpers/decidim/paginate_helper.rb +27 -2
- data/app/helpers/decidim/url_helper.rb +35 -0
- data/app/jobs/decidim/open_data_job.rb +21 -5
- data/app/models/decidim/action_log.rb +7 -1
- data/app/models/decidim/component.rb +10 -0
- data/app/models/decidim/like.rb +1 -1
- data/app/packs/src/decidim/datepicker/datepicker_functions.js +20 -7
- data/app/packs/src/decidim/datepicker/form_datepicker.js +18 -2
- data/app/packs/src/decidim/datepicker/generate_datepicker.js +12 -4
- data/app/packs/src/decidim/datepicker/generate_timepicker.js +5 -3
- data/app/packs/src/decidim/datepicker/test/date.test.js +8 -0
- data/app/packs/stylesheets/decidim/_datepicker.scss +3 -3
- data/app/packs/stylesheets/decidim/_spinner.scss +16 -0
- data/app/packs/stylesheets/decidim/_tom_select.scss +1 -1
- data/app/presenters/decidim/log/base_presenter.rb +10 -1
- data/app/services/decidim/action_logger.rb +97 -29
- data/app/services/decidim/svg_content_validator.rb +419 -84
- data/app/validators/uploader_image_content_validator.rb +6 -2
- data/app/views/decidim/manifests/show.json.erb +25 -22
- data/app/views/decidim/shared/_results_per_page.html.erb +1 -1
- data/config/locales/bg.yml +1 -3
- data/config/locales/ca-IT.yml +5 -3
- data/config/locales/ca.yml +7 -5
- data/config/locales/cs.yml +9 -3
- data/config/locales/de.yml +1 -3
- data/config/locales/en.yml +5 -3
- data/config/locales/es-MX.yml +5 -3
- data/config/locales/es-PY.yml +5 -3
- data/config/locales/es.yml +7 -5
- data/config/locales/eu.yml +10 -8
- data/config/locales/fi-plain.yml +2 -2
- data/config/locales/fi.yml +2 -2
- data/config/locales/fr-CA.yml +5 -3
- data/config/locales/fr.yml +5 -3
- data/config/locales/gl.yml +0 -1
- data/config/locales/it.yml +0 -2
- data/config/locales/ja.yml +3 -3
- data/config/locales/pl.yml +1 -3
- data/config/locales/pt-BR.yml +1 -3
- data/config/locales/ro-RO.yml +0 -2
- data/config/locales/sk.yml +49 -3
- data/config/locales/sv.yml +3 -3
- data/config/locales/tr-TR.yml +1 -1
- data/db/migrate/20250523104311_move_cta_to_hero_content_block.rb +1 -1
- data/db/migrate/20250527122040_move_highlighted_content_banner_settings_to_content_block.rb +3 -0
- data/db/migrate/20261007090000_make_user_optional_in_action_logs.rb +12 -0
- data/decidim-core.gemspec +1 -1
- data/lib/decidim/content_renderers/mention_resource_renderer.rb +6 -3
- data/lib/decidim/core/test/factories.rb +2 -2
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +1 -1
- data/lib/decidim/maintenance/import_models/scope.rb +2 -1
- data/lib/decidim/maintenance/taxonomy_importer.rb +4 -1
- data/lib/decidim/view_model.rb +1 -0
- data/lib/tasks/decidim_open_data_tasks.rake +7 -0
- metadata +18 -10
data/config/locales/pt-BR.yml
CHANGED
|
@@ -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:
|
|
@@ -2215,7 +2213,7 @@ pt-BR:
|
|
|
2215
2213
|
long_with_particles: "%d %B, %Y as %H:%M"
|
|
2216
2214
|
short: "%d/%m/%Y %H:%M"
|
|
2217
2215
|
time_of_day: "%H:%M"
|
|
2218
|
-
tooltip: "%d-%m-%Y %H:%M %
|
|
2216
|
+
tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
|
|
2219
2217
|
versions:
|
|
2220
2218
|
directions:
|
|
2221
2219
|
left: Exclusões
|
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/sk.yml
CHANGED
|
@@ -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:
|
|
@@ -279,6 +277,7 @@ sk:
|
|
|
279
277
|
create: "%{user_name}pridal súčasť %{resource_name} do priestoru %{space_name}"
|
|
280
278
|
delete: "%{user_name} odstránil súčasť %{resource_name} z priestoru %{space_name}"
|
|
281
279
|
export_component: "%{user_name} exportoval/a %{resource_name} %{component_name} v %{space_name} ako %{format_name}"
|
|
280
|
+
menu_hidden: "%{user_name} skryl/a komponent %{resource_name} z ponuky v priestore %{space_name}"
|
|
282
281
|
publish: "%{user_name} publikoval súčasť %{resource_name} v priestore %{space_name}"
|
|
283
282
|
restore: "%{user_name} obnovil/a komponent %{resource_name} v priestore %{space_name}"
|
|
284
283
|
soft_delete: "%{user_name} presunul/a do koša komponent %{resource_name} v priestore %{space_name}"
|
|
@@ -446,6 +445,10 @@ sk:
|
|
|
446
445
|
withdraw:
|
|
447
446
|
error: Pri sťahovaní pozmeňujúceho návrhu sa vyskytol problém.
|
|
448
447
|
success: Pozmeňujúci návrh bol úspešne stiahnutý.
|
|
448
|
+
wizard_step_form:
|
|
449
|
+
steps:
|
|
450
|
+
'1': Vytvorte svoj pozmeňujúci návrh
|
|
451
|
+
'2': Publikujte svoj pozmeňujúci návrh
|
|
449
452
|
anonymous_user: Anonymné
|
|
450
453
|
application:
|
|
451
454
|
document:
|
|
@@ -584,6 +587,7 @@ sk:
|
|
|
584
587
|
global:
|
|
585
588
|
amendments_enabled: Zmeny povolené
|
|
586
589
|
comments_enabled: Komentáre povolené
|
|
590
|
+
comments_max_length: Maximálny počet znakov na komentár
|
|
587
591
|
define_taxonomy_filters: Pred použitím tohto nastavenia definujte nejaké filtre pre tento participatívny priestor.
|
|
588
592
|
dummy_global_attribute1: Zástupný atribút 1
|
|
589
593
|
dummy_global_attribute2: Zástupný atribút 2
|
|
@@ -690,6 +694,13 @@ sk:
|
|
|
690
694
|
all: Všetky
|
|
691
695
|
filter_taxonomy_values:
|
|
692
696
|
all: Všetky
|
|
697
|
+
delete_user_mailer:
|
|
698
|
+
delete:
|
|
699
|
+
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.
|
|
700
|
+
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.
|
|
701
|
+
greetings_html: S pozdravom,<br/><a href="%{organization_url}">%{organization_name}</a>
|
|
702
|
+
hello: Vážený/á %{username},
|
|
703
|
+
subject: Váš účet bol odstránený
|
|
693
704
|
devise:
|
|
694
705
|
omniauth_registrations:
|
|
695
706
|
create:
|
|
@@ -911,9 +922,13 @@ sk:
|
|
|
911
922
|
affected_user:
|
|
912
923
|
email_intro: 'Zmena bola prijatá pre %{amendable_title}. Môžete ju vidieť z tejto stránky: '
|
|
913
924
|
email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
|
|
925
|
+
email_subject: Prijatý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
|
|
926
|
+
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>.
|
|
914
927
|
follower:
|
|
915
928
|
email_intro: 'Zmena bola prijatá pre %{amendable_title}. Môžete ju vidieť z tejto stránky: '
|
|
916
929
|
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.
|
|
930
|
+
email_subject: Prijatý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
|
|
931
|
+
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>.
|
|
917
932
|
amendment_created:
|
|
918
933
|
affected_user:
|
|
919
934
|
email_intro: 'Nová zmena bola vytvorená pre hodnotu%{amendable_title}. Môžete ju vidieť z tejto stránky: '
|
|
@@ -929,20 +944,29 @@ sk:
|
|
|
929
944
|
affected_user:
|
|
930
945
|
email_intro: 'Zamietnutý pozmeňovací návrh pre %{amendable_title} bol publikovaný ako nový %{amendable_type}. Môžete ho vidieť z tejto stránky: '
|
|
931
946
|
email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
|
|
947
|
+
email_subject: Pozmeňujúci návrh od %{emendation_author_name} bol zverejnený ako nový %{amendable_type}
|
|
948
|
+
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}.
|
|
932
949
|
follower:
|
|
933
950
|
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: '
|
|
934
951
|
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.
|
|
952
|
+
email_subject: Pozmeňujúci návrh od %{emendation_author_name} bol zverejnený ako nový %{amendable_type}
|
|
953
|
+
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}.
|
|
935
954
|
amendment_rejected:
|
|
936
955
|
affected_user:
|
|
937
956
|
email_intro: 'Oznámenie bolo zamietnuté za %{amendable_title}. Môžete ju vidieť z tejto stránky: '
|
|
938
957
|
email_outro: Toto oznámenie ste dostali, pretože ste autorom %{amendable_title}.
|
|
958
|
+
email_subject: Zamietnutý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
|
|
959
|
+
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>.
|
|
939
960
|
follower:
|
|
940
961
|
email_intro: 'Oznámenie bolo zamietnuté za %{amendable_title}. Môžete ju vidieť z tejto stránky: '
|
|
941
962
|
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.
|
|
963
|
+
email_subject: Zamietnutý pozmeňujúci návrh pre %{amendable_title} od %{emendation_author_name}
|
|
964
|
+
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>.
|
|
942
965
|
emendation_promoted:
|
|
943
966
|
follower:
|
|
944
967
|
email_intro: 'Pre %{amendable_title} bola zverejnená úprava. Môžete si ju pozrieť na tejto stránke:'
|
|
945
968
|
email_outro: Toto upozornenie ste dostali, pretože ste autorom %{amendable_title}.
|
|
969
|
+
email_subject: Úprava od %{emendation_author_name} bola zverejnená ako nový %{amendable_type}
|
|
946
970
|
attachments:
|
|
947
971
|
attachment_created:
|
|
948
972
|
email_intro: 'Do dokumentu%{resource_title} bol pridaný nový dokument. Môžete ho vidieť z tejto stránky: '
|
|
@@ -993,13 +1017,25 @@ sk:
|
|
|
993
1017
|
notification_title: |-
|
|
994
1018
|
Administrátor odstránil váš %{resource_type}, pretože bol nahlásený ako %{report_reasons}.</br>
|
|
995
1019
|
<i>%{resource_content}</i>
|
|
1020
|
+
resource_liked:
|
|
1021
|
+
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:'
|
|
1022
|
+
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.
|
|
1023
|
+
email_subject: "%{liker_name} pridal/a nové označenie Páči sa mi to"
|
|
1024
|
+
notification_title: Používateľovi <a href="%{liker_path}">%{liker_name}</a> sa páči %{resource_type} <a href="%{resource_path}">%{resource_title}</a>.
|
|
996
1025
|
resources:
|
|
997
1026
|
soft_deleted:
|
|
998
1027
|
notification_title: Administrátor odstránil váš „%{resource_type}“ „%{resource_title}“.
|
|
999
1028
|
users:
|
|
1029
|
+
profile_updated:
|
|
1030
|
+
email_intro: <a href="%{resource_url}">Profilová stránka</a> používateľa %{name}, ktorého sledujete, bola aktualizovaná.
|
|
1031
|
+
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.
|
|
1032
|
+
email_subject: "%{name} aktualizoval/a svoj profil"
|
|
1033
|
+
notification_title: <a href="%{resource_path}">Profilová stránka</a> používateľa %{name}, ktorého sledujete, bola aktualizovaná.
|
|
1000
1034
|
user_officialized:
|
|
1035
|
+
email_intro: Účastník %{name} bol oficializovaný.
|
|
1001
1036
|
email_outro: Toto upozornenie ste dostali, pretože ste administrátorom organizácie.
|
|
1002
1037
|
email_subject: "%{name} bol/a oficializovaný/á"
|
|
1038
|
+
notification_title: Účastník %{name} bol oficializovaný.
|
|
1003
1039
|
export_mailer:
|
|
1004
1040
|
download_your_data_export:
|
|
1005
1041
|
click_button_html: Kliknutím na nasledujúci odkaz si stiahnete svoje údaje.<br/>Súbor bude k dispozícii na stiahnutie do %{date}.
|
|
@@ -1200,6 +1236,8 @@ sk:
|
|
|
1200
1236
|
dynamic:
|
|
1201
1237
|
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ý.
|
|
1202
1238
|
skip_button: Preskočiť mapu
|
|
1239
|
+
zoom_in: Priblížiť
|
|
1240
|
+
zoom_out: Oddialiť
|
|
1203
1241
|
static:
|
|
1204
1242
|
latlng_text: 'zemepisná šírka: %{latitude}, zemepisná dĺžka: %{longitude}'
|
|
1205
1243
|
map_service_brand: OpenStreetMap
|
|
@@ -1355,6 +1393,7 @@ sk:
|
|
|
1355
1393
|
own_activity: Moje vlastné činnosť, ako keby niekto komentoval vo svojom návrhu alebo ma zmienil
|
|
1356
1394
|
push_notifications: Push upozornenia
|
|
1357
1395
|
push_notifications_reminder: Ak chcete dostávať upozornenia z platformy, musíte ich najprv povoliť v nastaveniach prehliadača.
|
|
1396
|
+
push_notifications_unsupported_browser: Váš prehliadač nie je podporovaný.
|
|
1358
1397
|
receive_notifications_about: Chcem dostávať oznámenia
|
|
1359
1398
|
update_notifications_settings: Uložiť zmeny
|
|
1360
1399
|
update:
|
|
@@ -1542,6 +1581,9 @@ sk:
|
|
|
1542
1581
|
log_in: prihlásiť sa
|
|
1543
1582
|
never_logged_in: nikdy neprihlásený/á
|
|
1544
1583
|
subject: Upozornenie na neaktívny účet
|
|
1584
|
+
participatory_space:
|
|
1585
|
+
labels:
|
|
1586
|
+
reference: Referencia priestoru
|
|
1545
1587
|
passwords:
|
|
1546
1588
|
update:
|
|
1547
1589
|
error: Pri aktualizácii hesla sa vyskytol problém.
|
|
@@ -2253,6 +2295,7 @@ sk:
|
|
|
2253
2295
|
close: Zavrieť
|
|
2254
2296
|
reset: Obnoviť
|
|
2255
2297
|
select: Vybrat
|
|
2298
|
+
clock_format: 24
|
|
2256
2299
|
formats:
|
|
2257
2300
|
day_of_month: "%b %d"
|
|
2258
2301
|
day_of_week: "%a"
|
|
@@ -2261,6 +2304,8 @@ sk:
|
|
|
2261
2304
|
ddmm: "%d.%m"
|
|
2262
2305
|
ddmmyyyy: "%d.%m.%Y"
|
|
2263
2306
|
decidim_day_of_year: "%d %B %Y"
|
|
2307
|
+
decidim_month: "%B"
|
|
2308
|
+
decidim_month_and_year: "%B %Y"
|
|
2264
2309
|
decidim_short: "%d/%m/%Y %H:%M"
|
|
2265
2310
|
default: "%a, %d %b %Y %H:%M:%S %z"
|
|
2266
2311
|
devise:
|
|
@@ -2274,7 +2319,8 @@ sk:
|
|
|
2274
2319
|
long_with_particles: "%d. %B %Y o %H:%M"
|
|
2275
2320
|
short: "%d/%m/%Y %H:%M"
|
|
2276
2321
|
time_of_day: "%H:%M"
|
|
2277
|
-
|
|
2322
|
+
time_of_day_with_time_zone: "%H:%M %Z"
|
|
2323
|
+
tooltip: "%d.%m.%Y %H:%M %Z (GMT %:z)"
|
|
2278
2324
|
versions:
|
|
2279
2325
|
directions:
|
|
2280
2326
|
left: Smazané
|
data/config/locales/sv.yml
CHANGED
|
@@ -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:
|
|
@@ -860,6 +858,8 @@ sv:
|
|
|
860
858
|
errors:
|
|
861
859
|
files:
|
|
862
860
|
file_cannot_be_processed: Filen kan inte bearbetas
|
|
861
|
+
file_contains_unsafe_content: Filen innehåller osäkert innehåll
|
|
862
|
+
file_is_not_a_valid_image: Filen är inte en giltig bild
|
|
863
863
|
file_resolution_too_large: Filupplösningen är för stor
|
|
864
864
|
not_inside_organization: Filen är inte kopplad till någon organisation.
|
|
865
865
|
internal_server_error:
|
|
@@ -2265,7 +2265,7 @@ sv:
|
|
|
2265
2265
|
long_with_particles: "%B %d, %Y kl. %H:%M"
|
|
2266
2266
|
short: "%d/%m/%Y kl.%H:%M"
|
|
2267
2267
|
time_of_day: "%H:%M"
|
|
2268
|
-
tooltip: "%d-%m-%Y %H:%M %
|
|
2268
|
+
tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
|
|
2269
2269
|
versions:
|
|
2270
2270
|
directions:
|
|
2271
2271
|
left: Raderingar
|
data/config/locales/tr-TR.yml
CHANGED
|
@@ -1069,7 +1069,7 @@ tr:
|
|
|
1069
1069
|
long_dashed: "%Y-%m-%d %H:%M:%S"
|
|
1070
1070
|
short: "%d/%m/%Y %H:%M"
|
|
1071
1071
|
time_of_day: "%H:%M"
|
|
1072
|
-
tooltip: "%d-%m-%Y %H:%M %
|
|
1072
|
+
tooltip: "%d-%m-%Y %H:%M %Z (GMT %:z)"
|
|
1073
1073
|
versions:
|
|
1074
1074
|
directions:
|
|
1075
1075
|
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: 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: 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[7.2]
|
|
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
|
@@ -79,7 +79,7 @@ Gem::Specification.new do |s|
|
|
|
79
79
|
s.add_dependency "rack-proxy", "~> 0.8.3", "< 1.0"
|
|
80
80
|
s.add_dependency "rails", "~> 7.2.0", ">= 7.2.2.2"
|
|
81
81
|
s.add_dependency "rails-i18n", "~> 7.0"
|
|
82
|
-
s.add_dependency "ransack", "
|
|
82
|
+
s.add_dependency "ransack", ">= 4.2", "< 4.5"
|
|
83
83
|
s.add_dependency "redis", "~> 4.1"
|
|
84
84
|
s.add_dependency "request_store", "~> 1.7.0"
|
|
85
85
|
s.add_dependency "rqrcode", "~> 2.2.0"
|
|
@@ -40,8 +40,11 @@ module Decidim
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def render_editor(resource_gid, resource)
|
|
43
|
-
title = presenter_for(resource).title
|
|
44
|
-
|
|
43
|
+
title = presenter_for(resource).title.to_s
|
|
44
|
+
escaped_gid = CGI.escapeHTML(resource_gid.to_s)
|
|
45
|
+
escaped_title = CGI.escapeHTML(title)
|
|
46
|
+
|
|
47
|
+
%(<span data-type="mentionResource" data-id="#{escaped_gid}" data-label="#{escaped_title}">#{escaped_title}</span>)
|
|
45
48
|
end
|
|
46
49
|
|
|
47
50
|
def render_resource_link(resource)
|
|
@@ -55,7 +58,7 @@ module Decidim
|
|
|
55
58
|
end
|
|
56
59
|
|
|
57
60
|
def mention_title(resource)
|
|
58
|
-
title = presenter_for(resource).title
|
|
61
|
+
title = CGI.escapeHTML(presenter_for(resource).title.to_s)
|
|
59
62
|
|
|
60
63
|
"<span class='editor-mention'>
|
|
61
64
|
#{mention_avatar(resource)}
|
|
@@ -824,8 +824,8 @@ FactoryBot.define do
|
|
|
824
824
|
|
|
825
825
|
user { create(:user) }
|
|
826
826
|
organization { user.organization }
|
|
827
|
-
user_id { user.id }
|
|
828
|
-
user_type { user.class.name }
|
|
827
|
+
user_id { user.try(:id) }
|
|
828
|
+
user_type { user.try(:class).try(:name) }
|
|
829
829
|
participatory_space { build(:participatory_process, organization:, skip_injection:) }
|
|
830
830
|
component { build(:component, participatory_space:, skip_injection:) }
|
|
831
831
|
resource { build(:dummy_resource, component:, skip_injection:) }
|
data/lib/decidim/core/version.rb
CHANGED
data/lib/decidim/core.rb
CHANGED
|
@@ -793,7 +793,7 @@ module Decidim
|
|
|
793
793
|
),
|
|
794
794
|
CoreDataManifest.new(
|
|
795
795
|
name: :taxonomies,
|
|
796
|
-
collection: ->(organization) {
|
|
796
|
+
collection: ->(organization) { organization.taxonomies },
|
|
797
797
|
serializer: Decidim::Exporters::OpenDataTaxonomySerializer,
|
|
798
798
|
include_in_open_data: true
|
|
799
799
|
)
|
|
@@ -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
|
-
|
|
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/view_model.rb
CHANGED
|
@@ -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.31.
|
|
4
|
+
version: 0.31.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep Jaume Rey Peroy
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-
|
|
13
|
+
date: 2026-11-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: concurrent-ruby
|
|
@@ -706,16 +706,22 @@ dependencies:
|
|
|
706
706
|
name: ransack
|
|
707
707
|
requirement: !ruby/object:Gem::Requirement
|
|
708
708
|
requirements:
|
|
709
|
-
- - "
|
|
709
|
+
- - ">="
|
|
710
|
+
- !ruby/object:Gem::Version
|
|
711
|
+
version: '4.2'
|
|
712
|
+
- - "<"
|
|
710
713
|
- !ruby/object:Gem::Version
|
|
711
|
-
version: 4.
|
|
714
|
+
version: '4.5'
|
|
712
715
|
type: :runtime
|
|
713
716
|
prerelease: false
|
|
714
717
|
version_requirements: !ruby/object:Gem::Requirement
|
|
715
718
|
requirements:
|
|
716
|
-
- - "
|
|
719
|
+
- - ">="
|
|
720
|
+
- !ruby/object:Gem::Version
|
|
721
|
+
version: '4.2'
|
|
722
|
+
- - "<"
|
|
717
723
|
- !ruby/object:Gem::Version
|
|
718
|
-
version: 4.
|
|
724
|
+
version: '4.5'
|
|
719
725
|
- !ruby/object:Gem::Dependency
|
|
720
726
|
name: redis
|
|
721
727
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -848,28 +854,28 @@ dependencies:
|
|
|
848
854
|
requirements:
|
|
849
855
|
- - '='
|
|
850
856
|
- !ruby/object:Gem::Version
|
|
851
|
-
version: 0.31.
|
|
857
|
+
version: 0.31.9
|
|
852
858
|
type: :development
|
|
853
859
|
prerelease: false
|
|
854
860
|
version_requirements: !ruby/object:Gem::Requirement
|
|
855
861
|
requirements:
|
|
856
862
|
- - '='
|
|
857
863
|
- !ruby/object:Gem::Version
|
|
858
|
-
version: 0.31.
|
|
864
|
+
version: 0.31.9
|
|
859
865
|
- !ruby/object:Gem::Dependency
|
|
860
866
|
name: decidim-dev
|
|
861
867
|
requirement: !ruby/object:Gem::Requirement
|
|
862
868
|
requirements:
|
|
863
869
|
- - '='
|
|
864
870
|
- !ruby/object:Gem::Version
|
|
865
|
-
version: 0.31.
|
|
871
|
+
version: 0.31.9
|
|
866
872
|
type: :development
|
|
867
873
|
prerelease: false
|
|
868
874
|
version_requirements: !ruby/object:Gem::Requirement
|
|
869
875
|
requirements:
|
|
870
876
|
- - '='
|
|
871
877
|
- !ruby/object:Gem::Version
|
|
872
|
-
version: 0.31.
|
|
878
|
+
version: 0.31.9
|
|
873
879
|
description: Adds core features so other engines can hook into the framework.
|
|
874
880
|
email:
|
|
875
881
|
- josepjaume@gmail.com
|
|
@@ -1417,6 +1423,7 @@ files:
|
|
|
1417
1423
|
- app/helpers/decidim/taxonomies_helper.rb
|
|
1418
1424
|
- app/helpers/decidim/traceability_helper.rb
|
|
1419
1425
|
- app/helpers/decidim/translations_helper.rb
|
|
1426
|
+
- app/helpers/decidim/url_helper.rb
|
|
1420
1427
|
- app/helpers/decidim/user_profile_helper.rb
|
|
1421
1428
|
- app/helpers/decidim/view_hooks_helper.rb
|
|
1422
1429
|
- app/jobs/decidim/application_job.rb
|
|
@@ -2545,6 +2552,7 @@ files:
|
|
|
2545
2552
|
- db/migrate/20250819110800_convert_private_exports_id_to_uuid.rb
|
|
2546
2553
|
- db/migrate/20251031150928_add_short_name_to_organization.rb
|
|
2547
2554
|
- db/migrate/20260909000000_add_failed_attempts_and_locked_at_to_decidim_authorizations.rb
|
|
2555
|
+
- db/migrate/20261007090000_make_user_optional_in_action_logs.rb
|
|
2548
2556
|
- db/seeds.rb
|
|
2549
2557
|
- db/seeds/Exampledocument.pdf
|
|
2550
2558
|
- db/seeds/avatars/001.jpg
|