decidim-admin 0.26.10 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- 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 +3 -8
- 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 +2 -2
- 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/concerns/decidim/moderations/admin/filterable.rb +0 -4
- data/app/controllers/decidim/admin/admin_terms_controller.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +1 -2
- 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_page_topics_controller.rb +3 -1
- 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/draggable-list.js +1 -1
- 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/extra/_quill.scss +0 -7
- 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 +4 -46
- 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/area_types/edit.html.erb +0 -1
- data/app/views/decidim/admin/area_types/index.html.erb +0 -1
- data/app/views/decidim/admin/area_types/new.html.erb +0 -1
- data/app/views/decidim/admin/areas/edit.html.erb +0 -1
- data/app/views/decidim/admin/areas/index.html.erb +0 -1
- data/app/views/decidim/admin/areas/new.html.erb +0 -1
- data/app/views/decidim/admin/attachment_collections/edit.html.erb +0 -1
- data/app/views/decidim/admin/attachment_collections/index.html.erb +0 -1
- data/app/views/decidim/admin/attachment_collections/new.html.erb +0 -1
- data/app/views/decidim/admin/attachments/edit.html.erb +0 -1
- data/app/views/decidim/admin/attachments/index.html.erb +1 -1
- data/app/views/decidim/admin/attachments/new.html.erb +0 -1
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +0 -1
- data/app/views/decidim/admin/categories/_form.html.erb +0 -4
- data/app/views/decidim/admin/categories/edit.html.erb +0 -1
- data/app/views/decidim/admin/categories/index.html.erb +0 -1
- data/app/views/decidim/admin/categories/new.html.erb +0 -1
- data/app/views/decidim/admin/categories/show.html.erb +1 -2
- data/app/views/decidim/admin/components/_component.html.erb +41 -3
- data/app/views/decidim/admin/components/edit.html.erb +0 -1
- data/app/views/decidim/admin/components/index.html.erb +0 -1
- data/app/views/decidim/admin/components/new.html.erb +1 -1
- data/app/views/decidim/admin/conflicts/index.html.erb +0 -1
- data/app/views/decidim/admin/dashboard/show.html.erb +1 -1
- data/app/views/decidim/admin/help_sections/show.erb +0 -1
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +0 -1
- data/app/views/decidim/admin/impersonations/new.html.erb +0 -1
- data/app/views/decidim/admin/imports/new.html.erb +1 -1
- data/app/views/decidim/admin/logs/index.html.erb +0 -1
- data/app/views/decidim/admin/moderated_users/index.html.erb +1 -2
- data/app/views/decidim/admin/moderations/index.html.erb +4 -9
- data/app/views/decidim/admin/moderations/reports/index.html.erb +1 -5
- data/app/views/decidim/admin/newsletter_templates/index.html.erb +0 -1
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +0 -1
- data/app/views/decidim/admin/newsletters/index.html.erb +0 -1
- data/app/views/decidim/admin/newsletters/new.html.erb +0 -1
- data/app/views/decidim/admin/newsletters/show.html.erb +0 -1
- data/app/views/decidim/admin/officializations/index.html.erb +10 -15
- data/app/views/decidim/admin/officializations/new.html.erb +0 -1
- data/app/views/decidim/admin/organization/edit.html.erb +0 -1
- data/app/views/decidim/admin/organization_appearance/edit.html.erb +0 -1
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +5 -4
- data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +0 -1
- 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/scope_types/edit.html.erb +0 -1
- data/app/views/decidim/admin/scope_types/index.html.erb +0 -1
- data/app/views/decidim/admin/scope_types/new.html.erb +0 -1
- data/app/views/decidim/admin/scopes/edit.html.erb +0 -1
- data/app/views/decidim/admin/scopes/index.html.erb +0 -1
- data/app/views/decidim/admin/scopes/new.html.erb +0 -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/shared/landing_page_content_blocks/edit.html.erb +0 -1
- data/app/views/decidim/admin/static_page_topics/edit.html.erb +0 -1
- data/app/views/decidim/admin/static_page_topics/new.html.erb +0 -1
- data/app/views/decidim/admin/static_pages/_form.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/edit.html.erb +0 -1
- data/app/views/decidim/admin/static_pages/index.html.erb +0 -1
- data/app/views/decidim/admin/static_pages/new.html.erb +0 -1
- data/app/views/decidim/admin/user_groups/index.html.erb +0 -1
- data/app/views/decidim/admin/user_groups_csv_verifications/new.html.erb +0 -1
- data/app/views/decidim/admin/users/index.html.erb +0 -1
- data/app/views/decidim/admin/users/new.html.erb +0 -1
- 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/app/views/layouts/decidim/admin/global_moderations.html.erb +0 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +44 -38
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +39 -36
- data/config/locales/cs.yml +47 -42
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +52 -52
- data/config/locales/el.yml +14 -65
- data/config/locales/en.yml +25 -23
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +36 -33
- data/config/locales/es-PY.yml +36 -33
- data/config/locales/es.yml +39 -36
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +291 -324
- data/config/locales/fi-plain.yml +31 -28
- data/config/locales/fi.yml +36 -33
- data/config/locales/fr-CA.yml +35 -32
- data/config/locales/fr.yml +52 -49
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +33 -6
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +44 -222
- data/config/locales/id-ID.yml +10 -10
- data/config/locales/is-IS.yml +6 -9
- data/config/locales/it.yml +22 -6
- data/config/locales/ja.yml +39 -37
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +18 -7
- data/config/locales/lt.yml +21 -156
- data/config/locales/lv.yml +15 -4
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +19 -68
- data/config/locales/no.yml +27 -10
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +29 -25
- data/config/locales/pt-BR.yml +16 -85
- data/config/locales/pt.yml +19 -8
- data/config/locales/ro-RO.yml +32 -38
- data/config/locales/ru.yml +10 -9
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +15 -4
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +9 -20
- data/config/locales/sv.yml +39 -19
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +19 -11
- data/config/locales/uk.yml +10 -6
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +15 -4
- data/config/locales/zh-TW.yml +1 -1066
- data/config/routes.rb +0 -2
- data/lib/decidim/admin/engine.rb +1 -12
- data/lib/decidim/admin/form_builder.rb +2 -1
- 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/test.rb +0 -1
- data/lib/decidim/admin/version.rb +1 -1
- metadata +22 -34
- data/app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb +0 -78
- data/app/packs/src/decidim/admin/autocomplete.component.js +0 -144
- 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/app/views/decidim/admin/components/_actions.html.erb +0 -43
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -214
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -65
- data/config/locales/th-TH.yml +0 -1
- data/lib/decidim/admin/test/admin_participatory_space_access_examples.rb +0 -49
- data/lib/decidim/admin/test/needs_admin_tos_accepted_examples.rb +0 -9
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0.rc1
|
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:
|
13
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.27.0.rc1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.27.0.rc1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: devise
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,9 +75,6 @@ dependencies:
|
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '2.0'
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 2.0.9
|
81
78
|
type: :runtime
|
82
79
|
prerelease: false
|
83
80
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -85,37 +82,34 @@ dependencies:
|
|
85
82
|
- - "~>"
|
86
83
|
- !ruby/object:Gem::Version
|
87
84
|
version: '2.0'
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 2.0.9
|
91
85
|
- !ruby/object:Gem::Dependency
|
92
86
|
name: decidim-dev
|
93
87
|
requirement: !ruby/object:Gem::Requirement
|
94
88
|
requirements:
|
95
89
|
- - '='
|
96
90
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.
|
91
|
+
version: 0.27.0.rc1
|
98
92
|
type: :development
|
99
93
|
prerelease: false
|
100
94
|
version_requirements: !ruby/object:Gem::Requirement
|
101
95
|
requirements:
|
102
96
|
- - '='
|
103
97
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
98
|
+
version: 0.27.0.rc1
|
105
99
|
- !ruby/object:Gem::Dependency
|
106
100
|
name: decidim-participatory_processes
|
107
101
|
requirement: !ruby/object:Gem::Requirement
|
108
102
|
requirements:
|
109
103
|
- - '='
|
110
104
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
105
|
+
version: 0.27.0.rc1
|
112
106
|
type: :development
|
113
107
|
prerelease: false
|
114
108
|
version_requirements: !ruby/object:Gem::Requirement
|
115
109
|
requirements:
|
116
110
|
- - '='
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
112
|
+
version: 0.27.0.rc1
|
119
113
|
description: Organization administration to manage a single organization.
|
120
114
|
email:
|
121
115
|
- josepjaume@gmail.com
|
@@ -127,6 +121,8 @@ extra_rdoc_files: []
|
|
127
121
|
files:
|
128
122
|
- README.md
|
129
123
|
- Rakefile
|
124
|
+
- app/cells/decidim/admin/attachments_privacy_warning/show.erb
|
125
|
+
- app/cells/decidim/admin/attachments_privacy_warning_cell.rb
|
130
126
|
- app/cells/decidim/admin/content_block/show.erb
|
131
127
|
- app/cells/decidim/admin/content_block_cell.rb
|
132
128
|
- app/cells/decidim/admin/results_per_page/show.erb
|
@@ -202,7 +198,6 @@ files:
|
|
202
198
|
- app/controllers/concerns/decidim/admin/global_moderation_context.rb
|
203
199
|
- app/controllers/concerns/decidim/admin/landing_page.rb
|
204
200
|
- app/controllers/concerns/decidim/admin/landing_page_content_blocks.rb
|
205
|
-
- app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb
|
206
201
|
- app/controllers/concerns/decidim/admin/officializations/filterable.rb
|
207
202
|
- app/controllers/concerns/decidim/admin/paginable.rb
|
208
203
|
- app/controllers/concerns/decidim/admin/participatory_space_admin_context.rb
|
@@ -250,6 +245,7 @@ files:
|
|
250
245
|
- app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb
|
251
246
|
- app/controllers/decidim/admin/organization_homepage_content_blocks_controller.rb
|
252
247
|
- app/controllers/decidim/admin/organization_homepage_controller.rb
|
248
|
+
- app/controllers/decidim/admin/reminders_controller.rb
|
253
249
|
- app/controllers/decidim/admin/resource_permissions_controller.rb
|
254
250
|
- app/controllers/decidim/admin/scope_types_controller.rb
|
255
251
|
- app/controllers/decidim/admin/scopes_controller.rb
|
@@ -310,6 +306,7 @@ files:
|
|
310
306
|
- app/helpers/decidim/admin/moderations_helper.rb
|
311
307
|
- app/helpers/decidim/admin/newsletters_helper.rb
|
312
308
|
- app/helpers/decidim/admin/paginable/per_page_helper.rb
|
309
|
+
- app/helpers/decidim/admin/reminders_helper.rb
|
313
310
|
- app/helpers/decidim/admin/resource_permissions_helper.rb
|
314
311
|
- app/helpers/decidim/admin/resource_scope_helper.rb
|
315
312
|
- app/helpers/decidim/admin/scopes_helper.rb
|
@@ -327,11 +324,10 @@ files:
|
|
327
324
|
- app/models/decidim/admin/fake_newsletter.rb
|
328
325
|
- app/packs/entrypoints/decidim_admin.js
|
329
326
|
- app/packs/entrypoints/decidim_admin.scss
|
327
|
+
- app/packs/src/decidim/admin/admin_autocomplete.js
|
330
328
|
- app/packs/src/decidim/admin/application.js
|
331
329
|
- app/packs/src/decidim/admin/auto_buttons_by_position.component.js
|
332
330
|
- app/packs/src/decidim/admin/auto_label_by_position.component.js
|
333
|
-
- app/packs/src/decidim/admin/autocomplete.component.js
|
334
|
-
- app/packs/src/decidim/admin/autocomplete.component.test.js
|
335
331
|
- app/packs/src/decidim/admin/budget_rule_toggler.component.js
|
336
332
|
- app/packs/src/decidim/admin/choose_language.js
|
337
333
|
- app/packs/src/decidim/admin/draggable-list.js
|
@@ -358,7 +354,6 @@ files:
|
|
358
354
|
- app/packs/stylesheets/decidim/admin/application.scss
|
359
355
|
- app/packs/stylesheets/decidim/admin/bundle.scss
|
360
356
|
- app/packs/stylesheets/decidim/admin/components/_accordion.scss
|
361
|
-
- app/packs/stylesheets/decidim/admin/components/_autocomplete_select.component.scss
|
362
357
|
- app/packs/stylesheets/decidim/admin/components/_dropdown-menu.scss
|
363
358
|
- app/packs/stylesheets/decidim/admin/components/_sortable.scss
|
364
359
|
- app/packs/stylesheets/decidim/admin/extra/_action-icon.scss
|
@@ -380,6 +375,7 @@ files:
|
|
380
375
|
- app/packs/stylesheets/decidim/admin/extra/_title_bar.scss
|
381
376
|
- app/packs/stylesheets/decidim/admin/modules/_action-icon.scss
|
382
377
|
- app/packs/stylesheets/decidim/admin/modules/_agenda.scss
|
378
|
+
- app/packs/stylesheets/decidim/admin/modules/_autocomplete.scss
|
383
379
|
- app/packs/stylesheets/decidim/admin/modules/_buttons.scss
|
384
380
|
- app/packs/stylesheets/decidim/admin/modules/_callouts.scss
|
385
381
|
- app/packs/stylesheets/decidim/admin/modules/_card-grid.scss
|
@@ -391,6 +387,7 @@ files:
|
|
391
387
|
- app/packs/stylesheets/decidim/admin/modules/_filters.scss
|
392
388
|
- app/packs/stylesheets/decidim/admin/modules/_forms.scss
|
393
389
|
- app/packs/stylesheets/decidim/admin/modules/_icons.scss
|
390
|
+
- app/packs/stylesheets/decidim/admin/modules/_import_result.scss
|
394
391
|
- app/packs/stylesheets/decidim/admin/modules/_layout.scss
|
395
392
|
- app/packs/stylesheets/decidim/admin/modules/_loading-spinner.scss
|
396
393
|
- app/packs/stylesheets/decidim/admin/modules/_main-nav.scss
|
@@ -404,6 +401,7 @@ files:
|
|
404
401
|
- app/packs/stylesheets/decidim/admin/modules/_tabs.scss
|
405
402
|
- app/packs/stylesheets/decidim/admin/modules/_title-bar.scss
|
406
403
|
- app/packs/stylesheets/decidim/admin/modules/_typography.scss
|
404
|
+
- app/packs/stylesheets/decidim/admin/modules/_upload_modal.scss
|
407
405
|
- app/packs/stylesheets/decidim/admin/modules/_user-login.scss
|
408
406
|
- app/packs/stylesheets/decidim/admin/modules/_users_statistics.scss
|
409
407
|
- app/packs/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss
|
@@ -473,7 +471,6 @@ files:
|
|
473
471
|
- app/views/decidim/admin/categories/index.html.erb
|
474
472
|
- app/views/decidim/admin/categories/new.html.erb
|
475
473
|
- app/views/decidim/admin/categories/show.html.erb
|
476
|
-
- app/views/decidim/admin/components/_actions.html.erb
|
477
474
|
- app/views/decidim/admin/components/_component.html.erb
|
478
475
|
- app/views/decidim/admin/components/_form.html.erb
|
479
476
|
- app/views/decidim/admin/components/_settings_fields.html.erb
|
@@ -536,6 +533,7 @@ files:
|
|
536
533
|
- app/views/decidim/admin/participatory_space_private_users/index.html.erb
|
537
534
|
- app/views/decidim/admin/participatory_space_private_users/new.html.erb
|
538
535
|
- app/views/decidim/admin/participatory_space_private_users_csv_imports/new.html.erb
|
536
|
+
- app/views/decidim/admin/reminders/new.html.erb
|
539
537
|
- app/views/decidim/admin/resource_permissions/_options_form.html.erb
|
540
538
|
- app/views/decidim/admin/resource_permissions/edit.html.erb
|
541
539
|
- app/views/decidim/admin/scope_types/_form.html.erb
|
@@ -549,6 +547,7 @@ files:
|
|
549
547
|
- app/views/decidim/admin/share_tokens/_share_tokens.html.erb
|
550
548
|
- app/views/decidim/admin/shared/_filters.html.erb
|
551
549
|
- app/views/decidim/admin/shared/_gallery.html.erb
|
550
|
+
- app/views/decidim/admin/shared/_js-callout.html.erb
|
552
551
|
- app/views/decidim/admin/shared/landing_page/edit.html.erb
|
553
552
|
- app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb
|
554
553
|
- app/views/decidim/admin/static_page_topics/_form.html.erb
|
@@ -583,7 +582,6 @@ files:
|
|
583
582
|
- app/views/layouts/decidim/admin/users.html.erb
|
584
583
|
- config/assets.rb
|
585
584
|
- config/brakeman.ignore
|
586
|
-
- config/environment.rb
|
587
585
|
- config/locales/am-ET.yml
|
588
586
|
- config/locales/ar-SA.yml
|
589
587
|
- config/locales/ar.yml
|
@@ -606,7 +604,6 @@ files:
|
|
606
604
|
- config/locales/et-EE.yml
|
607
605
|
- config/locales/et.yml
|
608
606
|
- config/locales/eu.yml
|
609
|
-
- config/locales/fa-IR.yml
|
610
607
|
- config/locales/fi-pl.yml
|
611
608
|
- config/locales/fi-plain.yml
|
612
609
|
- config/locales/fi.yml
|
@@ -615,7 +612,6 @@ files:
|
|
615
612
|
- config/locales/fr.yml
|
616
613
|
- config/locales/ga-IE.yml
|
617
614
|
- config/locales/gl.yml
|
618
|
-
- config/locales/gn-PY.yml
|
619
615
|
- config/locales/hr-HR.yml
|
620
616
|
- config/locales/hr.yml
|
621
617
|
- config/locales/hu.yml
|
@@ -624,13 +620,10 @@ files:
|
|
624
620
|
- config/locales/is.yml
|
625
621
|
- config/locales/it.yml
|
626
622
|
- config/locales/ja.yml
|
627
|
-
- config/locales/ka-GE.yml
|
628
|
-
- config/locales/kaa.yml
|
629
623
|
- config/locales/ko-KR.yml
|
630
624
|
- config/locales/ko.yml
|
631
625
|
- config/locales/lb-LU.yml
|
632
626
|
- config/locales/lb.yml
|
633
|
-
- config/locales/lo-LA.yml
|
634
627
|
- config/locales/lt-LT.yml
|
635
628
|
- config/locales/lt.yml
|
636
629
|
- config/locales/lv.yml
|
@@ -638,7 +631,6 @@ files:
|
|
638
631
|
- config/locales/mt.yml
|
639
632
|
- config/locales/nl.yml
|
640
633
|
- config/locales/no.yml
|
641
|
-
- config/locales/oc-FR.yml
|
642
634
|
- config/locales/om-ET.yml
|
643
635
|
- config/locales/pl.yml
|
644
636
|
- config/locales/pt-BR.yml
|
@@ -650,11 +642,9 @@ files:
|
|
650
642
|
- config/locales/sk.yml
|
651
643
|
- config/locales/sl.yml
|
652
644
|
- config/locales/so-SO.yml
|
653
|
-
- config/locales/sq-AL.yml
|
654
645
|
- config/locales/sr-CS.yml
|
655
646
|
- config/locales/sv.yml
|
656
647
|
- config/locales/sw-KE.yml
|
657
|
-
- config/locales/th-TH.yml
|
658
648
|
- config/locales/ti-ER.yml
|
659
649
|
- config/locales/tr-TR.yml
|
660
650
|
- config/locales/uk.yml
|
@@ -684,7 +674,6 @@ files:
|
|
684
674
|
- lib/decidim/admin/import/readers/xlsx.rb
|
685
675
|
- lib/decidim/admin/import/verifier.rb
|
686
676
|
- lib/decidim/admin/test.rb
|
687
|
-
- lib/decidim/admin/test/admin_participatory_space_access_examples.rb
|
688
677
|
- lib/decidim/admin/test/commands/create_attachment_collection_examples.rb
|
689
678
|
- lib/decidim/admin/test/commands/create_category_examples.rb
|
690
679
|
- lib/decidim/admin/test/commands/destroy_category_examples.rb
|
@@ -702,7 +691,6 @@ files:
|
|
702
691
|
- lib/decidim/admin/test/manage_component_permissions_examples.rb
|
703
692
|
- lib/decidim/admin/test/manage_moderations_examples.rb
|
704
693
|
- lib/decidim/admin/test/manage_paginated_collection_examples.rb
|
705
|
-
- lib/decidim/admin/test/needs_admin_tos_accepted_examples.rb
|
706
694
|
- lib/decidim/admin/version.rb
|
707
695
|
homepage: https://github.com/decidim/decidim
|
708
696
|
licenses:
|
@@ -716,14 +704,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
716
704
|
requirements:
|
717
705
|
- - ">="
|
718
706
|
- !ruby/object:Gem::Version
|
719
|
-
version: '
|
707
|
+
version: '3.0'
|
720
708
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
721
709
|
requirements:
|
722
|
-
- - "
|
710
|
+
- - ">"
|
723
711
|
- !ruby/object:Gem::Version
|
724
|
-
version:
|
712
|
+
version: 1.3.1
|
725
713
|
requirements: []
|
726
|
-
rubygems_version: 3.
|
714
|
+
rubygems_version: 3.2.22
|
727
715
|
signing_key:
|
728
716
|
specification_version: 4
|
729
717
|
summary: Decidim organization administration
|
@@ -1,78 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Admin
|
5
|
-
# Shared behaviour for signed_in admins that require the latest TOS accepted
|
6
|
-
module NeedsAdminTosAccepted
|
7
|
-
extend ActiveSupport::Concern
|
8
|
-
|
9
|
-
included do
|
10
|
-
before_action :tos_accepted_by_admin
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def tos_accepted_by_admin
|
16
|
-
return unless request.format.html?
|
17
|
-
return unless current_user
|
18
|
-
return unless user_has_any_role?
|
19
|
-
return if current_user.admin_terms_accepted?
|
20
|
-
return if permitted_paths?
|
21
|
-
|
22
|
-
store_location_for(
|
23
|
-
current_user,
|
24
|
-
request.path
|
25
|
-
)
|
26
|
-
redirect_to admin_tos_path
|
27
|
-
end
|
28
|
-
|
29
|
-
def permitted_paths?
|
30
|
-
# ensure that path with or without query string pass
|
31
|
-
permitted_paths.find { |el| el.split("?").first == request.path }
|
32
|
-
end
|
33
|
-
|
34
|
-
def permitted_paths
|
35
|
-
[admin_tos_path, decidim_admin.admin_terms_accept_path]
|
36
|
-
end
|
37
|
-
|
38
|
-
def admin_tos_path
|
39
|
-
decidim_admin.admin_terms_show_path
|
40
|
-
end
|
41
|
-
|
42
|
-
def user_has_any_role?
|
43
|
-
return true if current_user.admin
|
44
|
-
return true if current_user.roles.any?
|
45
|
-
return true if participatory_process_user_role?
|
46
|
-
return true if assembly_user_role?
|
47
|
-
return true if conference_user_role?
|
48
|
-
return true if voting_monitoring_commitee_member?
|
49
|
-
|
50
|
-
false
|
51
|
-
end
|
52
|
-
|
53
|
-
def participatory_process_user_role?
|
54
|
-
return false unless Decidim.module_installed?(:participatory_processes)
|
55
|
-
|
56
|
-
true if Decidim::ParticipatoryProcessUserRole.exists?(user: current_user)
|
57
|
-
end
|
58
|
-
|
59
|
-
def assembly_user_role?
|
60
|
-
return false unless Decidim.module_installed?(:assemblies)
|
61
|
-
|
62
|
-
true if Decidim::AssemblyUserRole.exists?(user: current_user)
|
63
|
-
end
|
64
|
-
|
65
|
-
def conference_user_role?
|
66
|
-
return false unless Decidim.module_installed?(:conferences)
|
67
|
-
|
68
|
-
true if Decidim::ConferenceUserRole.exists?(user: current_user)
|
69
|
-
end
|
70
|
-
|
71
|
-
def voting_monitoring_commitee_member?
|
72
|
-
return false unless Decidim.module_installed?(:elections)
|
73
|
-
|
74
|
-
true if Decidim::Votings::MonitoringCommitteeMember.exists?(user: current_user)
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,144 +0,0 @@
|
|
1
|
-
/* eslint no-unused-vars: 0 */
|
2
|
-
/* eslint consistent-return: 0 */
|
3
|
-
|
4
|
-
import axios from "axios";
|
5
|
-
import * as React from "react";
|
6
|
-
import { Async as AsyncSelect } from "react-select";
|
7
|
-
import "react-select/scss/default.scss";
|
8
|
-
import PropTypes from "prop-types";
|
9
|
-
|
10
|
-
export class Autocomplete extends React.Component {
|
11
|
-
constructor(props) {
|
12
|
-
super(props);
|
13
|
-
|
14
|
-
this.minCharactersToSearch = 3;
|
15
|
-
|
16
|
-
this.handleChange = (selectedOption) => {
|
17
|
-
this.setState({ selectedOption });
|
18
|
-
if (this.props.changeURL) {
|
19
|
-
Rails.ajax({
|
20
|
-
url: this.props.changeURL,
|
21
|
-
type: "GET",
|
22
|
-
data: new URLSearchParams({
|
23
|
-
"id": selectedOption.value
|
24
|
-
}),
|
25
|
-
success: (response) => {
|
26
|
-
const script = document.createElement("script");
|
27
|
-
script.type = "text/javascript";
|
28
|
-
script.innerHTML = response.data;
|
29
|
-
document.getElementsByTagName("head")[0].appendChild(script);
|
30
|
-
},
|
31
|
-
error: (error) => {
|
32
|
-
if (axios.isCancel(error)) {
|
33
|
-
// console.log("Request canceled", error.message);
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
//
|
37
|
-
}
|
38
|
-
}
|
39
|
-
})
|
40
|
-
}
|
41
|
-
};
|
42
|
-
|
43
|
-
this.filterOptions = (options, filter, excludeOptions) => {
|
44
|
-
// Do no filtering, just return all options because
|
45
|
-
// we return a filtered set from server
|
46
|
-
return options;
|
47
|
-
};
|
48
|
-
|
49
|
-
this.onInputChange = (query) => {
|
50
|
-
if (query.length < this.minCharactersToSearch) {
|
51
|
-
this.setState({ noResultsText: this.props.searchPromptText });
|
52
|
-
}
|
53
|
-
else {
|
54
|
-
this.setState({ noResultsText: this.props.noResultsText });
|
55
|
-
}
|
56
|
-
};
|
57
|
-
|
58
|
-
this.loadOptions = (query, callback) => {
|
59
|
-
const lowerQuery = query.toLowerCase();
|
60
|
-
|
61
|
-
if (this.cancelTokenSource) {
|
62
|
-
this.cancelTokenSource.cancel();
|
63
|
-
}
|
64
|
-
|
65
|
-
if (lowerQuery.length < this.minCharactersToSearch) {
|
66
|
-
return callback(null, { options: [], complete: false });
|
67
|
-
}
|
68
|
-
|
69
|
-
this.cancelTokenSource = axios.CancelToken.source();
|
70
|
-
axios.get(this.props.searchURL, {
|
71
|
-
cancelToken: this.cancelTokenSource.token,
|
72
|
-
headers: {
|
73
|
-
Accept: "application/json"
|
74
|
-
},
|
75
|
-
withCredentials: true,
|
76
|
-
params: {
|
77
|
-
term: lowerQuery
|
78
|
-
}
|
79
|
-
}).
|
80
|
-
then((response) => {
|
81
|
-
// CAREFUL! Only set complete to true when there are no more options,
|
82
|
-
// or more specific queries will not be sent to the server.
|
83
|
-
return callback(null, { options: response.data, complete: true });
|
84
|
-
}).
|
85
|
-
catch((error) => {
|
86
|
-
if (!axios.isCancel(error)) {
|
87
|
-
return callback(error, { options: [], complete: false });
|
88
|
-
}
|
89
|
-
});
|
90
|
-
};
|
91
|
-
|
92
|
-
this.state = {
|
93
|
-
options: props.options,
|
94
|
-
selectedOption: props.selected,
|
95
|
-
searchPromptText: props.searchPromptText,
|
96
|
-
noResultsText: props.noResultsText
|
97
|
-
};
|
98
|
-
}
|
99
|
-
|
100
|
-
render() {
|
101
|
-
const { autoload, name, placeholder } = this.props;
|
102
|
-
const { selectedOption, options, searchPromptText, noResultsText } = this.state;
|
103
|
-
|
104
|
-
return (
|
105
|
-
React.createElement("div", { className: "autocomplete-field" },
|
106
|
-
React.createElement(AsyncSelect, {
|
107
|
-
cache: false,
|
108
|
-
name: name,
|
109
|
-
value: selectedOption,
|
110
|
-
options: options,
|
111
|
-
placeholder: placeholder,
|
112
|
-
searchPromptText: searchPromptText,
|
113
|
-
noResultsText: noResultsText,
|
114
|
-
onChange: this.handleChange,
|
115
|
-
onInputChange: this.onInputChange,
|
116
|
-
loadOptions: this.loadOptions,
|
117
|
-
filterOptions: this.filterOptions,
|
118
|
-
autoload: autoload,
|
119
|
-
removeSelected: true,
|
120
|
-
escapeClearsValue: false,
|
121
|
-
onCloseResetsInput: false
|
122
|
-
})
|
123
|
-
)
|
124
|
-
);
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
Autocomplete.defaultProps = {
|
129
|
-
autoload: false
|
130
|
-
};
|
131
|
-
|
132
|
-
Autocomplete.propTypes = {
|
133
|
-
changeURL: PropTypes.string,
|
134
|
-
searchPromptText: PropTypes.string,
|
135
|
-
noResultsText: PropTypes.string,
|
136
|
-
searchURL: PropTypes.string,
|
137
|
-
selected: PropTypes.string,
|
138
|
-
options: PropTypes.array,
|
139
|
-
autoload: PropTypes.bool,
|
140
|
-
name: PropTypes.string,
|
141
|
-
placeholder: PropTypes.string
|
142
|
-
}
|
143
|
-
|
144
|
-
export default Autocomplete;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { shallow } from "enzyme";
|
2
|
-
import * as React from "react";
|
3
|
-
import Autocomplete from "./autocomplete.component";
|
4
|
-
|
5
|
-
describe("<Autocomplete />", () => {
|
6
|
-
const name = "custom[name]";
|
7
|
-
const selected = "";
|
8
|
-
const options = [];
|
9
|
-
const placeholder = "Pick a value";
|
10
|
-
const noResultsText = "No results found";
|
11
|
-
const searchPromptText = "Type to search";
|
12
|
-
const searchURL = "/some/url";
|
13
|
-
const changeURL = "/some/other/url";
|
14
|
-
|
15
|
-
it("renders a div of Select", () => {
|
16
|
-
const wrapper = shallow(<Autocomplete name={name} selected={selected} options={options} noResultsText={noResultsText} placeholder={placeholder} searchPromptText={searchPromptText} searchURL={searchURL} changeURL={changeURL} />);
|
17
|
-
expect(wrapper.find(".autocomplete-field").exists()).toBeTruthy();
|
18
|
-
});
|
19
|
-
});
|
@@ -1,19 +0,0 @@
|
|
1
|
-
.autocomplete-field{
|
2
|
-
margin-bottom: 1.5rem;
|
3
|
-
|
4
|
-
.Select{
|
5
|
-
.Select-control,
|
6
|
-
.Select-input,
|
7
|
-
.Select-placeholder,
|
8
|
-
&.Select--single > .Select-control .Select-value{
|
9
|
-
height: 3rem;
|
10
|
-
line-height: 3rem;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
.autocomplete-field--results-inline{
|
16
|
-
.Select-menu-outer{
|
17
|
-
position: relative;
|
18
|
-
}
|
19
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<% if component.manifest.admin_engine %>
|
2
|
-
<%= icon_link_to "pencil", manage_component_path(component), t("actions.manage", scope: "decidim.admin"), class: "action-icon--manage" %>
|
3
|
-
<% else %>
|
4
|
-
<span class="action-space icon"></span>
|
5
|
-
<% end %>
|
6
|
-
|
7
|
-
<% if allowed_to?(:update, :component, component: component) %>
|
8
|
-
<% if component.published? %>
|
9
|
-
<%= icon_link_to "x", url_for(action: :unpublish, id: component, controller: "components"), t("actions.unpublish", scope: "decidim.admin"), class: "action-icon--unpublish", method: :put %>
|
10
|
-
<% else %>
|
11
|
-
<%= icon_link_to "check", url_for(action: :publish, id: component, controller: "components"), t("actions.publish", scope: "decidim.admin"), class: "action-icon--publish", method: :put %>
|
12
|
-
<% end %>
|
13
|
-
<% else %>
|
14
|
-
<span class="action-space icon"></span>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
<% if allowed_to? :update, :component, component: component %>
|
18
|
-
<%= icon_link_to "cog", url_for(action: :edit, id: component, controller: "components"), t("actions.configure", scope: "decidim.admin"), class: "action-icon--configure" %>
|
19
|
-
<% else %>
|
20
|
-
<span class="action-space icon"></span>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<% if allowed_to? :update, :component, component: component %>
|
24
|
-
<% if component.manifest.actions.empty? %>
|
25
|
-
<%= icon "key", class: "action-icon action-icon--disabled" %>
|
26
|
-
<% else %>
|
27
|
-
<%= icon_link_to "key", url_for(action: :edit, component_id: component, controller: "component_permissions"), t("actions.permissions", scope: "decidim.admin"), class: "action-icon--permissions" %>
|
28
|
-
<% end %>
|
29
|
-
<% else %>
|
30
|
-
<span class="action-space icon"></span>
|
31
|
-
<% end %>
|
32
|
-
|
33
|
-
<% if allowed_to? :share, :component, component: component %>
|
34
|
-
<%= icon_link_to "share", url_for(action: :share, id: component, controller: "components"), t("actions.share", scope: "decidim.admin"), class: "action-icon--share", target: "_blank" %>
|
35
|
-
<% else %>
|
36
|
-
<span class="action-space icon"></span>
|
37
|
-
<% end %>
|
38
|
-
|
39
|
-
<% if allowed_to? :destroy, :component, component: component %>
|
40
|
-
<%= icon_link_to "circle-x", url_for(action: :destroy, id: component, controller: "components"), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete %>
|
41
|
-
<% else %>
|
42
|
-
<span class="action-space icon"></span>
|
43
|
-
<% end %>
|
data/config/environment.rb
DELETED
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|