decidim-admin 0.24.1 → 0.25.0.rc2
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/content_block/show.erb +2 -2
- data/app/commands/decidim/admin/block_user.rb +6 -0
- data/app/commands/decidim/admin/create_attachment.rb +2 -1
- data/app/commands/decidim/admin/hide_resource.rb +1 -0
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +1 -1
- data/app/commands/decidim/admin/update_attachment.rb +5 -1
- data/app/commands/decidim/admin/update_content_block.rb +1 -1
- data/app/commands/decidim/admin/update_external_domain_whitelist.rb +32 -0
- data/app/commands/decidim/admin/update_organization.rb +2 -1
- data/app/commands/decidim/admin/update_organization_appearance.rb +4 -14
- data/app/controllers/concerns/decidim/admin/filterable.rb +1 -3
- data/app/controllers/concerns/decidim/participatory_space_private_users/admin/filterable.rb +34 -0
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +1 -4
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +6 -3
- data/app/controllers/decidim/admin/imports_controller.rb +1 -0
- data/app/controllers/decidim/admin/moderated_users_controller.rb +6 -2
- data/app/controllers/decidim/admin/organization_controller.rb +11 -1
- data/app/controllers/decidim/admin/organization_external_domain_whitelist_controller.rb +38 -0
- data/app/controllers/decidim/admin/users_controller.rb +7 -1
- data/app/forms/decidim/admin/external_domain_form.rb +19 -0
- data/app/forms/decidim/admin/import_form.rb +1 -0
- data/app/forms/decidim/admin/organization_appearance_form.rb +7 -7
- data/app/forms/decidim/admin/organization_external_domain_whitelist_form.rb +23 -0
- data/app/forms/decidim/admin/organization_form.rb +1 -0
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +2 -0
- data/app/forms/decidim/admin/user_group_csv_verification_form.rb +2 -0
- data/app/helpers/decidim/admin/filterable_helper.rb +1 -1
- data/app/helpers/decidim/admin/menu_helper.rb +7 -7
- data/app/helpers/decidim/admin/uploader_image_dimensions_helper.rb +2 -1
- data/app/jobs/decidim/admin/expire_impersonation_job.rb +1 -2
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +1 -1
- data/app/packs/entrypoints/decidim_admin.js +43 -0
- data/app/packs/entrypoints/decidim_admin.scss +1 -0
- data/app/packs/src/decidim/admin/application.js +68 -0
- data/app/packs/src/decidim/admin/auto_buttons_by_position.component.js +37 -0
- data/app/packs/src/decidim/admin/auto_label_by_position.component.js +28 -0
- data/app/packs/src/decidim/admin/autocomplete.component.js +146 -0
- data/app/{frontend/components/autocomplete.component.test.tsx → packs/src/decidim/admin/autocomplete.component.test.js} +1 -2
- data/app/packs/src/decidim/admin/budget_rule_toggler.component.js +50 -0
- data/app/{assets/javascripts → packs/src}/decidim/admin/choose_language.js +0 -0
- data/app/packs/src/decidim/admin/draggable-list.js +30 -0
- data/app/packs/src/decidim/admin/dynamic_fields.component.js +230 -0
- data/app/packs/src/decidim/admin/external_domain_whitelist.js +100 -0
- data/app/packs/src/decidim/admin/field_dependent_inputs.component.js +37 -0
- data/app/{assets/javascripts/decidim/admin/form.js.es6 → packs/src/decidim/admin/form.js} +6 -9
- data/app/{assets/javascripts/decidim/admin/import_guidance.js.es6 → packs/src/decidim/admin/import_guidance.js} +2 -3
- data/app/{assets/javascripts/decidim/admin/managed_users.js.es6 → packs/src/decidim/admin/managed_users.js} +4 -4
- data/app/packs/src/decidim/admin/moderations.js +20 -0
- data/app/{assets/javascripts/decidim/admin/newsletters.js.es6 → packs/src/decidim/admin/newsletters.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/officializations.js.es6 → packs/src/decidim/admin/officializations.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/proposal_infinite_edit.js.es6 → packs/src/decidim/admin/proposal_infinite_edit.js} +0 -0
- data/app/{assets/javascripts/decidim/admin/resources_permissions.js.es6 → packs/src/decidim/admin/resources_permissions.js} +3 -5
- data/app/packs/src/decidim/admin/scope_picker_enabler.component.js +12 -0
- data/app/packs/src/decidim/admin/sort_list.component.js +31 -0
- data/app/packs/src/decidim/admin/sortable.js +21 -0
- data/app/packs/src/decidim/admin/subform_multi_toggler.component.js +38 -0
- data/app/packs/src/decidim/admin/subform_toggler.component.js +38 -0
- data/app/{assets/javascripts/decidim/admin/tab_focus.js.es6 → packs/src/decidim/admin/tab_focus.js} +0 -2
- data/app/packs/src/decidim/admin/toggle_nav.js +14 -0
- data/app/{assets/javascripts/decidim/admin/welcome_notification.js.es6 → packs/src/decidim/admin/welcome_notification.js} +2 -2
- data/app/packs/stylesheets/decidim/admin/_decidim.scss +24 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/_variables.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/application.scss +22 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/bundle.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_accordion.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_autocomplete_select.component.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_dropdown-menu.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/components/_sortable.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_action-icon.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_block_user.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_cards.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_categories.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_dropdown_inverted.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/extra/_editor.scss +1 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_email_preview.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_label-required.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_login.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_logs.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_newsletter-templates-gallery.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_organization-appearance.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_quill.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_select_multiple.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_show_email.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_sort.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/extra/_title_bar.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_action-icon.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_agenda.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_buttons.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_callouts.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_card-grid.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_cards.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_char-counter.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_component-counter.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_draggable-list.scss +2 -2
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_dropdown.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_filters.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_forms.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_icons.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_import_result.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_layout.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_loading-spinner.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_main-nav.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_moderations.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/modules/_modules.scss +43 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_pics.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_process-header.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_reveal.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_secondary-nav.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_table-list.scss +13 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_tabs.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_title-bar.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_typography.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_user-login.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/modules/_users_statistics.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/plugins/_foundation-datepicker.scss +0 -0
- data/{vendor/assets/stylesheets → app/packs/stylesheets/decidim/admin}/plugins/jquery.auto-complete.css +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/user_moderations.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_flex.scss +2 -2
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_helpers.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_keyframes.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_mixins.scss +30 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_settings.scss +11 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/utils/_toggle-expand.scss +0 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_constants.scss +1 -1
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/_math.scss +0 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +14 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +16 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +36 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +46 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +17 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_cot.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_csc.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_exp.scss +10 -6
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +21 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +25 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +20 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +39 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +34 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sec.scss +6 -3
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_sin.scss +4 -3
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +21 -0
- data/app/{assets → packs}/stylesheets/decidim/admin/vendor/mathsass/functions/_tan.scss +6 -3
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +6 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +6 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +11 -0
- data/app/packs/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +19 -0
- data/app/presenters/decidim/admin/simple_menu_presenter.rb +11 -0
- data/app/queries/decidim/admin/newsletter_recipients.rb +3 -1
- data/app/views/decidim/admin/area_types/index.html.erb +2 -2
- data/app/views/decidim/admin/areas/index.html.erb +1 -1
- data/app/views/decidim/admin/attachment_collections/index.html.erb +1 -1
- data/app/views/decidim/admin/categories/index.html.erb +1 -1
- data/app/views/decidim/admin/components/_form.html.erb +0 -2
- data/app/views/decidim/admin/impersonations/_form.html.erb +3 -1
- data/app/views/decidim/admin/imports/new.html.erb +1 -9
- data/app/views/decidim/admin/newsletters/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +1 -3
- data/app/views/decidim/admin/newsletters/show.html.erb +1 -1
- data/app/views/decidim/admin/officializations/index.html.erb +3 -3
- data/app/views/decidim/admin/organization/_form.html.erb +6 -2
- data/app/views/decidim/admin/organization_appearance/_form.html.erb +0 -2
- data/app/views/decidim/admin/organization_appearance/form/_images.html.erb +20 -4
- data/app/views/decidim/admin/organization_appearance/form/_minimap.html.erb +7 -7
- data/app/views/decidim/admin/organization_external_domain_whitelist/_external_domain.html.erb +31 -0
- data/app/views/decidim/admin/organization_external_domain_whitelist/_form.html.erb +37 -0
- data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +6 -0
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +4 -4
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +0 -2
- data/app/views/decidim/admin/scope_types/index.html.erb +3 -3
- data/app/views/decidim/admin/scopes/index.html.erb +1 -1
- data/app/views/decidim/admin/shared/_gallery.html.erb +1 -1
- data/app/views/decidim/admin/static_pages/_form.html.erb +0 -1
- data/app/views/decidim/admin/static_pages/_topic.html.erb +3 -3
- data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
- data/app/views/decidim/admin/users/index.html.erb +10 -9
- data/app/views/layouts/decidim/admin/_application.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_header.html.erb +2 -3
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_title_bar.html.erb +1 -1
- data/app/views/layouts/decidim/admin/global_moderations.html.erb +1 -1
- data/app/views/layouts/decidim/admin/newsletters.erb +1 -1
- data/app/views/layouts/decidim/admin/pages.html.erb +2 -2
- data/app/views/layouts/decidim/admin/settings.html.erb +1 -1
- data/app/views/layouts/decidim/admin/users.html.erb +2 -52
- data/config/assets.rb +8 -0
- data/config/locales/ar.yml +0 -4
- data/config/locales/bg.yml +0 -3
- data/config/locales/ca.yml +36 -6
- data/config/locales/cs.yml +48 -6
- data/config/locales/de.yml +18 -6
- data/config/locales/el.yml +0 -4
- data/config/locales/en.yml +58 -16
- data/config/locales/eo.yml +0 -1
- data/config/locales/es-MX.yml +19 -6
- data/config/locales/es-PY.yml +19 -6
- data/config/locales/es.yml +19 -6
- data/config/locales/eu.yml +0 -4
- data/config/locales/fi-plain.yml +48 -6
- data/config/locales/fi.yml +48 -6
- data/config/locales/fr-CA.yml +53 -6
- data/config/locales/fr-LU.yml +1029 -0
- data/config/locales/fr.yml +53 -6
- data/config/locales/gl.yml +71 -6
- data/config/locales/hu.yml +70 -4
- data/config/locales/id-ID.yml +0 -4
- data/config/locales/is-IS.yml +0 -4
- data/config/locales/it.yml +161 -10
- data/config/locales/ja.yml +152 -5
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +0 -4
- data/config/locales/nl.yml +17 -6
- data/config/locales/no.yml +6 -4
- data/config/locales/pl.yml +45 -24
- data/config/locales/pt-BR.yml +346 -4
- data/config/locales/pt.yml +6 -4
- data/config/locales/ro-RO.yml +112 -4
- data/config/locales/ru.yml +0 -4
- data/config/locales/sk.yml +0 -4
- data/config/locales/sl.yml +0 -4
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +45 -2
- data/config/locales/tr-TR.yml +0 -4
- data/config/locales/uk.yml +0 -2
- data/config/locales/zh-CN.yml +0 -4
- data/config/routes.rb +2 -0
- data/lib/decidim/admin/engine.rb +210 -137
- data/lib/decidim/admin/import/readers/xlsx.rb +25 -0
- data/lib/decidim/admin/import/readers.rb +3 -3
- data/lib/decidim/admin/test/filters_participatory_space_users_examples.rb +73 -0
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +1 -1
- data/lib/decidim/admin/test/manage_attachments_examples.rb +1 -1
- data/lib/decidim/admin/test.rb +1 -0
- data/lib/decidim/admin/version.rb +1 -1
- metadata +141 -180
- data/app/assets/config/decidim_admin_manifest.js +0 -8
- data/app/assets/javascripts/decidim/admin/application.js.es6 +0 -78
- data/app/assets/javascripts/decidim/admin/auto_buttons_by_position.component.js.es6 +0 -42
- data/app/assets/javascripts/decidim/admin/auto_label_by_position.component.js.es6 +0 -33
- data/app/assets/javascripts/decidim/admin/budget_rule_toggler.component.js.es6 +0 -55
- data/app/assets/javascripts/decidim/admin/bundle.js +0 -34
- data/app/assets/javascripts/decidim/admin/bundle.js.map +0 -1
- data/app/assets/javascripts/decidim/admin/draggable-list.js.es6 +0 -30
- data/app/assets/javascripts/decidim/admin/dynamic_fields.component.js.es6 +0 -233
- data/app/assets/javascripts/decidim/admin/field_dependent_inputs.component.js.es6 +0 -39
- data/app/assets/javascripts/decidim/admin/moderations.js.es6 +0 -24
- data/app/assets/javascripts/decidim/admin/scope_picker_enabler.component.js.es6 +0 -14
- data/app/assets/javascripts/decidim/admin/sort_list.component.js.es6 +0 -35
- data/app/assets/javascripts/decidim/admin/sortable.js.es6 +0 -22
- data/app/assets/javascripts/decidim/admin/subform_multi_toggler.component.js.es6 +0 -43
- data/app/assets/javascripts/decidim/admin/subform_toggler.component.js.es6 +0 -42
- data/app/assets/javascripts/decidim/admin/toggle_nav.js.es6 +0 -17
- data/app/assets/javascripts/decidim/admin/user_moderations.js +0 -2
- data/app/assets/stylesheets/decidim/admin/_decidim.scss +0 -20
- data/app/assets/stylesheets/decidim/admin/application.scss.erb +0 -6
- data/app/assets/stylesheets/decidim/admin/extra/_editor.scss +0 -1
- data/app/assets/stylesheets/decidim/admin/modules/_modules.scss +0 -43
- data/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +0 -29
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_acos.scss +0 -12
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_asin.scss +0 -12
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan.scss +0 -28
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_atan2.scss +0 -37
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_cos.scss +0 -13
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_fact.scss +0 -18
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_frexp.scss +0 -21
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_ldexp.scss +0 -17
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_log.scss +0 -34
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_pow.scss +0 -28
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/functions/_sqrt.scss +0 -16
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_deg-to-rad.scss +0 -4
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_rad-to-deg.scss +0 -4
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_strip-unit.scss +0 -8
- data/app/assets/stylesheets/decidim/admin/vendor/mathsass/helpers/_unitless-rad.scss +0 -13
- data/app/frontend/components/autocomplete.component.tsx +0 -198
- data/app/frontend/entry.ts +0 -17
- data/app/frontend/entry_test.ts +0 -4
- data/app/helpers/decidim/admin/sidebar_menu_helper.rb +0 -13
- data/config/locales/ja-JP.yml +0 -855
- data/lib/decidim/admin/import/readers/xls.rb +0 -25
- data/vendor/assets/javascripts/html.sortable.js +0 -691
- data/vendor/assets/javascripts/jquery.auto-complete.js +0 -171
- data/vendor/assets/javascripts/jquery.serializejson.js +0 -344
- data/vendor/assets/javascripts/moment.min.js +0 -1
@@ -11,19 +11,35 @@
|
|
11
11
|
|
12
12
|
<div class="organization-images">
|
13
13
|
<div class="preview">
|
14
|
-
<%= form.upload
|
14
|
+
<%= form.upload(
|
15
|
+
:favicon,
|
16
|
+
dimensions_info: current_organization.attached_uploader(:favicon).dimensions_info,
|
17
|
+
extension_allowlist: current_organization.attached_uploader(:favicon).extension_allowlist
|
18
|
+
) %>
|
15
19
|
</div>
|
16
20
|
|
17
21
|
<div class="preview">
|
18
|
-
<%= form.upload
|
22
|
+
<%= form.upload(
|
23
|
+
:logo,
|
24
|
+
dimensions_info: current_organization.attached_uploader(:logo).dimensions_info,
|
25
|
+
extension_allowlist: current_organization.attached_uploader(:favicon).extension_allowlist
|
26
|
+
) %>
|
19
27
|
</div>
|
20
28
|
|
21
29
|
<div class="preview">
|
22
|
-
<%= form.upload
|
30
|
+
<%= form.upload(
|
31
|
+
:official_img_header,
|
32
|
+
dimensions_info: current_organization.attached_uploader(:official_img_header).dimensions_info,
|
33
|
+
extension_allowlist: current_organization.attached_uploader(:favicon).extension_allowlist
|
34
|
+
) %>
|
23
35
|
</div>
|
24
36
|
|
25
37
|
<div class="preview">
|
26
|
-
<%= form.upload
|
38
|
+
<%= form.upload(
|
39
|
+
:official_img_footer,
|
40
|
+
dimensions_info: current_organization.attached_uploader(:official_img_footer).dimensions_info,
|
41
|
+
extension_allowlist: current_organization.attached_uploader(:favicon).extension_allowlist
|
42
|
+
) %>
|
27
43
|
</div>
|
28
44
|
</div>
|
29
45
|
</div>
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<div id="minimap-wrapper">
|
3
3
|
<div id="minimap">
|
4
4
|
<div class="minimap-tab">
|
5
|
-
<% if current_organization.favicon.
|
6
|
-
<%= image_tag current_organization.favicon.
|
5
|
+
<% if current_organization.favicon.attached? %>
|
6
|
+
<%= image_tag current_organization.attached_uploader(:favicon).path, class: "minimap-favicon" %>
|
7
7
|
<% else %>
|
8
8
|
<%= content_tag :div, nil, { class: "minimap-favicon placeholder", style: "width: #{image_width(current_organization, :favicon) * size_factor }px; height: #{image_height(current_organization, :favicon) * size_factor }px;" } do %>
|
9
9
|
<% end %>
|
@@ -14,15 +14,15 @@
|
|
14
14
|
|
15
15
|
<div class="minimap-header">
|
16
16
|
<% if current_organization.logo.present? %>
|
17
|
-
<%= image_tag current_organization.logo.
|
17
|
+
<%= image_tag current_organization.attached_uploader(:logo).path, class: "minimap-logo" %>
|
18
18
|
<% else %>
|
19
19
|
<%= content_tag :div, nil, { class: "minimap-logo placeholder", style: "width: #{image_width(current_organization, :logo) * size_factor }px; height: #{image_height(current_organization, :logo) * size_factor }px;" } do %>
|
20
20
|
<span><%= t("logo", scope: "activemodel.attributes.organization") %></span>
|
21
21
|
<% end %>
|
22
22
|
<% end %>
|
23
23
|
|
24
|
-
<% if current_organization.official_img_header.
|
25
|
-
<%= image_tag current_organization.official_img_header.
|
24
|
+
<% if current_organization.official_img_header.attached? %>
|
25
|
+
<%= image_tag current_organization.attached_uploader(:official_img_header).path, class: "minimap-official_img_header" %>
|
26
26
|
<% else %>
|
27
27
|
<span class="float-right"><%= t("official_img_header", scope: "activemodel.attributes.organization") %> > </span>
|
28
28
|
<%= content_tag :div, nil, { class: "minimap-official_img_header placeholder float-right", style: "width: #{image_width(current_organization, :official_img_header) * size_factor }px; height: #{image_height(current_organization, :official_img_header) * size_factor }px;" } %>
|
@@ -34,8 +34,8 @@
|
|
34
34
|
<div class="minimap-body"></div>
|
35
35
|
|
36
36
|
<div class="minimap-footer">
|
37
|
-
<% if current_organization.official_img_footer.
|
38
|
-
<%= image_tag current_organization.official_img_footer.
|
37
|
+
<% if current_organization.official_img_footer.attached? %>
|
38
|
+
<%= image_tag current_organization.attached_uploader(:official_img_footer).path, class: "minimap-official_img_footer" %>
|
39
39
|
<% else %>
|
40
40
|
<%= content_tag :div, nil, { class: "minimap-official_img_footer placeholder", style: "width: #{image_width(current_organization, :official_img_footer) * size_factor }px; height: #{image_height(current_organization, :official_img_footer) * size_factor }px;" } do %>
|
41
41
|
<span><%= t("official_img_footer", scope: "activemodel.attributes.organization") %></span>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<div class="card external-domain" id="<%= id %>-field">
|
2
|
+
<div class="card-divider external-domain-divider">
|
3
|
+
<h2 class="card-title">
|
4
|
+
<span><%== icon("move") %></span>
|
5
|
+
<span><%= t(".external_domain") %></span>
|
6
|
+
|
7
|
+
<button class="button small alert hollow move-up-question button--title">
|
8
|
+
<%== "#{icon("arrow-top")} #{t(".up")}" %>
|
9
|
+
</button>
|
10
|
+
|
11
|
+
<button class="button small alert hollow move-down-question button--title">
|
12
|
+
<%== "#{icon("arrow-bottom")} #{t(".down")}" %>
|
13
|
+
</button>
|
14
|
+
|
15
|
+
<button class="button small alert hollow remove-external-domain button--title">
|
16
|
+
<%= t(".remove") %>
|
17
|
+
</button>
|
18
|
+
</h2>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="card-section">
|
22
|
+
<div class="grid-x">
|
23
|
+
<div class="cell auto">
|
24
|
+
<%= form.text_field :value %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<%= form.hidden_field :id %>
|
28
|
+
<%= form.hidden_field :position, value: form.object.position || 0 %>
|
29
|
+
<%= form.hidden_field :deleted %>
|
30
|
+
</div>
|
31
|
+
</div>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title"><%= t(".title") %></h2>
|
4
|
+
</div>
|
5
|
+
<div class="card">
|
6
|
+
<div class="card-section">
|
7
|
+
<% if form.send(:error?, :external_domains) %>
|
8
|
+
<div class="input-field">
|
9
|
+
<div> </div>
|
10
|
+
<%= form.send(:error_and_help_text, :external_domains) %>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="external-domains">
|
15
|
+
<%= fields_for "external_domains[#{blank_external_domain.to_param}]", blank_external_domain do |external_domain_form| %>
|
16
|
+
<script type="text/template" class="decidim-template">
|
17
|
+
<%= render "external_domain",
|
18
|
+
form: external_domain_form,
|
19
|
+
id: blank_external_domain.to_param %>
|
20
|
+
</script>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<div class="external-domains-list">
|
24
|
+
<% @form.external_domains.each do |external_domain| %>
|
25
|
+
<%= fields_for "external_domains[]", external_domain do |external_domain_form| %>
|
26
|
+
<%= render "external_domain",
|
27
|
+
form: external_domain_form,
|
28
|
+
id: external_domain.to_param %>
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<button class="button small hollow add-external-domain"><%= t(".add") %></button>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form edit_organization_external_domain_whitelist" }, url: organization_external_domain_whitelist_path, method: :patch) do |f| %>
|
2
|
+
<%= render partial: "form", object: f %>
|
3
|
+
<div class="button--double form-general-submit">
|
4
|
+
<%= f.submit t(".update") %>
|
5
|
+
</div>
|
6
|
+
<% end %>
|
@@ -8,9 +8,9 @@
|
|
8
8
|
<% end %>
|
9
9
|
</h2>
|
10
10
|
</div>
|
11
|
-
|
11
|
+
<%= admin_filter_selector(:participatory_space_private_users) %>
|
12
12
|
<div class="card-section">
|
13
|
-
<% if
|
13
|
+
<% if participatory_space_private_users.any? %>
|
14
14
|
<div class="table-scroll">
|
15
15
|
<table class="stack">
|
16
16
|
<thead>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
</tr>
|
24
24
|
</thead>
|
25
25
|
<tbody>
|
26
|
-
<%
|
26
|
+
<% participatory_space_private_users.each do |private_user| %>
|
27
27
|
<tr>
|
28
28
|
<td>
|
29
29
|
<%= private_user.user.name %><br>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
</tbody>
|
56
56
|
</table>
|
57
57
|
</div>
|
58
|
-
<%= decidim_paginate
|
58
|
+
<%= decidim_paginate participatory_space_private_users %>
|
59
59
|
<% end %>
|
60
60
|
</div>
|
61
61
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<div class="card">
|
1
|
+
<div class="card" id="scope-types">
|
2
2
|
<div class="card-divider">
|
3
3
|
<% if allowed_to? :creste, :scope_type %>
|
4
|
-
<h2 class="card-title"><%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), [
|
4
|
+
<h2 class="card-title"><%= t "decidim.admin.titles.scope_types" %> <%= link_to t("actions.add", scope: "decidim.admin"), [:new, :scope_type], class: "button tiny button--title new" %></h2>
|
5
5
|
<% end %>
|
6
6
|
</div>
|
7
7
|
<div class="card-section">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<td class="table-list__actions">
|
27
27
|
|
28
28
|
<% if allowed_to? :update, :scope_type, scope_type: scope_type %>
|
29
|
-
<%= icon_link_to "pencil", [
|
29
|
+
<%= icon_link_to "pencil", [:edit, scope_type], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
|
30
30
|
<% end %>
|
31
31
|
|
32
32
|
<% if allowed_to? :destroy, :scope_type, scope_type: scope_type %>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<%= icon_link_to "zoom-in", scope_scopes_path(scope), t("actions.browse", scope: "decidim.admin"), class: "action-icon--browse", method: :get, data: {} %>
|
33
33
|
|
34
34
|
<% if allowed_to? :update, :scope, scope: scope %>
|
35
|
-
<%= icon_link_to "pencil", [
|
35
|
+
<%= icon_link_to "pencil", [:edit, scope], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit", method: :get, data: {} %>
|
36
36
|
<% end %>
|
37
37
|
|
38
38
|
<% if allowed_to? :destroy, :scope, scope: scope %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% if @form.photos.any? %>
|
6
6
|
<% @form.photos.each do |photo| %>
|
7
7
|
<div class="callout gallery__item" data-closable>
|
8
|
-
<%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.
|
8
|
+
<%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.filename %>
|
9
9
|
<%= form.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %>
|
10
10
|
<button class="close-button" aria-label="<%= t(".delete_image") %>" title="<%= t(".delete_image") %>" type="button" data-close>
|
11
11
|
<span aria-hidden="true">×</span>
|
@@ -3,7 +3,6 @@
|
|
3
3
|
</div>
|
4
4
|
|
5
5
|
<% if allowed_to? :update_slug, :static_page, static_page: form.object %>
|
6
|
-
<%= javascript_include_tag "decidim/slug_form" %>
|
7
6
|
<div class="row column slug">
|
8
7
|
<%= form.text_field :slug %>
|
9
8
|
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url("pages", form.object.slug)) %></p>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% if topic %>
|
6
6
|
<%= translated_attribute(topic.title) %>
|
7
7
|
<%= link_to t(".destroy"), [topic], class: "button tiny button--title destroy", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
8
|
-
<%= link_to t(".edit"), [
|
8
|
+
<%= link_to t(".edit"), [:edit, topic], class: "button tiny button--title new" %>
|
9
9
|
<% else %>
|
10
10
|
<%= t(".without_topic") %>
|
11
11
|
<% end %>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<% pages.each do |page| %>
|
29
29
|
<tr>
|
30
30
|
<td>
|
31
|
-
<%= link_to translated_attribute(page.title), [
|
31
|
+
<%= link_to translated_attribute(page.title), [:edit, page] %><br>
|
32
32
|
</td>
|
33
33
|
<td>
|
34
34
|
<%= l page.created_at, format: :short %>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
</td>
|
41
41
|
<td class="table-list__actions">
|
42
42
|
<% if allowed_to? :update, :static_page, static_page: page %>
|
43
|
-
<%= icon_link_to "pencil", [
|
43
|
+
<%= icon_link_to "pencil", [:edit, page], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
|
44
44
|
<% end %>
|
45
45
|
|
46
46
|
<%= icon_link_to "eye", decidim.page_path(page), t("actions.view", scope: "decidim.admin.static_pages"), class: "action-icon--preview" %>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<% if !user_group.verified? %>
|
82
82
|
<%= icon_link_to "circle-check", decidim_admin.verify_user_group_path(user_group), t("actions.verify", scope: "decidim.admin"), method: :put, class: "action-icon--verify" %>
|
83
83
|
<% else %>
|
84
|
-
<%= icon "circle-check", class: "action-icon action-icon--disabled", role: "img" %>
|
84
|
+
<%= icon "circle-check", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.verify", scope: "decidim.admin") %>
|
85
85
|
<% end %>
|
86
86
|
<% end %>
|
87
87
|
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<% if !user_group.rejected? %>
|
90
90
|
<%= icon_link_to "circle-x", decidim_admin.reject_user_group_path(user_group), t("actions.reject", scope: "decidim.admin"), method: :put, class: "action-icon--reject" %>
|
91
91
|
<% else %>
|
92
|
-
<%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img" %>
|
92
|
+
<%= icon "circle-x", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.reject", scope: "decidim.admin") %>
|
93
93
|
<% end %>
|
94
94
|
<% end %>
|
95
95
|
</td>
|
@@ -3,22 +3,23 @@
|
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t "decidim.admin.titles.users" %>
|
5
5
|
<% if allowed_to? :create, :admin_user %>
|
6
|
-
<%= link_to t("actions.user.new", scope: "decidim.admin"), [
|
6
|
+
<%= link_to t("actions.user.new", scope: "decidim.admin"), [:new, :user], class: "button tiny button--title" %>
|
7
7
|
<% end %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
10
|
+
<%= admin_filter_selector %>
|
10
11
|
<div class="card-section">
|
11
12
|
<div class="table-scroll">
|
12
13
|
<table class="table-list">
|
13
14
|
<thead>
|
14
15
|
<tr>
|
15
|
-
<th><%= t("models.user.fields.role", scope: "decidim.admin") %></th>
|
16
|
-
<th><%= t("models.user.fields.name", scope: "decidim.admin") %></th>
|
17
|
-
<th><%= t("models.user.fields.email", scope: "decidim.admin") %></th>
|
18
|
-
<th><%= t("models.user.fields.invitation_sent_at", scope: "decidim.admin") %></th>
|
19
|
-
<th><%= t("models.user.fields.invitation_accepted_at", scope: "decidim.admin") %></th>
|
20
|
-
<th><%= t("models.user.fields.last_sign_in_at", scope: "decidim.admin") %></th>
|
21
|
-
<th><%= t("models.user.fields.created_at", scope: "decidim.admin") %></th>
|
16
|
+
<th><%= sort_link(query, :role, t("models.user.fields.role", scope: "decidim.admin"), default_order: :desc) %></th>
|
17
|
+
<th><%= sort_link(query, :name, t("models.user.fields.name", scope: "decidim.admin"), default_order: :desc) %></th>
|
18
|
+
<th><%= sort_link(query, :email, t("models.user.fields.email", scope: "decidim.admin"), default_order: :desc) %></th>
|
19
|
+
<th><%= sort_link(query, :invitation_sent_at, t("models.user.fields.invitation_sent_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
20
|
+
<th><%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
21
|
+
<th><%= sort_link(query, :last_sign_in_at, t("models.user.fields.last_sign_in_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
22
|
+
<th><%= sort_link(query, :created_at, t("models.user.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
22
23
|
<th></th>
|
23
24
|
</tr>
|
24
25
|
</thead>
|
@@ -46,7 +47,7 @@
|
|
46
47
|
<td><%= l user.created_at, format: :short %></td>
|
47
48
|
<td class="table-list__actions">
|
48
49
|
<% if allowed_to?(:invite, :admin_user, user: user) && user.invited_to_sign_up? %>
|
49
|
-
<%= icon_link_to "reload", [
|
50
|
+
<%= icon_link_to "reload", [:resend_invitation, user], t("actions.resend_invitation", scope: "decidim.admin"), class: "resend-invitation", method: :post %>
|
50
51
|
<% end %>
|
51
52
|
|
52
53
|
<% if allowed_to? :destroy, :admin_user, user: user %>
|
@@ -11,7 +11,6 @@
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
12
12
|
<title><%= decidim_page_title %></title>
|
13
13
|
<%= render partial: "layouts/decidim/admin/header" %>
|
14
|
-
<%= foundation_datepicker_locale_tag %>
|
15
14
|
</head>
|
16
15
|
<body>
|
17
16
|
<%= render partial: "layouts/decidim/timeout_modal" %>
|
@@ -29,5 +28,6 @@
|
|
29
28
|
<%= render partial: "layouts/decidim/admin/template_bottom" %>
|
30
29
|
<%= render partial: "decidim/shared/confirm_modal" %>
|
31
30
|
<%= render partial: "layouts/decidim/admin/js_configuration" %>
|
31
|
+
<%= render partial: "layouts/decidim/cors" if Decidim.cors_enabled %>
|
32
32
|
</body>
|
33
33
|
</html>
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2
2
|
<%= csrf_meta_tags %>
|
3
|
-
<%=
|
4
|
-
<%=
|
5
|
-
<%= javascript_include_tag "decidim/admin/application" %>
|
3
|
+
<%= stylesheet_pack_tag "decidim_admin", media: "all" %>
|
4
|
+
<%= javascript_pack_tag "decidim_admin", defer: false %>
|
6
5
|
<%= organization_colors %>
|
7
6
|
<%= snippets.display(:head) %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<a href="#menu" class="menu-trigger"><%= icon "menu" %></a>
|
3
3
|
<%= link_to decidim.root_path, class: "logo", target: "_blank" do %>
|
4
4
|
<% if current_organization.logo.present? %>
|
5
|
-
<%= image_tag current_organization.logo.
|
5
|
+
<%= image_tag current_organization.attached_uploader(:logo).path, alt: current_organization.name %>
|
6
6
|
<% else %>
|
7
7
|
<%= current_organization.name %>
|
8
8
|
<% end %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= t ".title" %>
|
5
5
|
</div>
|
6
6
|
<div class="secondary-nav__actions">
|
7
|
-
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [
|
7
|
+
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [:newsletter_templates], class: "button expanded small new" %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
<% end %>
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<%= t "decidim.admin.titles.static_pages" %>
|
5
5
|
</div>
|
6
6
|
<div class="secondary-nav__actions">
|
7
|
-
<%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [
|
8
|
-
<%= link_to t("static_pages.new.create", scope: "decidim.admin"), [
|
7
|
+
<%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [:new, :static_page_topic], class: "button expanded small new" %>
|
8
|
+
<%= link_to t("static_pages.new.create", scope: "decidim.admin"), [:new, :static_page], class: "button expanded small new" %>
|
9
9
|
</div>
|
10
10
|
</div>
|
11
11
|
<% end %>
|
@@ -1,55 +1,5 @@
|
|
1
|
-
<% content_for :
|
2
|
-
|
3
|
-
<div class="secondary-nav__title">
|
4
|
-
<%= t ".title" %>
|
5
|
-
</div>
|
6
|
-
<ul>
|
7
|
-
<% if allowed_to? :read, :admin_user %>
|
8
|
-
<li <% if is_active_link?(decidim_admin.users_path) %> class="is-active" <% end %>>
|
9
|
-
<%= link_to t("menu.admins", scope: "decidim.admin"), decidim_admin.users_path %>
|
10
|
-
</li>
|
11
|
-
<% end %>
|
12
|
-
<% if current_organization.user_groups_enabled? && allowed_to?(:index, :user_group) %>
|
13
|
-
<li <% if is_active_link?(decidim_admin.user_groups_path) %> class="is-active" <% end %>>
|
14
|
-
<%= link_to t("menu.user_groups", scope: "decidim.admin"), decidim_admin.user_groups_path %>
|
15
|
-
</li>
|
16
|
-
<% end %>
|
17
|
-
<% if allowed_to? :index, :officialization %>
|
18
|
-
<li <% if is_active_link?(decidim_admin.officializations_path) %> class="is-active" <% end %>>
|
19
|
-
<%= link_to t("menu.participants", scope: "decidim.admin"), decidim_admin.officializations_path %>
|
20
|
-
</li>
|
21
|
-
<% end %>
|
22
|
-
<% if allowed_to? :index, :impersonatable_user %>
|
23
|
-
<li <% if is_active_link?(decidim_admin.impersonatable_users_path) %> class="is-active" <% end %>>
|
24
|
-
<%= link_to t("menu.impersonations", scope: "decidim.admin"), decidim_admin.impersonatable_users_path %>
|
25
|
-
<ul>
|
26
|
-
<li <% if is_active_link?(decidim_admin.conflicts_path) %> class="is-active" <% end %>>
|
27
|
-
<%= %>
|
28
|
-
<%= link_to link_to t("title", scope: "decidim.admin.conflicts"), decidim_admin.conflicts_path %>
|
29
|
-
</li>
|
30
|
-
</ul>
|
31
|
-
</li>
|
32
|
-
<% end %>
|
33
|
-
<% if allowed_to? :index, :moderate_users %>
|
34
|
-
<li <% if is_active_link?(decidim_admin.moderated_users_path) %> class="is-active" <% end %>>
|
35
|
-
<%= link_to t("menu.reported_users", scope: "decidim.admin"), decidim_admin.moderated_users_path %>
|
36
|
-
</li>
|
37
|
-
<% end %>
|
38
|
-
<li <% if is_active_link?(decidim_admin.authorization_workflows_path) %> class="is-active" <% end %>>
|
39
|
-
<%= link_to t("menu.authorization_workflows", scope: "decidim.admin"), decidim_admin.authorization_workflows_path %>
|
40
|
-
<ul>
|
41
|
-
<% Decidim::Verifications.admin_workflows.each do |manifest| %>
|
42
|
-
<% next unless current_organization.available_authorizations.include?(manifest.name.to_s) %>
|
43
|
-
<% workflow = Decidim::Verifications::Adapter.new(manifest) %>
|
44
|
-
|
45
|
-
<li <% if is_active_link?(workflow.admin_root_path) %> class="is-active" <% end %>>
|
46
|
-
<%= link_to workflow.fullname, workflow.admin_root_path %>
|
47
|
-
</li>
|
48
|
-
<% end %>
|
49
|
-
</ul>
|
50
|
-
</li>
|
51
|
-
</ul>
|
52
|
-
</div>
|
1
|
+
<% content_for :sidebar_menu_nav do %>
|
2
|
+
<%= sidebar_menu(:admin_user_menu).render(title: t(".title") ) %>
|
53
3
|
<% end %>
|
54
4
|
|
55
5
|
<%= render "layouts/decidim/admin/application" do %>
|