decidim-admin 0.28.2 → 0.29.0.rc2
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/admin/content_block_cell.rb +0 -1
- data/app/cells/decidim/admin/results_per_page/show.erb +2 -2
- data/app/cells/decidim/admin/results_per_page_cell.rb +0 -2
- data/app/commands/decidim/admin/create_area.rb +4 -32
- data/app/commands/decidim/admin/create_area_type.rb +4 -33
- data/app/commands/decidim/admin/create_attachment.rb +5 -4
- data/app/commands/decidim/admin/create_attachment_collection.rb +3 -3
- data/app/commands/decidim/admin/create_category.rb +4 -37
- data/app/commands/decidim/admin/create_component.rb +7 -40
- data/app/commands/decidim/admin/create_newsletter.rb +11 -29
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +3 -3
- data/app/commands/decidim/admin/create_scope.rb +15 -32
- data/app/commands/decidim/admin/create_scope_type.rb +3 -32
- data/app/commands/decidim/admin/create_static_page.rb +6 -47
- data/app/commands/decidim/admin/create_static_page_topic.rb +4 -26
- data/app/commands/decidim/admin/deliver_newsletter.rb +4 -5
- data/app/commands/decidim/admin/destroy_area.rb +2 -25
- data/app/commands/decidim/admin/destroy_category.rb +4 -29
- data/app/commands/decidim/admin/destroy_component.rb +5 -42
- data/app/commands/decidim/admin/destroy_newsletter.rb +2 -30
- data/app/commands/decidim/admin/destroy_participatory_space_private_user.rb +5 -32
- data/app/commands/decidim/admin/destroy_scope.rb +6 -33
- data/app/commands/decidim/admin/officialize_user.rb +1 -1
- data/app/commands/decidim/admin/participatory_space/create_admin.rb +4 -4
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +5 -4
- data/app/commands/decidim/admin/promote_managed_user.rb +4 -5
- data/app/commands/decidim/admin/unofficialize_user.rb +1 -1
- data/app/commands/decidim/admin/update_area.rb +2 -41
- data/app/commands/decidim/admin/update_area_type.rb +2 -42
- data/app/commands/decidim/admin/update_attachment.rb +10 -7
- data/app/commands/decidim/admin/update_attachment_collection.rb +3 -3
- data/app/commands/decidim/admin/update_category.rb +2 -45
- data/app/commands/decidim/admin/update_component.rb +4 -5
- data/app/commands/decidim/admin/update_component_permissions.rb +3 -3
- data/app/commands/decidim/admin/{update_external_domain_whitelist.rb → update_external_domain_allowlist.rb} +6 -5
- data/app/commands/decidim/admin/update_help_sections.rb +6 -3
- data/app/commands/decidim/admin/update_newsletter.rb +8 -8
- data/app/commands/decidim/admin/update_organization.rb +9 -53
- data/app/commands/decidim/admin/update_organization_appearance.rb +10 -81
- data/app/commands/decidim/admin/update_scope.rb +7 -40
- data/app/commands/decidim/admin/update_scope_type.rb +2 -42
- data/app/commands/decidim/admin/update_static_page.rb +5 -46
- data/app/commands/decidim/admin/update_static_page_topic.rb +2 -43
- data/app/constraints/decidim/admin/organization_dashboard_constraint.rb +1 -1
- data/app/controllers/concerns/decidim/admin/content_blocks/landing_page.rb +2 -2
- data/app/controllers/concerns/decidim/admin/filterable.rb +78 -3
- data/app/controllers/concerns/decidim/admin/global_moderation_context.rb +1 -1
- data/app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb +0 -7
- data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +1 -0
- data/app/controllers/decidim/admin/area_types_controller.rb +8 -9
- data/app/controllers/decidim/admin/areas_controller.rb +1 -1
- data/app/controllers/decidim/admin/authorization_workflows_controller.rb +1 -1
- data/app/controllers/decidim/admin/categories_controller.rb +2 -2
- data/app/controllers/decidim/admin/component_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/components_controller.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +1 -1
- data/app/controllers/decidim/admin/concerns/has_private_users_csv_import.rb +1 -1
- data/app/controllers/decidim/admin/help_sections_controller.rb +1 -1
- data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +1 -1
- data/app/controllers/decidim/admin/moderations/reports_controller.rb +4 -4
- data/app/controllers/decidim/admin/moderations_controller.rb +7 -7
- data/app/controllers/decidim/admin/newsletter_templates_controller.rb +1 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +5 -5
- data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +1 -1
- data/app/controllers/decidim/admin/{organization_external_domain_whitelist_controller.rb → organization_external_domain_allowlist_controller.rb} +7 -7
- data/app/controllers/decidim/admin/scope_types_controller.rb +7 -8
- data/app/controllers/decidim/admin/scopes_controller.rb +1 -1
- data/app/controllers/decidim/admin/share_tokens_controller.rb +1 -1
- data/app/controllers/decidim/admin/static_page_topics_controller.rb +2 -2
- data/app/controllers/decidim/admin/static_pages_controller.rb +2 -2
- data/app/forms/decidim/admin/attachment_form.rb +7 -1
- data/app/forms/decidim/admin/organization_appearance_form.rb +0 -3
- data/app/forms/decidim/admin/{organization_external_domain_whitelist_form.rb → organization_external_domain_allowlist_form.rb} +3 -3
- data/app/forms/decidim/admin/organization_form.rb +2 -2
- data/app/forms/decidim/admin/static_page_form.rb +0 -1
- data/app/helpers/decidim/admin/filterable_helper.rb +19 -3
- data/app/helpers/decidim/admin/moderations/reports_helper.rb +3 -1
- data/app/helpers/decidim/admin/newsletters_helper.rb +3 -3
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +2 -2
- data/app/packs/entrypoints/decidim_admin.js +4 -1
- data/app/packs/src/decidim/admin/application.js +19 -15
- data/app/packs/src/decidim/admin/css_preview.js +39 -0
- data/app/packs/src/decidim/admin/form.js +18 -1
- data/app/packs/src/decidim/admin/participatory_space_search.js +1 -1
- data/app/packs/src/decidim/admin/proposal_infinite_edit.js +2 -2
- data/app/packs/src/decidim/admin/sync_radio_buttons.js +27 -0
- data/app/packs/src/decidim/admin/text_copy.js +19 -0
- data/app/packs/stylesheets/decidim/admin/_cards.scss +1 -1
- data/app/packs/stylesheets/decidim/admin/_datepicker.scss +62 -0
- data/app/packs/stylesheets/decidim/admin/_item_edit.scss +1 -1
- data/app/packs/stylesheets/decidim/admin/_item_show.scss +8 -0
- data/app/packs/stylesheets/decidim/admin/_proposal_status.scss +5 -0
- data/app/packs/stylesheets/decidim/admin/application.scss +2 -0
- data/app/permissions/decidim/admin/permissions.rb +2 -2
- data/app/queries/decidim/admin/user_filter.rb +4 -4
- data/app/queries/decidim/admin/user_groups_evaluation.rb +1 -1
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/attachments/_form.html.erb +21 -2
- data/app/views/decidim/admin/attachments/index.html.erb +2 -2
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +26 -8
- data/app/views/decidim/admin/categories/index.html.erb +2 -2
- data/app/views/decidim/admin/components/_form.html.erb +1 -1
- data/app/views/decidim/admin/dashboard/_pending_moderations.html.erb +1 -1
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/exports/_dropdown.html.erb +1 -1
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +3 -3
- data/app/views/decidim/admin/imports/_dropdown.html.erb +1 -1
- data/app/views/decidim/admin/imports/new.html.erb +2 -2
- data/app/views/decidim/admin/logs/_filters.html.erb +3 -3
- data/app/views/decidim/admin/managed_users/promotions/new.html.erb +1 -1
- data/app/views/decidim/admin/moderated_users/index.html.erb +2 -2
- data/app/views/decidim/admin/moderations/index.html.erb +5 -5
- data/app/views/decidim/admin/moderations/reports/index.html.erb +6 -6
- data/app/views/decidim/admin/moderations/reports/show.html.erb +4 -4
- data/app/views/decidim/admin/newsletter_templates/index.html.erb +2 -2
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +7 -7
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +3 -3
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/organization/_form.html.erb +3 -3
- data/app/views/decidim/admin/organization_appearance/form/_colors.html.erb +0 -3
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +5 -5
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_external_domain.html.erb +4 -4
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/_form.html.erb +2 -2
- data/app/views/decidim/admin/{organization_external_domain_whitelist → organization_external_domain_allowlist}/edit.html.erb +2 -2
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +1 -1
- data/app/views/decidim/admin/participatory_space_private_users_csv_imports/new.html.erb +1 -1
- data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +1 -1
- data/app/views/decidim/admin/shared/_adjacent_navigation.html.erb +30 -0
- data/app/views/decidim/admin/shared/_admin_confirm_modal.html.erb +7 -7
- data/app/views/decidim/admin/shared/_filters.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
- data/app/views/decidim/admin/shared/landing_page/_content_blocks.html.erb +2 -2
- data/app/views/decidim/admin/static_page_topics/index.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/_form.html.erb +0 -4
- data/app/views/decidim/admin/users_statistics/_users_count.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_admin_timeout_modal.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_application.html.erb +4 -4
- data/app/views/layouts/decidim/admin/_callouts_full.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +3 -1
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_title_bar_responsive.html.erb +2 -2
- data/config/locales/ar.yml +0 -7
- data/config/locales/bg.yml +15 -10
- data/config/locales/ca.yml +16 -11
- data/config/locales/cs.yml +15 -10
- data/config/locales/de.yml +15 -10
- data/config/locales/el.yml +0 -12
- data/config/locales/en.yml +16 -11
- data/config/locales/es-MX.yml +16 -11
- data/config/locales/es-PY.yml +16 -11
- data/config/locales/es.yml +16 -11
- data/config/locales/eu.yml +16 -11
- data/config/locales/fi-plain.yml +14 -9
- data/config/locales/fi.yml +14 -9
- data/config/locales/fr-CA.yml +14 -9
- data/config/locales/fr.yml +13 -8
- data/config/locales/ga-IE.yml +0 -3
- data/config/locales/gl.yml +0 -5
- data/config/locales/hu.yml +9 -10
- data/config/locales/id-ID.yml +0 -3
- data/config/locales/is-IS.yml +0 -3
- data/config/locales/it.yml +0 -8
- data/config/locales/ja.yml +16 -11
- data/config/locales/kaa.yml +0 -3
- data/config/locales/ko.yml +0 -6
- data/config/locales/lb.yml +0 -8
- data/config/locales/lt.yml +0 -13
- data/config/locales/lv.yml +0 -3
- data/config/locales/nl.yml +0 -8
- data/config/locales/no.yml +0 -8
- data/config/locales/pl.yml +14 -9
- data/config/locales/pt-BR.yml +8 -10
- data/config/locales/pt.yml +0 -8
- data/config/locales/ro-RO.yml +0 -12
- data/config/locales/ru.yml +0 -3
- data/config/locales/sk.yml +0 -3
- data/config/locales/sq-AL.yml +0 -3
- data/config/locales/sr-CS.yml +0 -3
- data/config/locales/sv.yml +0 -8
- data/config/locales/th-TH.yml +0 -3
- data/config/locales/tr-TR.yml +0 -5
- data/config/locales/uk.yml +0 -3
- data/config/locales/zh-CN.yml +0 -3
- data/config/locales/zh-TW.yml +0 -12
- data/config/routes.rb +1 -1
- data/decidim-admin.gemspec +1 -1
- data/lib/decidim/admin/import/creator.rb +1 -1
- data/lib/decidim/admin/import/importer_factory.rb +2 -2
- data/lib/decidim/admin/menu.rb +4 -4
- data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +3 -2
- data/lib/decidim/admin/test/commands/create_category_examples.rb +4 -2
- data/lib/decidim/admin/test/commands/update_attachment_collection_examples.rb +3 -2
- data/lib/decidim/admin/test/commands/update_category_examples.rb +3 -2
- data/lib/decidim/admin/test/filterable_examples.rb +5 -3
- data/lib/decidim/admin/test/filters_participatory_space_user_roles_examples.rb +5 -5
- data/lib/decidim/admin/test/invite_participatory_space_admins_shared_examples.rb +1 -1
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +12 -12
- data/lib/decidim/admin/test/manage_attachments_examples.rb +51 -15
- data/lib/decidim/admin/test/manage_categories_examples.rb +13 -13
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +5 -5
- data/lib/decidim/admin/test/manage_hide_content_examples.rb +4 -4
- data/lib/decidim/admin/test/manage_moderations_examples.rb +21 -21
- data/lib/decidim/admin/test/manage_paginated_collection_examples.rb +3 -3
- data/lib/decidim/admin/test/manage_participatory_space_publications_examples.rb +2 -2
- data/lib/decidim/admin/version.rb +1 -1
- metadata +24 -22
- data/app/commands/decidim/admin/destroy_share_token.rb +0 -46
- data/app/commands/decidim/admin/destroy_static_page.rb +0 -40
- data/app/commands/decidim/admin/destroy_static_page_topic.rb +0 -40
- data/app/views/layouts/decidim/admin/login.html.erb +0 -19
- /data/app/packs/src/decidim/admin/{external_domain_whitelist.js → external_domain_allowlist.js} +0 -0
data/config/locales/pl.yml
CHANGED
@@ -384,12 +384,12 @@ pl:
|
|
384
384
|
show:
|
385
385
|
dropdown: Lista rozwijana
|
386
386
|
view_more_logs: Zobacz więcej logów
|
387
|
-
|
387
|
+
domain_allowlist:
|
388
388
|
form:
|
389
389
|
domain_too_short: Domena jest za krótka
|
390
390
|
update:
|
391
|
-
error: Nie udało się zaktualizować
|
392
|
-
success:
|
391
|
+
error: Nie udało się zaktualizować listy dozwolonych domen zewnętrznych
|
392
|
+
success: Lista dozwolonych domen zewnętrznych została pomyślnie zaktualizowana.
|
393
393
|
exports:
|
394
394
|
export_as: "%{name} jako %{export_format}"
|
395
395
|
formats:
|
@@ -448,6 +448,7 @@ pl:
|
|
448
448
|
values:
|
449
449
|
'false': Opublikowany
|
450
450
|
'true': Nieopublikowany
|
451
|
+
remove_all: Usuń wszystkie
|
451
452
|
scope_id_eq:
|
452
453
|
label: Zakres
|
453
454
|
search_label: Szukaj
|
@@ -456,7 +457,6 @@ pl:
|
|
456
457
|
report_count_eq: Licznik raportów
|
457
458
|
reported_id_string_or_reported_content_cont: Przeszukaj %{collection} według identyfikatora lub treści zgłoszenia.
|
458
459
|
title_cont: Przeszukaj %{collection} według tytułu.
|
459
|
-
user_name_or_user_email_cont: Przeszukaj %{collection} według nazwy lub e-maila.
|
460
460
|
user_name_or_user_nickname_or_user_email_cont: Szukaj %{collection} według adresu e-mail, nazwy lub pseudonimu.
|
461
461
|
state_eq:
|
462
462
|
label: Stan
|
@@ -580,7 +580,7 @@ pl:
|
|
580
580
|
components: Komponenty
|
581
581
|
configuration: Konfiguracja
|
582
582
|
content: Zgłoszona zawartość
|
583
|
-
|
583
|
+
external_domain_allowlist: Dozwolone domeny zewnętrzne
|
584
584
|
help_sections: Sekcje pomocy
|
585
585
|
homepage: Strona główna
|
586
586
|
impersonations: Podszywanie się pod inne osoby
|
@@ -865,7 +865,7 @@ pl:
|
|
865
865
|
layout_appearance_title: Edytuj wygląd layoutu
|
866
866
|
preview: Podgląd
|
867
867
|
omnipresent_banner_appearance_title: Edytuj stały baner
|
868
|
-
|
868
|
+
organization_external_domain_allowlist:
|
869
869
|
edit:
|
870
870
|
update: Aktualizuj
|
871
871
|
external_domain:
|
@@ -874,8 +874,8 @@ pl:
|
|
874
874
|
remove: Usuń
|
875
875
|
up: Do góry
|
876
876
|
form:
|
877
|
-
add: Dodaj do
|
878
|
-
title:
|
877
|
+
add: Dodaj do listy dozwolonych
|
878
|
+
title: Dozwolone domeny zewnętrzne
|
879
879
|
participatory_space_private_users:
|
880
880
|
create:
|
881
881
|
error: Wystąpił błąd podczas dodawania użytkownika prywatnego do tej przestrzeni partycypacyjnej.
|
@@ -973,6 +973,11 @@ pl:
|
|
973
973
|
help: Te tokeny są używane do publicznego udostępniania nieopublikowanego zasobu każdemu użytkownikowi. Zostaną one ukryte, gdy zasób zostanie opublikowany. Kliknij na ikonę udostępniania tokenu aby odwiedzić udostępniany adres URL.
|
974
974
|
title: Udostępnij tokeny
|
975
975
|
shared:
|
976
|
+
adjacent_navigation:
|
977
|
+
next: Następny
|
978
|
+
next_title: Następny element
|
979
|
+
previous: Poprzedni
|
980
|
+
previous_title: Poprzedni element
|
976
981
|
gallery:
|
977
982
|
add_images: Dodaj obrazy
|
978
983
|
edit_images: Edytuj obrazy
|
@@ -1025,7 +1030,7 @@ pl:
|
|
1025
1030
|
areas: Kategorie
|
1026
1031
|
authorization_workflows: Metody weryfikacji
|
1027
1032
|
dashboard: Panel
|
1028
|
-
edit_external_domains:
|
1033
|
+
edit_external_domains: Dozwolone domeny zewnętrzne
|
1029
1034
|
edit_landing_page: Zawartość strony
|
1030
1035
|
edit_organization_appearance: Edytuj wygląd strony głównej
|
1031
1036
|
impersonatable_users: Zarządzaj użytkownikami
|
data/config/locales/pt-BR.yml
CHANGED
@@ -355,7 +355,6 @@ pt-BR:
|
|
355
355
|
title: Conflitos de verificação
|
356
356
|
transfer:
|
357
357
|
email: E-mail
|
358
|
-
error: Houve um erro ao transferir o usuário atual para o usuário gerenciado.
|
359
358
|
name: Nome
|
360
359
|
reason: Motivo
|
361
360
|
success: A transferência atual foi concluída com sucesso.
|
@@ -383,12 +382,12 @@ pt-BR:
|
|
383
382
|
show:
|
384
383
|
dropdown: Dropdown
|
385
384
|
view_more_logs: Ver mais registros
|
386
|
-
|
385
|
+
domain_allowlist:
|
387
386
|
form:
|
388
387
|
domain_too_short: Domínio muito curto
|
389
388
|
update:
|
390
|
-
error: Falha ao atualizar
|
391
|
-
success:
|
389
|
+
error: Falha ao atualizar lista de domínios externos permitidos
|
390
|
+
success: Lista do domínio externo permitido atualizada com sucesso.
|
392
391
|
exports:
|
393
392
|
export_as: "%{name} como %{export_format}"
|
394
393
|
formats:
|
@@ -455,7 +454,6 @@ pt-BR:
|
|
455
454
|
report_count_eq: Número de denúncias
|
456
455
|
reported_id_string_or_reported_content_cont: Pesquisar %{collection} por id ou conteúdo reportável.
|
457
456
|
title_cont: Pesquisar %{collection} por título.
|
458
|
-
user_name_or_user_email_cont: Pesquise %{collection} por nome ou e-mail.
|
459
457
|
user_name_or_user_nickname_or_user_email_cont: Pesquise %{collection} por e-mail, nome ou apelido.
|
460
458
|
state_eq:
|
461
459
|
label: Estado
|
@@ -567,7 +565,7 @@ pt-BR:
|
|
567
565
|
areas: Áreas
|
568
566
|
configuration: Configuração
|
569
567
|
content: Conteúdo relatado
|
570
|
-
|
568
|
+
external_domain_allowlist: Domínios externos permitidos
|
571
569
|
help_sections: Seções de ajuda
|
572
570
|
homepage: Pagina inicial
|
573
571
|
impersonations: Imitações
|
@@ -852,7 +850,7 @@ pt-BR:
|
|
852
850
|
layout_appearance_title: Editar aparência do layout
|
853
851
|
preview: Pré-visualização
|
854
852
|
omnipresent_banner_appearance_title: Editar banner onipresente
|
855
|
-
|
853
|
+
organization_external_domain_allowlist:
|
856
854
|
edit:
|
857
855
|
update: Atualizar
|
858
856
|
external_domain:
|
@@ -861,8 +859,8 @@ pt-BR:
|
|
861
859
|
remove: Remover
|
862
860
|
up: Acima
|
863
861
|
form:
|
864
|
-
add: Adicionar
|
865
|
-
title: Lista
|
862
|
+
add: Adicionar na lista de permitidos
|
863
|
+
title: Lista de domínios externos permitidos
|
866
864
|
participatory_space_private_users:
|
867
865
|
create:
|
868
866
|
error: Ocorreu um erro ao adicionar um usuário privado para este espaço participativo.
|
@@ -1010,7 +1008,7 @@ pt-BR:
|
|
1010
1008
|
areas: Áreas
|
1011
1009
|
authorization_workflows: Métodos de verificação
|
1012
1010
|
dashboard: painel de controle
|
1013
|
-
edit_external_domains: Lista
|
1011
|
+
edit_external_domains: Lista de domínios externos permitidos
|
1014
1012
|
edit_landing_page: Conteúdos da página
|
1015
1013
|
edit_organization_appearance: Editar aparência da página inicial
|
1016
1014
|
impersonatable_users: Usuários gerenciáveis
|
data/config/locales/pt.yml
CHANGED
@@ -292,7 +292,6 @@ pt:
|
|
292
292
|
title: Conflitos de verificação
|
293
293
|
transfer:
|
294
294
|
email: e-Mail
|
295
|
-
error: Houve um problema ao transferir o utilizador actual para utilizador gerido.
|
296
295
|
name: Nome
|
297
296
|
reason: Motivo
|
298
297
|
success: A transferência actual foi completada com êxito.
|
@@ -359,7 +358,6 @@ pt:
|
|
359
358
|
name_or_nickname_or_email_cont: Pesquisar %{collection} por e-mail, nome ou alcunha.
|
360
359
|
reported_id_string_or_reported_content_cont: Pesquisar %{coleção} por identificador de denúncia ou conteúdo.
|
361
360
|
title_cont: Pesquisar %{collection} por título.
|
362
|
-
user_name_or_user_email_cont: Pesquisar %{coleção} por nome ou e-mail.
|
363
361
|
state_eq:
|
364
362
|
label: Estado
|
365
363
|
values:
|
@@ -682,12 +680,6 @@ pt:
|
|
682
680
|
layout_appearance_title: Editar aparência do layout
|
683
681
|
preview: Pré-visualização
|
684
682
|
omnipresent_banner_appearance_title: Editar faixa omnipresente
|
685
|
-
organization_external_domain_whitelist:
|
686
|
-
edit:
|
687
|
-
update: Atualizar
|
688
|
-
form:
|
689
|
-
add: Adicionar à lista branca
|
690
|
-
title: Lista branca de domínio externo
|
691
683
|
participatory_space_private_users:
|
692
684
|
create:
|
693
685
|
error: Ocorreu um problema ao adicionar um participante privado neste espaço participativo.
|
data/config/locales/ro-RO.yml
CHANGED
@@ -347,7 +347,6 @@ ro:
|
|
347
347
|
title: Conflicte de verificare
|
348
348
|
transfer:
|
349
349
|
email: E-mail
|
350
|
-
error: A apărut o problemă la transferul participantului curent drept participant gestionat.
|
351
350
|
name: Nume
|
352
351
|
reason: Motiv
|
353
352
|
success: Transferul curent a fost finalizat cu succes.
|
@@ -360,10 +359,6 @@ ro:
|
|
360
359
|
title: Moderări în așteptare
|
361
360
|
show:
|
362
361
|
view_more_logs: Afișează mai multe înregistrări
|
363
|
-
domain_whitelist:
|
364
|
-
update:
|
365
|
-
error: Actualizarea domeniilor permise a eșuat.
|
366
|
-
success: Lista domeniilor permise actualizată cu succes.
|
367
362
|
exports:
|
368
363
|
export_as: "%{name} drept %{export_format}"
|
369
364
|
formats:
|
@@ -430,7 +425,6 @@ ro:
|
|
430
425
|
report_count_eq: Număr de raportări
|
431
426
|
reported_id_string_or_reported_content_cont: Caută %{collection} după id sau conținut.
|
432
427
|
title_cont: Caută %{collection} după titlu.
|
433
|
-
user_name_or_user_email_cont: Caută %{collection} după nume sau e-mail.
|
434
428
|
user_name_or_user_nickname_or_user_email_cont: Caută %{collection} după e-mail, nume sau pseudonim.
|
435
429
|
state_eq:
|
436
430
|
label: Stadiu
|
@@ -816,12 +810,6 @@ ro:
|
|
816
810
|
layout_appearance_title: Editează aspectul aranjării în pagină
|
817
811
|
preview: Previzualizează
|
818
812
|
omnipresent_banner_appearance_title: Editează banner-ul omniprezent
|
819
|
-
organization_external_domain_whitelist:
|
820
|
-
edit:
|
821
|
-
update: Actualizează
|
822
|
-
form:
|
823
|
-
add: Adaugă la lista albă
|
824
|
-
title: Lista albă pentru domenii externe
|
825
813
|
participatory_space_private_users:
|
826
814
|
create:
|
827
815
|
error: A apărut o problemă la adăugarea unui participant privat pentru acest spațiu participativ.
|
data/config/locales/ru.yml
CHANGED
@@ -465,9 +465,6 @@ ru:
|
|
465
465
|
images:
|
466
466
|
layout_appearance_title: Редактировать внешний вид макета
|
467
467
|
omnipresent_banner_appearance_title: Редактировать вездесущий баннер
|
468
|
-
organization_external_domain_whitelist:
|
469
|
-
edit:
|
470
|
-
update: Обновить
|
471
468
|
participatory_space_private_users:
|
472
469
|
create:
|
473
470
|
error: При попытке добавить частного участника в это пространство соучастия произошла ошибка.
|
data/config/locales/sk.yml
CHANGED
@@ -515,9 +515,6 @@ sk:
|
|
515
515
|
images:
|
516
516
|
layout_appearance_title: Upraviť vzhľad
|
517
517
|
omnipresent_banner_appearance_title: Upraviť všadeprítomný banner
|
518
|
-
organization_external_domain_whitelist:
|
519
|
-
edit:
|
520
|
-
update: Aktualizovať
|
521
518
|
participatory_space_private_users:
|
522
519
|
create:
|
523
520
|
error: Pri pridávaní súkromného používateľa pre tento participačný priestor došlo k chybe.
|
data/config/locales/sq-AL.yml
CHANGED
@@ -492,9 +492,6 @@ sq:
|
|
492
492
|
saturation: Thellësia
|
493
493
|
title: Përzgjedhësi i ngjyrës
|
494
494
|
update_suggested_colors: Përditëso ngjyrat e rekomanduara
|
495
|
-
organization_external_domain_whitelist:
|
496
|
-
edit:
|
497
|
-
update: Përditëso
|
498
495
|
resource_permissions:
|
499
496
|
edit:
|
500
497
|
title: Github
|
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -315,7 +315,6 @@ sv:
|
|
315
315
|
title: Verifieringskonflikter
|
316
316
|
transfer:
|
317
317
|
email: E-post
|
318
|
-
error: Det gick inte att konvertera användaren till hanterad användare.
|
319
318
|
name: Namn
|
320
319
|
reason: Anledning
|
321
320
|
success: Flytten slutfördes problemfritt.
|
@@ -390,7 +389,6 @@ sv:
|
|
390
389
|
report_count_eq: Antal rapporteringar
|
391
390
|
reported_id_string_or_reported_content_cont: Sök %{collection} efter anmälningsID eller innehåll.
|
392
391
|
title_cont: Sök %{collection} efter titel.
|
393
|
-
user_name_or_user_email_cont: Sök %{collection} efter namn eller e-post.
|
394
392
|
user_name_or_user_nickname_or_user_email_cont: Sök i %{collection} efter e-post, namn eller användarnamn.
|
395
393
|
state_eq:
|
396
394
|
label: Län
|
@@ -750,12 +748,6 @@ sv:
|
|
750
748
|
layout_appearance_title: Redigera layoutens utseende
|
751
749
|
preview: Förhandsgranska
|
752
750
|
omnipresent_banner_appearance_title: Redigera banner på alla sidor
|
753
|
-
organization_external_domain_whitelist:
|
754
|
-
edit:
|
755
|
-
update: Uppdatera
|
756
|
-
form:
|
757
|
-
add: Lägg till i vitlistan
|
758
|
-
title: Vitlista för externa domäner
|
759
751
|
participatory_space_private_users:
|
760
752
|
create:
|
761
753
|
error: Det gick inte att lägga till en privat deltagare i deltagarutrymmet.
|
data/config/locales/th-TH.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
@@ -265,7 +265,6 @@ tr:
|
|
265
265
|
solved: Çözüldü
|
266
266
|
transfer:
|
267
267
|
email: E-Posta
|
268
|
-
error: Mevcut katılımcıyı yönetilen katılımcıya aktarırken bir sorun oluştu.
|
269
268
|
name: İsim
|
270
269
|
reason: Nedeni
|
271
270
|
success: Aktarım başarıyla tamamlandı.
|
@@ -604,9 +603,6 @@ tr:
|
|
604
603
|
layout_appearance_title: Düzen görünümünü düzenle
|
605
604
|
preview: Önizleme
|
606
605
|
omnipresent_banner_appearance_title: Her yerde bulunan banner'ı düzenle
|
607
|
-
organization_external_domain_whitelist:
|
608
|
-
edit:
|
609
|
-
update: Güncelleştirme
|
610
606
|
participatory_space_private_users:
|
611
607
|
create:
|
612
608
|
error: Bu katılımcı alan için özel bir kullanıcı eklenirken bir hata oluştu.
|
@@ -718,7 +714,6 @@ tr:
|
|
718
714
|
areas: alanlar
|
719
715
|
authorization_workflows: Doğrulama yöntemleri
|
720
716
|
dashboard: Pano
|
721
|
-
edit_external_domains: Harici Güvenli Alan
|
722
717
|
edit_landing_page: Sayfa İçeriği
|
723
718
|
edit_organization_appearance: Ana Sayfayı Düzenleme
|
724
719
|
impersonatable_users: Yönetilebilir kullanıcılar
|
data/config/locales/uk.yml
CHANGED
@@ -425,9 +425,6 @@ uk:
|
|
425
425
|
images:
|
426
426
|
layout_appearance_title: Редагувати зовнішній вигляд шаблону
|
427
427
|
omnipresent_banner_appearance_title: Редагувати всюдисущий банер
|
428
|
-
organization_external_domain_whitelist:
|
429
|
-
edit:
|
430
|
-
update: Оновити
|
431
428
|
participatory_space_private_users:
|
432
429
|
create:
|
433
430
|
error: При спробі додати приватного учасника до цього простору співучасті сталася помилка.
|
data/config/locales/zh-CN.yml
CHANGED
@@ -540,9 +540,6 @@ zh-CN:
|
|
540
540
|
layout_appearance_title: 编辑布局外观
|
541
541
|
preview: 预览
|
542
542
|
omnipresent_banner_appearance_title: Edit omnipresent banner
|
543
|
-
organization_external_domain_whitelist:
|
544
|
-
edit:
|
545
|
-
update: 更新
|
546
543
|
participatory_space_private_users:
|
547
544
|
create:
|
548
545
|
error: 在这种参与空间中添加私人参与者时出现了问题。
|
data/config/locales/zh-TW.yml
CHANGED
@@ -347,7 +347,6 @@ zh-TW:
|
|
347
347
|
title: 驗證衝突
|
348
348
|
transfer:
|
349
349
|
email: 電子郵件
|
350
|
-
error: 轉移現在參與者到管理參與者時發生錯誤
|
351
350
|
name: 名稱
|
352
351
|
reason: 理由
|
353
352
|
success: 目前的轉換完成
|
@@ -360,10 +359,6 @@ zh-TW:
|
|
360
359
|
title: 等待的操作
|
361
360
|
show:
|
362
361
|
view_more_logs: 檢視更多記錄
|
363
|
-
domain_whitelist:
|
364
|
-
update:
|
365
|
-
error: 網址白名單更新失敗
|
366
|
-
success: 網址白名單更新成功.
|
367
362
|
exports:
|
368
363
|
export_as: "%{name} 成為 %{export_format}"
|
369
364
|
formats:
|
@@ -430,7 +425,6 @@ zh-TW:
|
|
430
425
|
report_count_eq: 報告數量等於
|
431
426
|
reported_id_string_or_reported_content_cont: 按報告 Id 或內容搜索%{collection}。
|
432
427
|
title_cont: 按標題搜索%{collection}。
|
433
|
-
user_name_or_user_email_cont: 按名稱或電子郵件搜索%{collection}。
|
434
428
|
user_name_or_user_nickname_or_user_email_cont: 按電子郵件、姓名或暱稱搜索%{collection}。
|
435
429
|
state_eq:
|
436
430
|
label: 狀態
|
@@ -809,12 +803,6 @@ zh-TW:
|
|
809
803
|
layout_appearance_title: 編輯版面外觀
|
810
804
|
preview: 預覽
|
811
805
|
omnipresent_banner_appearance_title: 編輯無處不在的橫幅
|
812
|
-
organization_external_domain_whitelist:
|
813
|
-
edit:
|
814
|
-
update: 更新
|
815
|
-
form:
|
816
|
-
add: 新增到白名單
|
817
|
-
title: 外部域名白名單
|
818
806
|
participatory_space_private_users:
|
819
807
|
create:
|
820
808
|
error: 在此參與空間中添加私人參與者時出現問題。
|
data/config/routes.rb
CHANGED
@@ -7,7 +7,7 @@ Decidim::Admin::Engine.routes.draw do
|
|
7
7
|
resource :homepage, only: [:edit, :update], controller: "organization_homepage" do
|
8
8
|
resources :content_blocks, only: [:edit, :update, :destroy, :create], controller: "organization_homepage_content_blocks"
|
9
9
|
end
|
10
|
-
resource :
|
10
|
+
resource :external_domain_allowlist, only: [:edit, :update], controller: "organization_external_domain_allowlist"
|
11
11
|
|
12
12
|
member do
|
13
13
|
get :users
|
data/decidim-admin.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
"homepage_uri" => "https://decidim.org",
|
20
20
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
21
21
|
}
|
22
|
-
s.required_ruby_version = "~> 3.
|
22
|
+
s.required_ruby_version = "~> 3.2.0"
|
23
23
|
|
24
24
|
s.name = "decidim-admin"
|
25
25
|
s.summary = "Decidim organization administration"
|
@@ -12,7 +12,7 @@ module Decidim
|
|
12
12
|
# own creator or this default will be used.
|
13
13
|
class Creator
|
14
14
|
class << self
|
15
|
-
#
|
15
|
+
# Returns the resource class to be created with the provided data.
|
16
16
|
def resource_klass
|
17
17
|
raise NotImplementedError, "#{self.class.name} does not define resource class"
|
18
18
|
end
|
@@ -5,11 +5,11 @@ module Decidim
|
|
5
5
|
module Import
|
6
6
|
# A factory class providing easier way to create new importers.
|
7
7
|
class ImporterFactory
|
8
|
-
def self.build(file, mime_type, **
|
8
|
+
def self.build(file, mime_type, **)
|
9
9
|
reader = Readers.search_by_mime_type(mime_type)
|
10
10
|
raise NotImplementedError, "No reader implemented for mime type: #{mime_type}" if reader.nil?
|
11
11
|
|
12
|
-
Importer.new(file:, reader:, **
|
12
|
+
Importer.new(file:, reader:, **)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/decidim/admin/menu.rb
CHANGED
@@ -192,9 +192,9 @@ module Decidim
|
|
192
192
|
position: 1.6,
|
193
193
|
if: allowed_to?(:update, :help_sections)
|
194
194
|
|
195
|
-
menu.add_item :
|
196
|
-
I18n.t("menu.
|
197
|
-
decidim_admin.
|
195
|
+
menu.add_item :external_domain_allowlist,
|
196
|
+
I18n.t("menu.external_domain_allowlist", scope: "decidim.admin"),
|
197
|
+
decidim_admin.edit_organization_external_domain_allowlist_path,
|
198
198
|
icon_name: "computer-line",
|
199
199
|
position: 1.7,
|
200
200
|
if: allowed_to?(:update, :organization, organization: current_organization)
|
@@ -270,7 +270,7 @@ module Decidim
|
|
270
270
|
decidim/admin/scope_types
|
271
271
|
decidim/admin/areas decidim/admin/area_types
|
272
272
|
decidim/admin/help_sections
|
273
|
-
decidim/admin/
|
273
|
+
decidim/admin/organization_external_domain_allowlist
|
274
274
|
),
|
275
275
|
[]
|
276
276
|
],
|
@@ -25,10 +25,11 @@ module Decidim
|
|
25
25
|
form_params,
|
26
26
|
collection_for:
|
27
27
|
).with_context(
|
28
|
-
current_organization: organization
|
28
|
+
current_organization: organization,
|
29
|
+
current_user: user
|
29
30
|
)
|
30
31
|
end
|
31
|
-
let(:command) { described_class.new(form, collection_for
|
32
|
+
let(:command) { described_class.new(form, collection_for) }
|
32
33
|
|
33
34
|
describe "when the form is not valid" do
|
34
35
|
before do
|
@@ -22,10 +22,12 @@ module Decidim
|
|
22
22
|
form_params,
|
23
23
|
current_participatory_space: participatory_space
|
24
24
|
).with_context(
|
25
|
-
current_organization: organization
|
25
|
+
current_organization: organization,
|
26
|
+
current_participatory_space: participatory_space,
|
27
|
+
current_user: user
|
26
28
|
)
|
27
29
|
end
|
28
|
-
let(:command) { described_class.new(form
|
30
|
+
let(:command) { described_class.new(form) }
|
29
31
|
|
30
32
|
describe "when the form is not valid" do
|
31
33
|
before do
|
@@ -26,10 +26,11 @@ module Decidim
|
|
26
26
|
form_params,
|
27
27
|
collection_for:
|
28
28
|
).with_context(
|
29
|
-
current_organization: organization
|
29
|
+
current_organization: organization,
|
30
|
+
current_user: user
|
30
31
|
)
|
31
32
|
end
|
32
|
-
let(:command) { described_class.new(attachment_collection, form
|
33
|
+
let(:command) { described_class.new(attachment_collection, form) }
|
33
34
|
|
34
35
|
describe "when the form is not valid" do
|
35
36
|
before do
|
@@ -23,10 +23,11 @@ module Decidim
|
|
23
23
|
form_params,
|
24
24
|
current_participatory_space: participatory_space
|
25
25
|
).with_context(
|
26
|
-
current_organization: organization
|
26
|
+
current_organization: organization,
|
27
|
+
current_user: user
|
27
28
|
)
|
28
29
|
end
|
29
|
-
let(:command) { described_class.new(
|
30
|
+
let(:command) { described_class.new(form, category) }
|
30
31
|
|
31
32
|
describe "when the form is not valid" do
|
32
33
|
before do
|
@@ -11,13 +11,15 @@ shared_context "with filterable context" do
|
|
11
11
|
within(".filters__section") do
|
12
12
|
find_link("Filter").hover
|
13
13
|
find_link(options).hover
|
14
|
-
|
14
|
+
within ".submenu > .is-active > .submenu" do
|
15
|
+
click_on(filter)
|
16
|
+
end
|
15
17
|
end
|
16
18
|
end
|
17
19
|
|
18
20
|
def remove_applied_filter(filter)
|
19
21
|
within("[data-applied-filters-tags] .label", text: /#{filter}/i) do
|
20
|
-
|
22
|
+
click_on("Cancel")
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
@@ -50,7 +52,7 @@ shared_context "with filterable context" do
|
|
50
52
|
before { apply_filter(options, filter) }
|
51
53
|
|
52
54
|
it { expect(page).to have_content(in_filter) }
|
53
|
-
it { expect(page).
|
55
|
+
it { expect(page).to have_no_content(not_in_filter) }
|
54
56
|
|
55
57
|
it_behaves_like "searching by text" do
|
56
58
|
let(:text) { in_filter }
|
@@ -14,7 +14,7 @@ shared_examples "sortable participatory space user roles" do
|
|
14
14
|
let(:sort_by) { "name asc" }
|
15
15
|
|
16
16
|
it "displays the result" do
|
17
|
-
expect(page).
|
17
|
+
expect(page).to have_no_content(user.name)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -32,7 +32,7 @@ shared_examples "sortable participatory space user roles" do
|
|
32
32
|
let(:sort_by) { "email asc" }
|
33
33
|
|
34
34
|
it "displays the result" do
|
35
|
-
expect(page).
|
35
|
+
expect(page).to have_no_content(user.name)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -50,7 +50,7 @@ shared_examples "sortable participatory space user roles" do
|
|
50
50
|
let(:sort_by) { "last_sign_in_at asc" }
|
51
51
|
|
52
52
|
it "displays the result" do
|
53
|
-
expect(page).
|
53
|
+
expect(page).to have_no_content(user.name)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -68,7 +68,7 @@ shared_examples "sortable participatory space user roles" do
|
|
68
68
|
let(:sort_by) { "invitation_accepted_at asc" }
|
69
69
|
|
70
70
|
it "displays the result" do
|
71
|
-
expect(page).
|
71
|
+
expect(page).to have_no_content(user.name)
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -86,7 +86,7 @@ shared_examples "sortable participatory space user roles" do
|
|
86
86
|
let(:sort_by) { "role asc" }
|
87
87
|
|
88
88
|
it "displays the result" do
|
89
|
-
expect(page).
|
89
|
+
expect(page).to have_no_content(user.name)
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
@@ -17,7 +17,7 @@ shared_examples "inviting participatory space admins" do |check_private_space: t
|
|
17
17
|
expect(page).to have_content("Categories")
|
18
18
|
expect(page).to have_content("Attachments")
|
19
19
|
expect(page).to have_content(space_admins_label)
|
20
|
-
expect(page).
|
20
|
+
expect(page).to have_no_content("Private participants") if participatory_space.respond_to?(:private_space)
|
21
21
|
expect(page).to have_content("Moderations")
|
22
22
|
end
|
23
23
|
end
|