decidim-admin 0.26.5 → 0.27.0.rc1
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/admin/attachments_privacy_warning/show.erb +3 -0
- data/app/cells/decidim/admin/attachments_privacy_warning_cell.rb +19 -0
- data/app/commands/decidim/admin/block_user.rb +1 -1
- data/app/commands/decidim/admin/close_session_managed_user.rb +1 -1
- data/app/commands/decidim/admin/create_area.rb +1 -1
- data/app/commands/decidim/admin/create_area_type.rb +6 -3
- data/app/commands/decidim/admin/create_attachment.rb +14 -6
- data/app/commands/decidim/admin/create_attachment_collection.rb +13 -4
- data/app/commands/decidim/admin/create_category.rb +6 -4
- data/app/commands/decidim/admin/create_component.rb +1 -1
- data/app/commands/decidim/admin/create_import.rb +4 -5
- data/app/commands/decidim/admin/create_import_example.rb +1 -1
- data/app/commands/decidim/admin/create_newsletter.rb +1 -1
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +1 -1
- data/app/commands/decidim/admin/create_scope.rb +1 -1
- data/app/commands/decidim/admin/create_scope_type.rb +6 -3
- data/app/commands/decidim/admin/create_static_page.rb +1 -1
- data/app/commands/decidim/admin/create_static_page_topic.rb +1 -1
- data/app/commands/decidim/admin/deliver_newsletter.rb +6 -6
- data/app/commands/decidim/admin/destroy_area.rb +1 -1
- data/app/commands/decidim/admin/destroy_category.rb +6 -3
- data/app/commands/decidim/admin/destroy_component.rb +1 -1
- data/app/commands/decidim/admin/destroy_newsletter.rb +1 -1
- data/app/commands/decidim/admin/destroy_participatory_space_private_user.rb +1 -1
- data/app/commands/decidim/admin/destroy_scope.rb +1 -1
- data/app/commands/decidim/admin/destroy_share_token.rb +1 -1
- data/app/commands/decidim/admin/destroy_static_page.rb +1 -1
- data/app/commands/decidim/admin/destroy_static_page_topic.rb +1 -1
- data/app/commands/decidim/admin/hide_resource.rb +2 -2
- data/app/commands/decidim/admin/impersonate_user.rb +1 -1
- data/app/commands/decidim/admin/invite_admin.rb +1 -1
- data/app/commands/decidim/admin/officialize_user.rb +1 -1
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +7 -3
- data/app/commands/decidim/admin/process_user_group_verification_csv.rb +8 -4
- data/app/commands/decidim/admin/promote_managed_user.rb +1 -1
- data/app/commands/decidim/admin/publish_component.rb +1 -1
- data/app/commands/decidim/admin/reject_user_group.rb +1 -1
- data/app/commands/decidim/admin/remove_admin.rb +1 -1
- data/app/commands/decidim/admin/reorder_content_blocks.rb +1 -1
- data/app/commands/decidim/admin/transfer_user.rb +1 -1
- data/app/commands/decidim/admin/unblock_user.rb +2 -2
- data/app/commands/decidim/admin/unhide_resource.rb +1 -1
- data/app/commands/decidim/admin/unofficialize_user.rb +1 -1
- data/app/commands/decidim/admin/unpublish_component.rb +1 -1
- data/app/commands/decidim/admin/unreport_resource.rb +1 -1
- data/app/commands/decidim/admin/unreport_user.rb +1 -1
- data/app/commands/decidim/admin/update_area.rb +1 -1
- data/app/commands/decidim/admin/update_area_type.rb +8 -3
- data/app/commands/decidim/admin/update_attachment.rb +4 -3
- data/app/commands/decidim/admin/update_attachment_collection.rb +8 -3
- data/app/commands/decidim/admin/update_category.rb +9 -5
- data/app/commands/decidim/admin/update_component.rb +8 -5
- data/app/commands/decidim/admin/update_component_permissions.rb +9 -6
- data/app/commands/decidim/admin/update_content_block.rb +1 -1
- data/app/commands/decidim/admin/update_external_domain_whitelist.rb +6 -3
- data/app/commands/decidim/admin/update_help_sections.rb +17 -3
- data/app/commands/decidim/admin/update_newsletter.rb +1 -1
- data/app/commands/decidim/admin/update_organization.rb +1 -1
- data/app/commands/decidim/admin/update_organization_appearance.rb +1 -1
- data/app/commands/decidim/admin/update_organization_tos_version.rb +1 -1
- data/app/commands/decidim/admin/update_resource_permissions.rb +2 -2
- data/app/commands/decidim/admin/update_scope.rb +1 -1
- data/app/commands/decidim/admin/update_scope_type.rb +8 -3
- data/app/commands/decidim/admin/update_static_page.rb +1 -1
- data/app/commands/decidim/admin/update_static_page_topic.rb +1 -1
- data/app/commands/decidim/admin/update_user_groups.rb +1 -1
- data/app/commands/decidim/admin/verify_user_group.rb +1 -1
- data/app/controllers/concerns/decidim/admin/filterable.rb +1 -1
- data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +3 -1
- data/app/controllers/decidim/admin/application_controller.rb +1 -0
- data/app/controllers/decidim/admin/area_types_controller.rb +6 -3
- data/app/controllers/decidim/admin/block_user_controller.rb +3 -3
- data/app/controllers/decidim/admin/categories_controller.rb +3 -3
- data/app/controllers/decidim/admin/component_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/components/base_controller.rb +1 -0
- data/app/controllers/decidim/admin/components_controller.rb +1 -1
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +6 -3
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +6 -3
- data/app/controllers/decidim/admin/concerns/has_private_users_csv_import.rb +7 -0
- data/app/controllers/decidim/admin/dashboard_controller.rb +4 -3
- data/app/controllers/decidim/admin/exports_controller.rb +4 -1
- data/app/controllers/decidim/admin/help_sections_controller.rb +1 -1
- data/app/controllers/decidim/admin/metrics_controller.rb +2 -1
- data/app/controllers/decidim/admin/moderations_controller.rb +9 -7
- data/app/controllers/decidim/admin/newsletter_templates_controller.rb +1 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +3 -4
- data/app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb +1 -1
- data/app/controllers/decidim/admin/reminders_controller.rb +61 -0
- data/app/controllers/decidim/admin/resource_permissions_controller.rb +3 -3
- data/app/controllers/decidim/admin/scope_types_controller.rb +6 -3
- data/app/controllers/decidim/admin/static_pages_controller.rb +1 -7
- data/app/forms/decidim/admin/block_user_form.rb +2 -2
- data/app/forms/decidim/admin/category_form.rb +1 -2
- data/app/forms/decidim/admin/component_form.rb +16 -7
- data/app/forms/decidim/admin/import_example_form.rb +1 -5
- data/app/forms/decidim/admin/import_form.rb +7 -10
- data/app/forms/decidim/admin/managed_user_promotion_form.rb +1 -1
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +7 -4
- data/app/forms/decidim/admin/permission_form.rb +9 -8
- data/app/forms/decidim/admin/permissions_form.rb +1 -10
- data/app/forms/decidim/admin/user_group_csv_verification_form.rb +2 -2
- data/app/helpers/decidim/admin/bulk_actions_helper.rb +6 -5
- data/app/helpers/decidim/admin/moderations/reports_helper.rb +11 -2
- data/app/helpers/decidim/admin/reminders_helper.rb +12 -0
- data/app/helpers/decidim/admin/settings_helper.rb +11 -57
- data/app/models/decidim/admin/fake_newsletter.rb +0 -20
- data/app/packs/entrypoints/decidim_admin.js +3 -6
- data/app/packs/src/decidim/admin/admin_autocomplete.js +82 -0
- data/app/packs/src/decidim/admin/application.js +0 -16
- data/app/packs/src/decidim/admin/choose_language.js +9 -11
- data/app/packs/src/decidim/admin/dynamic_fields.component.js +0 -1
- data/app/packs/stylesheets/decidim/admin/_decidim.scss +0 -1
- data/app/packs/stylesheets/decidim/admin/modules/_autocomplete.scss +5 -0
- data/app/packs/stylesheets/decidim/admin/modules/_forms.scss +0 -6
- data/app/packs/stylesheets/decidim/admin/modules/_import_result.scss +10 -0
- data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +3 -0
- data/app/packs/stylesheets/decidim/admin/modules/_upload_modal.scss +42 -0
- data/app/permissions/decidim/admin/permissions.rb +3 -32
- data/app/presenters/decidim/admin/dashboard_metric_charts_presenter.rb +3 -1
- data/app/queries/decidim/admin/active_users_counter.rb +1 -1
- data/app/queries/decidim/admin/newsletter_recipients.rb +2 -2
- data/app/queries/decidim/admin/user_filter.rb +1 -1
- data/app/queries/decidim/admin/user_groups_evaluation.rb +1 -1
- data/app/views/decidim/admin/attachments/index.html.erb +1 -0
- data/app/views/decidim/admin/categories/_form.html.erb +0 -4
- data/app/views/decidim/admin/categories/show.html.erb +1 -2
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/imports/new.html.erb +1 -1
- data/app/views/decidim/admin/moderated_users/index.html.erb +1 -1
- data/app/views/decidim/admin/moderations/index.html.erb +4 -8
- data/app/views/decidim/admin/moderations/reports/index.html.erb +1 -5
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +5 -4
- 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 +20 -1
- data/app/views/decidim/admin/reminders/new.html.erb +21 -0
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +6 -1
- data/app/views/decidim/admin/shared/_js-callout.html.erb +6 -0
- data/app/views/decidim/admin/users_statistics/_users_count.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_application.html.erb +2 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +28 -21
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +27 -21
- data/config/locales/cs.yml +41 -33
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +23 -18
- data/config/locales/el.yml +2 -5
- data/config/locales/en.yml +22 -17
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +25 -19
- data/config/locales/es-PY.yml +25 -19
- data/config/locales/es.yml +27 -21
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +12 -35
- data/config/locales/fi-plain.yml +26 -20
- data/config/locales/fi.yml +28 -22
- data/config/locales/fr-CA.yml +25 -19
- data/config/locales/fr.yml +39 -33
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +17 -4
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +16 -188
- data/config/locales/id-ID.yml +2 -7
- data/config/locales/is-IS.yml +3 -8
- data/config/locales/it.yml +8 -6
- data/config/locales/ja.yml +23 -18
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +2 -5
- data/config/locales/lt.yml +13 -141
- data/config/locales/lv.yml +2 -4
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +4 -67
- data/config/locales/no.yml +13 -10
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +21 -6
- data/config/locales/pt-BR.yml +4 -7
- data/config/locales/pt.yml +2 -5
- data/config/locales/ro-RO.yml +12 -27
- data/config/locales/ru.yml +2 -7
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +2 -4
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -10
- data/config/locales/sv.yml +24 -18
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +2 -5
- data/config/locales/uk.yml +2 -6
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +2 -4
- data/config/locales/zh-TW.yml +1 -0
- data/lib/decidim/admin/engine.rb +1 -12
- data/lib/decidim/admin/import/importer.rb +9 -7
- data/lib/decidim/admin/import/readers/json.rb +1 -1
- data/lib/decidim/admin/test/commands/create_attachment_collection_examples.rb +15 -2
- data/lib/decidim/admin/test/commands/create_category_examples.rb +16 -6
- data/lib/decidim/admin/test/commands/destroy_category_examples.rb +29 -1
- data/lib/decidim/admin/test/commands/update_attachment_collection_examples.rb +15 -2
- data/lib/decidim/admin/test/commands/update_category_examples.rb +16 -6
- data/lib/decidim/admin/test/filters_participatory_space_user_roles_examples.rb +4 -4
- data/lib/decidim/admin/test/filters_participatory_space_users_examples.rb +4 -4
- data/lib/decidim/admin/test/forms/category_form_examples.rb +1 -21
- data/lib/decidim/admin/test/manage_attachments_examples.rb +9 -2
- data/lib/decidim/admin/test/manage_categories_examples.rb +0 -10
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +0 -2
- data/lib/decidim/admin/test/manage_moderations_examples.rb +27 -79
- data/lib/decidim/admin/version.rb +1 -1
- metadata +22 -19
- data/app/packs/src/decidim/admin/autocomplete.component.js +0 -146
- data/app/packs/src/decidim/admin/autocomplete.component.test.js +0 -19
- data/app/packs/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +0 -19
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
data/config/locales/sk.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
sk:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -264,7 +265,6 @@ sk:
|
|
|
264
265
|
dashboard:
|
|
265
266
|
show:
|
|
266
267
|
view_more_logs: Zobraziť viac logov
|
|
267
|
-
welcome: Vitajte v Administrátorskom Paneli Decidim.
|
|
268
268
|
exports:
|
|
269
269
|
export_as: "%{name} ako %{export_format}"
|
|
270
270
|
notice: Váš export práve prebieha. Obdržíte e-mail po dokončení.
|
|
@@ -688,7 +688,6 @@ sk:
|
|
|
688
688
|
static_pages: Stránky
|
|
689
689
|
statistics: Aktivita
|
|
690
690
|
user_groups: Skupiny
|
|
691
|
-
users: Účastníci
|
|
692
691
|
user_group:
|
|
693
692
|
csv_verify:
|
|
694
693
|
invalid: Vyskytol sa problém s čítaním súboru CSV.
|
|
@@ -724,7 +723,6 @@ sk:
|
|
|
724
723
|
role: Rola
|
|
725
724
|
new:
|
|
726
725
|
create: Pozvať
|
|
727
|
-
title: Pozvať účastníka ako administrátora
|
|
728
726
|
users_statistics:
|
|
729
727
|
users_count:
|
|
730
728
|
admins: Administrátori
|
|
@@ -756,10 +754,10 @@ sk:
|
|
|
756
754
|
models:
|
|
757
755
|
moderation:
|
|
758
756
|
fields:
|
|
759
|
-
created_at: Dátum vytvorenia
|
|
760
757
|
hidden_at: Skryté
|
|
761
758
|
report_count: Počet
|
|
762
759
|
reported_content_url: Nahlásiť URL obsahu
|
|
760
|
+
reports: Nahlásenia
|
|
763
761
|
visit_url: Navštíviť URL
|
|
764
762
|
errors:
|
|
765
763
|
messages:
|
data/config/locales/sl.yml
CHANGED
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
sr:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -264,7 +265,6 @@ sr:
|
|
|
264
265
|
dashboard:
|
|
265
266
|
show:
|
|
266
267
|
view_more_logs: Pogledaj još zapisa iz evidencije
|
|
267
|
-
welcome: Dobrošli u Decidim Admin Panel.
|
|
268
268
|
exports:
|
|
269
269
|
export_as: "%{name} kao %{export_format}"
|
|
270
270
|
notice: Vaš prenos podataka je u toku. Dobićete e-mail poruku kada bude završen.
|
|
@@ -556,9 +556,6 @@ sr:
|
|
|
556
556
|
images:
|
|
557
557
|
preview: Pregled
|
|
558
558
|
omnipresent_banner_appearance_title: Izmeni sveprisutni baner
|
|
559
|
-
organization_homepage_content_blocks:
|
|
560
|
-
edit:
|
|
561
|
-
update: Ažuriraj
|
|
562
559
|
shared:
|
|
563
560
|
gallery:
|
|
564
561
|
add_images: Dodaj slike
|
|
@@ -567,15 +564,9 @@ sr:
|
|
|
567
564
|
titles:
|
|
568
565
|
metrics: Metrika
|
|
569
566
|
statistics: Aktivnost
|
|
570
|
-
users: Učesnici
|
|
571
567
|
users_statistics:
|
|
572
568
|
users_count:
|
|
573
569
|
last_day: Poslednji dan
|
|
574
570
|
last_month: Poslednji mesec
|
|
575
571
|
last_week: Poslednje nedelje
|
|
576
572
|
no_users_count_statistics_yet: Još nema statistike o broju korisnika
|
|
577
|
-
moderations:
|
|
578
|
-
models:
|
|
579
|
-
moderation:
|
|
580
|
-
fields:
|
|
581
|
-
created_at: Datum kreiranja
|
data/config/locales/sv.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
sv:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -14,24 +15,17 @@ sv:
|
|
|
14
15
|
description: Beskrivning
|
|
15
16
|
file: Fil
|
|
16
17
|
title: Bilaga eller bildnamn
|
|
17
|
-
weight: Ordning
|
|
18
18
|
attachment_collection:
|
|
19
19
|
description: Beskrivning
|
|
20
20
|
name: Namn
|
|
21
|
-
weight: Ordning
|
|
22
21
|
category:
|
|
23
22
|
description: Beskrivning
|
|
24
23
|
name: Namn
|
|
25
24
|
parent_id: Överordnad
|
|
26
|
-
weight: Ordning
|
|
27
25
|
component:
|
|
28
26
|
name: Namn
|
|
29
27
|
published_at: Publicerad
|
|
30
|
-
weight:
|
|
31
|
-
external_domain:
|
|
32
|
-
value: Värde
|
|
33
|
-
help_section:
|
|
34
|
-
content: Innehåll
|
|
28
|
+
weight: Vikt
|
|
35
29
|
id: ID
|
|
36
30
|
import:
|
|
37
31
|
user_group_id: Skapa import som
|
|
@@ -99,9 +93,6 @@ sv:
|
|
|
99
93
|
welcome_notification_body: Välkomstmeddelandets brödtext
|
|
100
94
|
welcome_notification_subject: Välkomstmeddelandets ämnesrad
|
|
101
95
|
youtube_handler: YouTube-hanterare
|
|
102
|
-
participatory_space_private_user:
|
|
103
|
-
email: E-post
|
|
104
|
-
name: Namn
|
|
105
96
|
scope:
|
|
106
97
|
code: Kod
|
|
107
98
|
name: Namn
|
|
@@ -123,13 +114,12 @@ sv:
|
|
|
123
114
|
show_in_footer: Visa i sidfoten
|
|
124
115
|
slug: URL slug
|
|
125
116
|
title: Titel
|
|
126
|
-
|
|
127
|
-
weight: Ordning
|
|
117
|
+
weight: Vikt
|
|
128
118
|
static_page_topic:
|
|
129
119
|
description: Beskrivning
|
|
130
120
|
show_in_footer: Visa i sidfoten
|
|
131
121
|
title: Titel
|
|
132
|
-
weight:
|
|
122
|
+
weight: Vikt
|
|
133
123
|
user_group_csv_verification:
|
|
134
124
|
file: Fil
|
|
135
125
|
errors:
|
|
@@ -271,6 +261,8 @@ sv:
|
|
|
271
261
|
update:
|
|
272
262
|
error: Det gick inte att uppdatera bilagan.
|
|
273
263
|
success: Bilagan har uppdaterats.
|
|
264
|
+
attachments_privacy_warning:
|
|
265
|
+
message: Var försiktig när du arbetar med bilagor i ett privat utrymme. En deltagare skulle kunna dela detta dokument utanför plattformen.
|
|
274
266
|
autocomplete:
|
|
275
267
|
no_results: Hittade inga resultat
|
|
276
268
|
search_prompt: Sök genom att skriva minst tre tecken
|
|
@@ -353,7 +345,7 @@ sv:
|
|
|
353
345
|
dashboard:
|
|
354
346
|
show:
|
|
355
347
|
view_more_logs: Visa fler loggar
|
|
356
|
-
welcome: Välkommen till
|
|
348
|
+
welcome: Välkommen till Adminpanelen.
|
|
357
349
|
domain_whitelist:
|
|
358
350
|
form:
|
|
359
351
|
domain_too_short: Domänen är för kort
|
|
@@ -846,9 +838,23 @@ sv:
|
|
|
846
838
|
invalid: Det gick inte att läsa CSV-filen.
|
|
847
839
|
success: CSV-filen har skickats in och vi skickar inbjudningar via e-brev till deltagarna. Det kan ta en stund.
|
|
848
840
|
new:
|
|
841
|
+
destroy:
|
|
842
|
+
button: Radera alla privata deltagare
|
|
843
|
+
confirm: Är du säker på att du vill radera alla privata deltagare? Den här åtgärden kan inte ångras.
|
|
844
|
+
empty: Det finns inga privata deltagare.
|
|
845
|
+
explanation: Det finns %{count} privata deltagare.
|
|
846
|
+
title: Radera privata deltagare
|
|
849
847
|
explanation: 'Skicka in din CSV-fil. Den måste ha två kolumner över de användare som du vill lägga till deltagarutrymmet, utan rubriker, med e-postadressen i den första kolumnen i filen och namnet i den sista kolumnen i filen (e-post, namn). Undvik olämpliga karaktärer som `<>?%&^*#@()[]=+:;"{}\|` i användarnamn.'
|
|
850
848
|
title: Skicka CSV-fil
|
|
851
849
|
upload: Skicka
|
|
850
|
+
reminders:
|
|
851
|
+
create:
|
|
852
|
+
error: Det gick inte att skapa påminnelser.
|
|
853
|
+
success:
|
|
854
|
+
one: "%{count} användare kommer påminnas."
|
|
855
|
+
other: "%{count} användare kommer påminnas."
|
|
856
|
+
new:
|
|
857
|
+
submit: Skicka
|
|
852
858
|
resource_permissions:
|
|
853
859
|
edit:
|
|
854
860
|
submit: Skicka in
|
|
@@ -906,6 +912,7 @@ sv:
|
|
|
906
912
|
gallery:
|
|
907
913
|
add_images: Lägg till bilder
|
|
908
914
|
delete_image: Ta bort bild
|
|
915
|
+
edit_images: Redigera bilder
|
|
909
916
|
gallery_legend: Lägg till ett bildgalleri (Frivilligt)
|
|
910
917
|
static_page_topics:
|
|
911
918
|
create:
|
|
@@ -966,7 +973,7 @@ sv:
|
|
|
966
973
|
static_pages: Sidor
|
|
967
974
|
statistics: Aktivitet
|
|
968
975
|
user_groups: Grupper
|
|
969
|
-
users:
|
|
976
|
+
users: Administratörer
|
|
970
977
|
user_group:
|
|
971
978
|
csv_verify:
|
|
972
979
|
invalid: Det gick inte att läsa CSV-filen.
|
|
@@ -1002,7 +1009,7 @@ sv:
|
|
|
1002
1009
|
role: Roll
|
|
1003
1010
|
new:
|
|
1004
1011
|
create: Bjud in
|
|
1005
|
-
title: Bjud in
|
|
1012
|
+
title: Bjud in ny administratör
|
|
1006
1013
|
users_statistics:
|
|
1007
1014
|
users_count:
|
|
1008
1015
|
admins: Administratörer
|
|
@@ -1050,7 +1057,6 @@ sv:
|
|
|
1050
1057
|
moderation:
|
|
1051
1058
|
fields:
|
|
1052
1059
|
created_at: Skapandedatum
|
|
1053
|
-
deleted_resource: Borttagen resurs
|
|
1054
1060
|
hidden_at: Dold
|
|
1055
1061
|
participatory_space: Deltagarutrymme
|
|
1056
1062
|
report_count: Antal
|
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
tr:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -77,8 +78,6 @@ tr:
|
|
|
77
78
|
welcome_notification_body: Karşılama bildirimi gövdesi
|
|
78
79
|
welcome_notification_subject: Karşılama bildirimi konusu
|
|
79
80
|
youtube_handler: YouTube işleyici
|
|
80
|
-
participatory_space_private_user:
|
|
81
|
-
name: Adı
|
|
82
81
|
scope:
|
|
83
82
|
code: kod
|
|
84
83
|
name: isim
|
|
@@ -145,6 +144,7 @@ tr:
|
|
|
145
144
|
error: Yönetici kullanım şartlarını kabul ederken bir hata oluştu.
|
|
146
145
|
success: Harika! Yönetici kullanım şartlarını kabul ettiniz.
|
|
147
146
|
actions:
|
|
147
|
+
accept: Aşağıdaki şartları kabul ediyorum
|
|
148
148
|
refuse: Yönetici şartlarını reddedin
|
|
149
149
|
title: Kullanım şartlarını ve koşullarını kabul edin
|
|
150
150
|
required_review:
|
|
@@ -297,7 +297,6 @@ tr:
|
|
|
297
297
|
dashboard:
|
|
298
298
|
show:
|
|
299
299
|
view_more_logs: Daha fazla günlükleri görüntüle
|
|
300
|
-
welcome: Decidim Yönetici Paneline hoş geldiniz.
|
|
301
300
|
exports:
|
|
302
301
|
export_as: "%{name} olarak %{export_format}"
|
|
303
302
|
formats:
|
|
@@ -802,7 +801,6 @@ tr:
|
|
|
802
801
|
static_pages: Sayfalar
|
|
803
802
|
statistics: Aktivite
|
|
804
803
|
user_groups: Kullanıcı Grupları
|
|
805
|
-
users: Katılımcılar
|
|
806
804
|
user_group:
|
|
807
805
|
csv_verify:
|
|
808
806
|
invalid: CSV dosyasını okurken bir hata oluştu.
|
|
@@ -838,7 +836,6 @@ tr:
|
|
|
838
836
|
role: Rol
|
|
839
837
|
new:
|
|
840
838
|
create: Davet et
|
|
841
|
-
title: Kullanıcıyı yönetici olarak davet et
|
|
842
839
|
users_statistics:
|
|
843
840
|
users_count:
|
|
844
841
|
admins: Yöneticiler
|
data/config/locales/uk.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
uk:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -223,7 +224,6 @@ uk:
|
|
|
223
224
|
dashboard:
|
|
224
225
|
show:
|
|
225
226
|
view_more_logs: Переглянути інші журнали
|
|
226
|
-
welcome: Ласкаво просимо до адмін-панелі Десідім!
|
|
227
227
|
exports:
|
|
228
228
|
export_as: "%{name} як %{export_format}"
|
|
229
229
|
notice: Зараз відбувається збереження у вигляді файлу. Ви отримаєте електронного листа після його завершення.
|
|
@@ -457,9 +457,6 @@ uk:
|
|
|
457
457
|
edit:
|
|
458
458
|
active_content_blocks: Блоки діючого вмісту
|
|
459
459
|
inactive_content_blocks: Блоки недіючого вмісту
|
|
460
|
-
organization_homepage_content_blocks:
|
|
461
|
-
edit:
|
|
462
|
-
update: Оновити
|
|
463
460
|
participatory_space_private_users:
|
|
464
461
|
create:
|
|
465
462
|
error: При спробі додати приватного учасника до цього простору співучасті сталася помилка.
|
|
@@ -560,7 +557,6 @@ uk:
|
|
|
560
557
|
role: Роль
|
|
561
558
|
new:
|
|
562
559
|
create: Запросити
|
|
563
|
-
title: Запросити учасника в якості адміністратора
|
|
564
560
|
users_statistics:
|
|
565
561
|
users_count:
|
|
566
562
|
admins: Адміністратори
|
|
@@ -582,10 +578,10 @@ uk:
|
|
|
582
578
|
models:
|
|
583
579
|
moderation:
|
|
584
580
|
fields:
|
|
585
|
-
created_at: Дата створення
|
|
586
581
|
hidden_at: 'Приховано:'
|
|
587
582
|
report_count: Кількість
|
|
588
583
|
reported_content_url: Веб-адреса оскарженого вмісту
|
|
584
|
+
reports: Скарги
|
|
589
585
|
visit_url: Відвідайте веб-адресу
|
|
590
586
|
errors:
|
|
591
587
|
messages:
|
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
zh-CN:
|
|
2
3
|
activemodel:
|
|
3
4
|
attributes:
|
|
@@ -273,7 +274,6 @@ zh-CN:
|
|
|
273
274
|
dashboard:
|
|
274
275
|
show:
|
|
275
276
|
view_more_logs: 查看更多日志
|
|
276
|
-
welcome: 欢迎来到Decidim管理面板
|
|
277
277
|
exports:
|
|
278
278
|
export_as: "%{name} 为 %{export_format}"
|
|
279
279
|
formats:
|
|
@@ -731,7 +731,6 @@ zh-CN:
|
|
|
731
731
|
static_pages: 页 次
|
|
732
732
|
statistics: 活动
|
|
733
733
|
user_groups: 群組
|
|
734
|
-
users: 参加者
|
|
735
734
|
user_group:
|
|
736
735
|
csv_verify:
|
|
737
736
|
invalid: 读取CSV文件时出现问题。
|
|
@@ -767,7 +766,6 @@ zh-CN:
|
|
|
767
766
|
role: 作用
|
|
768
767
|
new:
|
|
769
768
|
create: 邀请
|
|
770
|
-
title: 邀请参与者作为管理员
|
|
771
769
|
users_statistics:
|
|
772
770
|
users_count:
|
|
773
771
|
admins: 管理员
|
|
@@ -799,10 +797,10 @@ zh-CN:
|
|
|
799
797
|
models:
|
|
800
798
|
moderation:
|
|
801
799
|
fields:
|
|
802
|
-
created_at: 创建日期
|
|
803
800
|
hidden_at: 隐藏于
|
|
804
801
|
report_count: 计数
|
|
805
802
|
reported_content_url: 报告的内容 URL
|
|
803
|
+
reports: 报告
|
|
806
804
|
visit_url: 访问 URL
|
|
807
805
|
errors:
|
|
808
806
|
messages:
|
data/config/locales/zh-TW.yml
CHANGED
data/lib/decidim/admin/engine.rb
CHANGED
|
@@ -7,7 +7,6 @@ require "devise"
|
|
|
7
7
|
require "devise-i18n"
|
|
8
8
|
require "decidim/core"
|
|
9
9
|
require "foundation_rails_helper"
|
|
10
|
-
require "rectify"
|
|
11
10
|
require "doorkeeper"
|
|
12
11
|
require "doorkeeper-i18n"
|
|
13
12
|
require "hashdiff"
|
|
@@ -174,10 +173,7 @@ module Decidim
|
|
|
174
173
|
decidim_admin.root_path,
|
|
175
174
|
icon_name: "dashboard",
|
|
176
175
|
position: 1,
|
|
177
|
-
active: [
|
|
178
|
-
decidim/admin/dashboard
|
|
179
|
-
decidim/admin/metrics
|
|
180
|
-
), []]
|
|
176
|
+
active: ["decidim/admin/dashboard" => :show]
|
|
181
177
|
|
|
182
178
|
menu.add_item :moderations,
|
|
183
179
|
I18n.t("menu.moderation", scope: "decidim.admin"),
|
|
@@ -212,15 +208,10 @@ module Decidim
|
|
|
212
208
|
decidim/admin/user_groups_csv_verifications
|
|
213
209
|
decidim/admin/officializations
|
|
214
210
|
decidim/admin/impersonatable_users
|
|
215
|
-
decidim/admin/conflicts
|
|
216
211
|
decidim/admin/moderated_users
|
|
217
212
|
decidim/admin/managed_users/impersonation_logs
|
|
218
213
|
decidim/admin/managed_users/promotions
|
|
219
214
|
decidim/admin/authorization_workflows
|
|
220
|
-
decidim/verifications/id_documents/admin/pending_authorizations
|
|
221
|
-
decidim/verifications/id_documents/admin/config
|
|
222
|
-
decidim/verifications/postal_letter/admin/pending_authorizations
|
|
223
|
-
decidim/verifications/csv_census/admin/census
|
|
224
215
|
), []],
|
|
225
216
|
if: allowed_to?(:read, :admin_user) || allowed_to?(:read, :managed_user)
|
|
226
217
|
|
|
@@ -247,8 +238,6 @@ module Decidim
|
|
|
247
238
|
decidim/admin/scopes
|
|
248
239
|
decidim/admin/scope_types
|
|
249
240
|
decidim/admin/areas decidim/admin/area_types
|
|
250
|
-
decidim/admin/help_sections
|
|
251
|
-
decidim/admin/organization_external_domain_whitelist
|
|
252
241
|
),
|
|
253
242
|
[]
|
|
254
243
|
],
|
|
@@ -10,6 +10,8 @@ module Decidim
|
|
|
10
10
|
# You can also use the ImporterFactory class to create an Importer
|
|
11
11
|
# instance.
|
|
12
12
|
class Importer
|
|
13
|
+
include Decidim::ProcessesFileLocally
|
|
14
|
+
|
|
13
15
|
delegate :errors, to: :verifier
|
|
14
16
|
|
|
15
17
|
# Public: Initializes an Importer.
|
|
@@ -72,15 +74,15 @@ module Decidim
|
|
|
72
74
|
return @collection_data if @collection_data
|
|
73
75
|
|
|
74
76
|
@collection_data = []
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
rowdata.each_with_index.
|
|
77
|
+
process_file_locally(file) do |file_path|
|
|
78
|
+
reader.new(file_path).read_rows do |rowdata, index|
|
|
79
|
+
if index.zero?
|
|
80
|
+
@data_headers = rowdata.map { |d| d.to_s.to_sym }
|
|
81
|
+
else
|
|
82
|
+
@collection_data << rowdata.each_with_index.to_h do |val, ind|
|
|
81
83
|
[@data_headers[ind], val]
|
|
82
84
|
end
|
|
83
|
-
|
|
85
|
+
end
|
|
84
86
|
end
|
|
85
87
|
end
|
|
86
88
|
|
|
@@ -7,6 +7,7 @@ module Decidim
|
|
|
7
7
|
shared_examples_for "CreateAttachmentCollection command" do
|
|
8
8
|
describe "call" do
|
|
9
9
|
let(:organization) { create(:organization) }
|
|
10
|
+
let(:user) { create(:user, organization: organization) }
|
|
10
11
|
let(:form_params) do
|
|
11
12
|
{
|
|
12
13
|
"attachment_collection" => {
|
|
@@ -27,11 +28,11 @@ module Decidim
|
|
|
27
28
|
current_organization: organization
|
|
28
29
|
)
|
|
29
30
|
end
|
|
30
|
-
let(:command) { described_class.new(form, collection_for) }
|
|
31
|
+
let(:command) { described_class.new(form, collection_for, user) }
|
|
31
32
|
|
|
32
33
|
describe "when the form is not valid" do
|
|
33
34
|
before do
|
|
34
|
-
|
|
35
|
+
allow(form).to receive(:invalid?).and_return(true)
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
it "broadcasts invalid" do
|
|
@@ -55,6 +56,18 @@ module Decidim
|
|
|
55
56
|
command.call
|
|
56
57
|
end.to change(collection_for.attachment_collections, :count).by(1)
|
|
57
58
|
end
|
|
59
|
+
|
|
60
|
+
it "traces the action", versioning: true do
|
|
61
|
+
expect(Decidim.traceability)
|
|
62
|
+
.to receive(:perform_action!)
|
|
63
|
+
.with(:create, Decidim::AttachmentCollection, user, {})
|
|
64
|
+
.and_call_original
|
|
65
|
+
|
|
66
|
+
expect { command.call }.to change(Decidim::ActionLog, :count)
|
|
67
|
+
action_log = Decidim::ActionLog.last
|
|
68
|
+
expect(action_log.action).to eq("create")
|
|
69
|
+
expect(action_log.version).to be_present
|
|
70
|
+
end
|
|
58
71
|
end
|
|
59
72
|
end
|
|
60
73
|
end
|
|
@@ -7,15 +7,13 @@ module Decidim
|
|
|
7
7
|
shared_examples_for "CreateCategory command" do
|
|
8
8
|
describe "call" do
|
|
9
9
|
let(:organization) { create(:organization) }
|
|
10
|
+
let(:user) { create(:user, organization: organization) }
|
|
10
11
|
let(:form_params) do
|
|
11
12
|
{
|
|
12
13
|
"category" => {
|
|
13
14
|
"name_en" => Decidim::Faker::Localized.paragraph(sentence_count: 3),
|
|
14
15
|
"name_es" => Decidim::Faker::Localized.paragraph(sentence_count: 3),
|
|
15
|
-
"name_ca" => Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
|
16
|
-
"description_en" => Decidim::Faker::Localized.paragraph(sentence_count: 3),
|
|
17
|
-
"description_es" => Decidim::Faker::Localized.paragraph(sentence_count: 3),
|
|
18
|
-
"description_ca" => Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
|
16
|
+
"name_ca" => Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
end
|
|
@@ -27,11 +25,11 @@ module Decidim
|
|
|
27
25
|
current_organization: organization
|
|
28
26
|
)
|
|
29
27
|
end
|
|
30
|
-
let(:command) { described_class.new(form, participatory_space) }
|
|
28
|
+
let(:command) { described_class.new(form, participatory_space, user) }
|
|
31
29
|
|
|
32
30
|
describe "when the form is not valid" do
|
|
33
31
|
before do
|
|
34
|
-
|
|
32
|
+
allow(form).to receive(:invalid?).and_return(true)
|
|
35
33
|
end
|
|
36
34
|
|
|
37
35
|
it "broadcasts invalid" do
|
|
@@ -55,6 +53,18 @@ module Decidim
|
|
|
55
53
|
command.call
|
|
56
54
|
end.to change(participatory_space.categories, :count).by(1)
|
|
57
55
|
end
|
|
56
|
+
|
|
57
|
+
it "traces the action", versioning: true do
|
|
58
|
+
expect(Decidim.traceability)
|
|
59
|
+
.to receive(:perform_action!)
|
|
60
|
+
.with(:create, Decidim::Category, user, {})
|
|
61
|
+
.and_call_original
|
|
62
|
+
|
|
63
|
+
expect { command.call }.to change(Decidim::ActionLog, :count)
|
|
64
|
+
action_log = Decidim::ActionLog.last
|
|
65
|
+
expect(action_log.action).to eq("create")
|
|
66
|
+
expect(action_log.version).to be_present
|
|
67
|
+
end
|
|
58
68
|
end
|
|
59
69
|
end
|
|
60
70
|
end
|
|
@@ -7,8 +7,9 @@ module Decidim
|
|
|
7
7
|
shared_examples_for "DestroyCategory command" do
|
|
8
8
|
describe "call" do
|
|
9
9
|
let(:organization) { create(:organization) }
|
|
10
|
+
let(:user) { create(:user, organization: organization) }
|
|
10
11
|
let(:category) { create(:category, participatory_space: participatory_space) }
|
|
11
|
-
let(:command) { described_class.new(category) }
|
|
12
|
+
let(:command) { described_class.new(category, user) }
|
|
12
13
|
|
|
13
14
|
describe "when the category is not present" do
|
|
14
15
|
let(:category) { nil }
|
|
@@ -28,6 +29,21 @@ module Decidim
|
|
|
28
29
|
end
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
context "when the category is a subcategory" do
|
|
33
|
+
let!(:parent_category) { create :category, participatory_space: participatory_space }
|
|
34
|
+
|
|
35
|
+
before do
|
|
36
|
+
category.parent = parent_category
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it "destroy the category" do
|
|
40
|
+
category
|
|
41
|
+
expect do
|
|
42
|
+
command.call
|
|
43
|
+
end.to change(Category, :count).by(-1)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
31
47
|
describe "when the data is valid" do
|
|
32
48
|
it "broadcasts ok" do
|
|
33
49
|
expect { command.call }.to broadcast(:ok)
|
|
@@ -39,6 +55,18 @@ module Decidim
|
|
|
39
55
|
command.call
|
|
40
56
|
end.to change(Category, :count).by(-1)
|
|
41
57
|
end
|
|
58
|
+
|
|
59
|
+
it "traces the action", versioning: true do
|
|
60
|
+
expect(Decidim.traceability)
|
|
61
|
+
.to receive(:perform_action!)
|
|
62
|
+
.with(:delete, category, user)
|
|
63
|
+
.and_call_original
|
|
64
|
+
|
|
65
|
+
expect { command.call }.to change(Decidim::ActionLog, :count)
|
|
66
|
+
action_log = Decidim::ActionLog.last
|
|
67
|
+
expect(action_log.action).to eq("delete")
|
|
68
|
+
expect(action_log.version).to be_present
|
|
69
|
+
end
|
|
42
70
|
end
|
|
43
71
|
end
|
|
44
72
|
end
|
|
@@ -7,6 +7,7 @@ module Decidim
|
|
|
7
7
|
shared_examples_for "UpdateAttachmentCollection command" do
|
|
8
8
|
describe "call" do
|
|
9
9
|
let(:organization) { create(:organization) }
|
|
10
|
+
let(:user) { create(:user, organization: organization) }
|
|
10
11
|
let(:attachment_collection) { create(:attachment_collection, collection_for: collection_for) }
|
|
11
12
|
let(:form_params) do
|
|
12
13
|
{
|
|
@@ -28,11 +29,11 @@ module Decidim
|
|
|
28
29
|
current_organization: organization
|
|
29
30
|
)
|
|
30
31
|
end
|
|
31
|
-
let(:command) { described_class.new(attachment_collection, form) }
|
|
32
|
+
let(:command) { described_class.new(attachment_collection, form, user) }
|
|
32
33
|
|
|
33
34
|
describe "when the form is not valid" do
|
|
34
35
|
before do
|
|
35
|
-
|
|
36
|
+
allow(form).to receive(:invalid?).and_return(true)
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
it "broadcasts invalid" do
|
|
@@ -58,6 +59,18 @@ module Decidim
|
|
|
58
59
|
|
|
59
60
|
expect(translated(attachment_collection.name)).to eq("New title")
|
|
60
61
|
end
|
|
62
|
+
|
|
63
|
+
it "traces the action", versioning: true do
|
|
64
|
+
expect(Decidim.traceability)
|
|
65
|
+
.to receive(:perform_action!)
|
|
66
|
+
.with(:update, Decidim::AttachmentCollection, user, {})
|
|
67
|
+
.and_call_original
|
|
68
|
+
|
|
69
|
+
expect { command.call }.to change(Decidim::ActionLog, :count)
|
|
70
|
+
action_log = Decidim::ActionLog.last
|
|
71
|
+
expect(action_log.action).to eq("update")
|
|
72
|
+
expect(action_log.version).to be_present
|
|
73
|
+
end
|
|
61
74
|
end
|
|
62
75
|
end
|
|
63
76
|
end
|