decidim-participatory_processes 0.27.8 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/participatory_process_groups/content_block_cell.rb +5 -1
- data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data/recent_users.erb +1 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb +71 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data/content.erb +30 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +77 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/related_processes_cell.rb +47 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb +2 -2
- data/app/cells/decidim/participatory_process_groups/process_filters_cell.rb +4 -4
- data/app/cells/decidim/participatory_processes/content_block_cell.rb +21 -0
- data/app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb +1 -0
- data/app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb +60 -0
- data/app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb +29 -0
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +14 -27
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb +1 -1
- data/app/cells/decidim/participatory_processes/content_blocks/main_data_cell.rb +34 -0
- data/app/cells/decidim/participatory_processes/content_blocks/metadata_cell.rb +23 -0
- data/app/cells/decidim/participatory_processes/content_blocks/metrics_cell.rb +25 -0
- data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form/show.erb +3 -0
- data/app/cells/decidim/participatory_processes/content_blocks/processes_settings_form_cell.rb +28 -0
- data/app/cells/decidim/participatory_processes/content_blocks/related_processes/content.erb +1 -0
- data/app/cells/decidim/participatory_processes/content_blocks/related_processes_cell.rb +53 -0
- data/app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb +17 -0
- data/app/cells/decidim/participatory_processes/filtered_participatory_processes_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata/metadata.erb +22 -0
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +39 -0
- data/app/cells/decidim/participatory_processes/process_filters/show.erb +4 -5
- data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters_cell.rb +6 -6
- data/app/cells/decidim/participatory_processes/process_g_cell.rb +31 -0
- data/app/cells/decidim/participatory_processes/process_group_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_g_cell.rb +23 -0
- data/app/cells/decidim/participatory_processes/process_group_metadata_cell.rb +46 -0
- data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +5 -13
- data/app/cells/decidim/participatory_processes/process_metadata_cell.rb +44 -0
- data/app/cells/decidim/participatory_processes/process_metadata_g_cell.rb +15 -0
- data/app/cells/decidim/participatory_processes/process_s_cell.rb +5 -25
- data/app/cells/decidim/participatory_processes/process_step/show.erb +48 -0
- data/app/cells/decidim/participatory_processes/process_step_cell.rb +30 -0
- data/app/cells/decidim/participatory_processes/processes/show.erb +16 -0
- data/app/cells/decidim/participatory_processes/processes_cell.rb +24 -0
- data/app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +2 -2
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +3 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +4 -2
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +2 -2
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +1 -1
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +1 -1
- data/app/constraints/decidim/participatory_processes/current_participatory_process.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/application_controller.rb +29 -0
- data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +2 -0
- data/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb +3 -1
- data/app/controllers/decidim/participatory_processes/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb +5 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb +5 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_content_blocks_controller.rb +1 -5
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_group_landing_page_controller.rb +24 -7
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +16 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_imports_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_content_blocks_controller.rb +37 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_landing_page_controller.rb +37 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb +9 -29
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +16 -4
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +19 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +8 -91
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +3 -0
- data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +14 -1
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +19 -4
- data/app/events/decidim/participatory_process_role_assigned_event.rb +6 -6
- data/app/events/decidim/participatory_process_step_activated_event.rb +5 -4
- data/app/events/decidim/participatory_process_step_changed_event.rb +5 -4
- data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +2 -2
- data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +2 -18
- data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +1 -0
- data/app/helpers/decidim/participatory_processes/application_helper.rb +5 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +37 -9
- data/app/helpers/decidim/participatory_processes/participatory_space_content_blocks_helper.rb +17 -0
- data/app/jobs/decidim/participatory_processes/change_active_step_job.rb +35 -0
- data/app/models/decidim/participatory_process.rb +5 -5
- data/app/models/decidim/participatory_process_group.rb +4 -0
- data/app/models/decidim/participatory_process_user_role.rb +5 -34
- data/app/packs/entrypoints/decidim_participatory_processes.js +0 -2
- data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +2 -2
- data/app/permissions/decidim/participatory_processes/permissions.rb +11 -15
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_type_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/participatory_process_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/admin_log/step_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +4 -40
- data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +0 -68
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +6 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -42
- data/app/queries/decidim/participatory_processes/admin/admin_users.rb +1 -1
- data/app/queries/decidim/participatory_processes/admin/moderators.rb +1 -1
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +4 -4
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +24 -29
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +72 -50
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +15 -9
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +49 -54
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +28 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +33 -39
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb +18 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +18 -25
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +54 -54
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +18 -5
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/_form.html.erb +6 -8
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +14 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +47 -50
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +14 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +17 -6
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +59 -60
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +16 -5
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +193 -146
- data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +25 -11
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +111 -128
- data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +16 -9
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +6 -10
- data/app/views/decidim/participatory_processes/participatory_processes/_collection.html.erb +8 -0
- data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +21 -8
- data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +19 -17
- data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +1 -8
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +14 -128
- data/app/views/layouts/decidim/_process_header.html.erb +15 -26
- data/app/views/layouts/decidim/_process_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/admin/_manage_processes.html.erb +36 -0
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +12 -14
- data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +23 -13
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +13 -0
- data/app/views/layouts/decidim/admin/participatory_process_type.html.erb +13 -11
- data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -8
- data/app/views/layouts/decidim/participatory_process.html.erb +7 -14
- data/config/locales/ar.yml +1 -55
- data/config/locales/bg.yml +0 -518
- data/config/locales/ca.yml +50 -70
- data/config/locales/cs.yml +51 -71
- data/config/locales/de.yml +52 -72
- data/config/locales/el.yml +8 -64
- data/config/locales/en.yml +52 -72
- data/config/locales/es-MX.yml +49 -69
- data/config/locales/es-PY.yml +49 -69
- data/config/locales/es.yml +49 -69
- data/config/locales/eu.yml +89 -112
- data/config/locales/fi-plain.yml +50 -70
- data/config/locales/fi.yml +51 -71
- data/config/locales/fr-CA.yml +51 -71
- data/config/locales/fr.yml +52 -72
- data/config/locales/ga-IE.yml +0 -16
- data/config/locales/gl.yml +0 -67
- data/config/locales/hu.yml +6 -66
- data/config/locales/id-ID.yml +1 -55
- data/config/locales/is-IS.yml +0 -24
- data/config/locales/it.yml +0 -67
- data/config/locales/ja.yml +51 -71
- data/config/locales/lb.yml +1 -153
- data/config/locales/lt.yml +39 -65
- data/config/locales/lv.yml +1 -59
- data/config/locales/nl.yml +0 -67
- data/config/locales/no.yml +0 -92
- data/config/locales/pl.yml +0 -124
- data/config/locales/pt-BR.yml +1 -113
- data/config/locales/pt.yml +0 -67
- data/config/locales/ro-RO.yml +4 -64
- data/config/locales/ru.yml +0 -49
- data/config/locales/sk.yml +1 -56
- data/config/locales/sl.yml +0 -7
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +15 -66
- data/config/locales/tr-TR.yml +7 -68
- data/config/locales/uk.yml +0 -49
- data/config/locales/zh-CN.yml +2 -63
- data/config/locales/zh-TW.yml +3 -63
- data/db/migrate/20220315100140_change_steps_dates_to_datetime.rb +8 -0
- data/lib/decidim/api/participatory_process_step_type.rb +2 -2
- data/lib/decidim/participatory_processes/admin_engine.rb +20 -139
- data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +278 -0
- data/lib/decidim/participatory_processes/engine.rb +13 -103
- data/lib/decidim/participatory_processes/menu.rb +190 -0
- data/lib/decidim/participatory_processes/participatory_space.rb +7 -204
- data/lib/decidim/participatory_processes/query_extensions.rb +2 -2
- data/lib/decidim/participatory_processes/seeds.rb +164 -0
- data/lib/decidim/participatory_processes/test/factories.rb +58 -66
- data/lib/decidim/participatory_processes/version.rb +1 -1
- data/lib/tasks/decidim_participatory_processes.rake +8 -0
- metadata +62 -67
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb +0 -21
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters_small_view.erb +0 -18
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/participatory_space_filters.erb +0 -6
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/show.erb +0 -8
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/title_filter_order.erb +0 -8
- data/app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes_cell.rb +0 -60
- data/app/cells/decidim/participatory_process_groups/content_blocks/html/show.erb +0 -3
- data/app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb +0 -13
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb +0 -28
- data/app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb +0 -15
- data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +0 -43
- data/app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb +0 -64
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +0 -9
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +0 -14
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +0 -48
- data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +0 -60
- data/app/cells/decidim/participatory_processes/process_group_s/image.erb +0 -1
- data/app/cells/decidim/participatory_processes/process_group_s/show.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_m/data.erb +0 -21
- data/app/cells/decidim/participatory_processes/process_m/footer.erb +0 -14
- data/app/cells/decidim/participatory_processes/process_m/tags.erb +0 -8
- data/app/cells/decidim/participatory_processes/process_m_cell.rb +0 -87
- data/app/cells/decidim/participatory_processes/process_s/image.erb +0 -1
- data/app/cells/decidim/participatory_processes/process_s/show.erb +0 -14
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +0 -58
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_admin.rb +0 -58
- data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +0 -22
- data/app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb +0 -40
- data/app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb +0 -40
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +0 -56
- data/app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb +0 -28
- data/app/controllers/decidim/participatory_processes/widgets_controller.rb +0 -37
- data/app/packs/src/decidim/participatory_processes/filters.js +0 -28
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +0 -16
- data/app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb +0 -7
- data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +0 -18
- data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +0 -10
- data/app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb +0 -1
- data/app/views/decidim/participatory_processes/participatory_processes/_participatory_process_group.html.erb +0 -4
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +0 -39
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +0 -31
- data/app/views/layouts/decidim/_process_header_steps.html.erb +0 -37
- data/app/views/layouts/decidim/_process_navigation.html.erb +0 -20
- data/config/locales/he-IL.yml +0 -1
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/decidim-participatory_processes.gemspec +0 -31
@@ -1,137 +1,120 @@
|
|
1
1
|
<% add_decidim_page_title(t("participatory_processes", scope: "decidim.admin.titles")) %>
|
2
|
-
|
3
|
-
<%= sidebar_menu(:admin_participatory_processes_menu).render %>
|
4
|
-
<% end %>
|
2
|
+
<%= admin_tabs(:admin_participatory_processes_menu).render %>
|
5
3
|
|
6
|
-
<div class="card
|
7
|
-
<div class="
|
8
|
-
<
|
9
|
-
<%= t("
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
edit_participatory_process_group_path(process_group) %>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<% if allowed_to? :import, :process %>
|
24
|
-
<%= link_to t("actions.import_process", scope: "decidim.admin"),
|
25
|
-
new_import_path,
|
26
|
-
class: "button tiny button--title" %>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<button data-toggle="process_groups" class="dropdown button tiny button--title">
|
30
|
-
<%= t("actions.filter.process_groups", scope: "decidim.admin") %>
|
31
|
-
</button>
|
32
|
-
<div id="process_groups" class="dropdown-pane" data-position="bottom" data-dropdown data-auto-focus="true">
|
33
|
-
<ul class="list-reset">
|
34
|
-
<%= link_to query_params_with(decidim_participatory_process_group_id_eq: nil) do %>
|
35
|
-
<li><%= t("actions.filter.all_processes", scope: "decidim.admin") %></li>
|
4
|
+
<div class="card" id="processes">
|
5
|
+
<div class="flex justify-end" data-group-filter>
|
6
|
+
<button data-toggle="process_groups" class="button button__sm button__secondary">
|
7
|
+
<%= t("actions.filter.process_groups", scope: "decidim.admin") %>
|
8
|
+
<%= icon "arrow-down-s-line", class: "dropdown-filter-icon" %>
|
9
|
+
</button>
|
10
|
+
<div id="process_groups" class="dropdown-pane" data-position="bottom" data-dropdown data-auto-focus="true">
|
11
|
+
<ul>
|
12
|
+
<%= link_to query_params_with(decidim_participatory_process_group_id_eq: nil) do %>
|
13
|
+
<li><%= t("actions.filter.all_processes", scope: "decidim.admin") %></li>
|
14
|
+
<% end %>
|
15
|
+
<% process_groups_for_select.each do |group_title, group_id| %>
|
16
|
+
<%= link_to query_params_with(decidim_participatory_process_group_id_eq: group_id) do %>
|
17
|
+
<li><%= group_title %></li>
|
36
18
|
<% end %>
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<% end %>
|
41
|
-
<% end %>
|
42
|
-
</ul>
|
43
|
-
</div>
|
44
|
-
</h2>
|
19
|
+
<% end %>
|
20
|
+
</ul>
|
21
|
+
</div>
|
45
22
|
</div>
|
23
|
+
<% if process_group %>
|
24
|
+
<div>
|
25
|
+
<%= link_to translated_attribute(process_group.title),
|
26
|
+
edit_participatory_process_group_path(process_group) %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
<br>
|
46
30
|
<%= admin_filter_selector %>
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<strong class="text-success"><%= t("participatory_processes.index.published", scope: "decidim.admin") %></strong>
|
101
|
-
<% else %>
|
102
|
-
<strong class="text-alert"><%= t("participatory_processes.index.not_published", scope: "decidim.admin") %></strong>
|
103
|
-
<% end %>
|
104
|
-
</td>
|
105
|
-
<td class="table-list__actions">
|
106
|
-
<% if allowed_to? :create, :process, process: process %>
|
107
|
-
<%= icon_link_to "data-transfer-download", participatory_process_export_path(process), t("actions.export", scope: "decidim.admin"), method: :post, class: "action-icon--export" %>
|
108
|
-
<% else %>
|
109
|
-
<span class="action-space icon"></span>
|
110
|
-
<% end %>
|
31
|
+
</div>
|
32
|
+
<div class="table-scroll">
|
33
|
+
<table class="table-list">
|
34
|
+
<thead>
|
35
|
+
<tr>
|
36
|
+
<th>
|
37
|
+
<%= sort_link(query, :title, t("models.participatory_process.fields.title", scope: "decidim.admin")) %>
|
38
|
+
</th>
|
39
|
+
<th>
|
40
|
+
<%= sort_link(query, :created_at, t("models.participatory_process.fields.created_at", scope: "decidim.admin"), default_order: :desc) %>
|
41
|
+
</th>
|
42
|
+
<th>
|
43
|
+
<%= sort_link(query, :private_space, t("models.participatory_process.fields.private", scope: "decidim.admin")) %>
|
44
|
+
</th>
|
45
|
+
<th class="table-list__actions">
|
46
|
+
<%= sort_link(query, :published_at, t("models.participatory_process.fields.published", scope: "decidim.admin")) %>
|
47
|
+
</th>
|
48
|
+
<th>
|
49
|
+
<%= t("models.participatory_process.fields.actions", scope: "decidim.admin") %>
|
50
|
+
</th>
|
51
|
+
</tr>
|
52
|
+
</thead>
|
53
|
+
<tbody>
|
54
|
+
<% @participatory_processes.each do |process| %>
|
55
|
+
<tr>
|
56
|
+
<td>
|
57
|
+
<% if process.promoted? %>
|
58
|
+
<%= icon_with_tooltip "star-s-fill", t("models.assembly.fields.promoted", scope: "decidim.admin") %>
|
59
|
+
<% end %>
|
60
|
+
<% if allowed_to? :update, :process, process: process %>
|
61
|
+
<%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %><br>
|
62
|
+
<% else %>
|
63
|
+
<%= translated_attribute(process.title) %>
|
64
|
+
<% end %>
|
65
|
+
</td>
|
66
|
+
<td class="table-list__date">
|
67
|
+
<%= l process.created_at, format: :short %>
|
68
|
+
</td>
|
69
|
+
<td class="table-list__state">
|
70
|
+
<% if process.private_space? %>
|
71
|
+
<span><%= t("participatory_processes.index.private", scope: "decidim.admin") %></span>
|
72
|
+
<% else %>
|
73
|
+
<span><%= t("participatory_processes.index.public", scope: "decidim.admin") %></span>
|
74
|
+
<% end %>
|
75
|
+
</td>
|
76
|
+
<td class="table-list__state">
|
77
|
+
<% if process.published? %>
|
78
|
+
<span class="label success !text-sm"><%= t("participatory_processes.index.published", scope: "decidim.admin") %></span>
|
79
|
+
<% else %>
|
80
|
+
<span class="label alert !text-sm"><%= t("participatory_processes.index.unpublished", scope: "decidim.admin") %></span>
|
81
|
+
<% end %>
|
82
|
+
</td>
|
83
|
+
<td class="table-list__actions">
|
111
84
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
85
|
+
<% if allowed_to? :update, :process, process: process %>
|
86
|
+
<%= icon_link_to "pencil-line", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %>
|
87
|
+
<% else %>
|
88
|
+
<span class="action-space icon"></span>
|
89
|
+
<% end %>
|
117
90
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
91
|
+
<% if allowed_to? :create, :process, process: process %>
|
92
|
+
<%= icon_link_to "download-line", participatory_process_export_path(process), t("actions.export", scope: "decidim.admin"), method: :post, class: "action-icon--export" %>
|
93
|
+
<% else %>
|
94
|
+
<span class="action-space icon"></span>
|
95
|
+
<% end %>
|
123
96
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
97
|
+
<% if allowed_to? :create, :process, process: process %>
|
98
|
+
<%= icon_link_to "file-copy-line", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %>
|
99
|
+
<% else %>
|
100
|
+
<span class="action-space icon"></span>
|
101
|
+
<% end %>
|
102
|
+
|
103
|
+
<% if allowed_to? :preview, :process, process: process %>
|
104
|
+
<%= icon_link_to "eye-line", decidim_participatory_processes.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview", target: "_blank", data: { "external-link": false } %>
|
105
|
+
<% else %>
|
106
|
+
<span class="action-space icon"></span>
|
107
|
+
<% end %>
|
108
|
+
|
109
|
+
<% if allowed_to? :read, :moderation, process: process %>
|
110
|
+
<%= icon_link_to "flag-line", moderations_path(process), t("actions.moderate", scope: "decidim.admin"), class: "action-icon--moderate" %>
|
111
|
+
<% else %>
|
112
|
+
<span class="action-space icon"></span>
|
113
|
+
<% end %>
|
114
|
+
</td>
|
115
|
+
</tr>
|
116
|
+
<% end %>
|
117
|
+
</tbody>
|
118
|
+
</table>
|
137
119
|
</div>
|
120
|
+
<%= decidim_paginate @participatory_processes %>
|
@@ -1,12 +1,19 @@
|
|
1
1
|
<% add_decidim_page_title(t("participatory_processes.new.title", scope: "decidim.admin")) %>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("title", scope: "decidim.admin.participatory_processes.new") %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
5
7
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
<div class="item__edit item__edit-1col">
|
9
|
+
<div class="item__edit-form">
|
10
|
+
<%= decidim_form_for(@form, html: { class: "form form-defaults new_participatory_process" }) do |f| %>
|
11
|
+
<%= render partial: "form", object: f %>
|
12
|
+
<div class="item__edit-sticky">
|
13
|
+
<div class="item__edit-sticky-container">
|
14
|
+
<%= f.submit t("participatory_processes.new.create", scope: "decidim.admin"), class: "button button__sm button__secondary" %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
11
18
|
</div>
|
12
|
-
|
19
|
+
</div>
|
@@ -10,15 +10,11 @@
|
|
10
10
|
)
|
11
11
|
%>
|
12
12
|
|
13
|
-
<div class="
|
14
|
-
|
15
|
-
<%
|
16
|
-
|
17
|
-
|
18
|
-
<% end %>
|
19
|
-
</div>
|
13
|
+
<div class="participatory-space__container">
|
14
|
+
<% active_content_blocks.each do |content_block| %>
|
15
|
+
<% next unless content_block.manifest %>
|
16
|
+
<%= cell content_block.manifest.cell, content_block %>
|
17
|
+
<% end %>
|
20
18
|
</div>
|
21
19
|
|
22
|
-
|
23
|
-
<%= javascript_pack_tag "decidim_participatory_processes" %>
|
24
|
-
<% end %>
|
20
|
+
<%= append_javascript_pack_tag "decidim_participatory_processes" %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<% date_filter_text = %w(active upcoming past all).include?(params.dig(:filter, :with_date)) ? params.dig(:filter, :with_date) : default_date_filter %>
|
2
|
+
<h2 class="h5 md:h3 decorator"><%= t(date_filter_text, scope: "decidim.participatory_processes.participatory_processes.filters.counters", count: collection.total_count) %></h2>
|
3
|
+
|
4
|
+
<div class="card__grid-grid">
|
5
|
+
<%= render(collection) %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<%= decidim_paginate collection %>
|
@@ -1,9 +1,22 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<%= render layout:"layouts/decidim/shared/layout_center", locals: { columns: 8 } do %>
|
2
|
+
<div class="text-center py-10">
|
3
|
+
<h2 class="title-decorator inline-block text-left">
|
4
|
+
<%= t("decidim.pages.participatory_space.metrics.headline", name: translated_attribute(current_participatory_space.title)) %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<% if current_participatory_space.private_space? %>
|
9
|
+
<%= cell("decidim/announcement", t("participatory_processes.show.private_space", scope: "decidim"), callout_class: "alert") %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<div id="metrics" class="metric__container">
|
13
|
+
<%= metrics.params %>
|
14
|
+
<%= metrics.render_charts Decidim.metrics_registry.filtered(scope: "participatory_process", sort: true) %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<%= link_to participatory_process_path(current_participatory_space), class: "button button__sm button__text-secondary mt-10" do %>
|
18
|
+
<%= icon "arrow-left-line" %>
|
19
|
+
<span><%= t("back_to_process", scope: "decidim.participatory_processes.participatory_process_steps.index") %></span>
|
20
|
+
<% end %>
|
21
|
+
|
3
22
|
<% end %>
|
4
|
-
<div class="section" id="metrics">
|
5
|
-
<%= metrics.params %>
|
6
|
-
<%= metrics.medium_stats %>
|
7
|
-
<%= metrics.big_stats %>
|
8
|
-
<%= metrics.small_stats %>
|
9
|
-
</div>
|
@@ -8,28 +8,30 @@ edit_link(
|
|
8
8
|
)
|
9
9
|
%>
|
10
10
|
|
11
|
-
<%=
|
11
|
+
<%= append_stylesheet_pack_tag "decidim_participatory_processes", media: "all" %>
|
12
|
+
<%= append_javascript_pack_tag "decidim_participatory_processes" %>
|
13
|
+
|
14
|
+
<% content_for :aside do %>
|
15
|
+
<h1 class="title-decorator"><%= component_name %></h1>
|
16
|
+
|
17
|
+
<%= render partial: "decidim/shared/filters", locals: { filter_sections:, skip_to_id: "processes-grid" } %>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<%= render layout:"layouts/decidim/shared/layout_two_col" do %>
|
21
|
+
|
22
|
+
<%= participatory_space_floating_help %>
|
23
|
+
|
12
24
|
<% if promoted_collection.any? %>
|
13
|
-
<section id="highlighted-processes" class="
|
14
|
-
<
|
25
|
+
<section id="highlighted-processes" class="layout-main__section layout-main__heading">
|
26
|
+
<h2 class="h5 md:h3 decorator"><%= t("participatory_processes.index.promoted_processes", scope: "layouts.decidim") %></h2>
|
27
|
+
|
15
28
|
<% promoted_collection.each do |promoted_item| %>
|
16
|
-
<%=
|
29
|
+
<%= card_for promoted_item, highlight: true, size: :g %>
|
17
30
|
<% end %>
|
18
31
|
</section>
|
19
32
|
<% end %>
|
20
33
|
|
21
|
-
<section id="processes-grid" class="
|
22
|
-
|
23
|
-
<%= render partial: "order_by_processes" %>
|
24
|
-
</div>
|
25
|
-
<%= render partial: "decidim/shared/participatory_space_filters/show" %>
|
26
|
-
<p class="loading"><%= t(".loading") %></p>
|
27
|
-
<div class="row small-up-1 medium-up-2 large-up-3 card-grid">
|
28
|
-
<%= render(collection) %>
|
29
|
-
</div>
|
34
|
+
<section id="processes-grid" class="layout-main__section layout-main__heading">
|
35
|
+
<%= render partial: "collection" %>
|
30
36
|
</section>
|
31
37
|
<% end %>
|
32
|
-
|
33
|
-
<% content_for :js_content do %>
|
34
|
-
<%= javascript_pack_tag "decidim_participatory_processes" %>
|
35
|
-
<% end %>
|
@@ -1,8 +1 @@
|
|
1
|
-
|
2
|
-
var $order_by_filters = $grid.find('.processes-grid-order-by');
|
3
|
-
var $loading = $grid.find('.loading');
|
4
|
-
|
5
|
-
$grid.find('.card-grid').html('<%= j(render(collection)).strip.html_safe %>');
|
6
|
-
$order_by_filters.html('<%= j(render(partial: "decidim/participatory_processes/participatory_processes/order_by_processes", locals: { include_filter: true })).strip.html_safe %>');
|
7
|
-
$order_by_filters.foundation();
|
8
|
-
$loading.hide();
|
1
|
+
$('#processes-grid').html('<%= j(render(partial: "collection")).strip.html_safe %>');
|
@@ -14,140 +14,26 @@
|
|
14
14
|
)
|
15
15
|
%>
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
<%# NOTE: this elements goes outside of the .participatory-space__container block %>
|
19
18
|
<% if current_participatory_space.private_space? %>
|
20
|
-
|
21
|
-
|
19
|
+
<section class="participatory-space__block-reference alert">
|
20
|
+
<%= t("private_space", scope: "decidim.participatory_processes.show") %>
|
21
|
+
</section>
|
22
22
|
<% end %>
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
<div class="row column">
|
27
|
-
<div class="row">
|
28
|
-
<div class="columns medium-7 mediumlarge-8">
|
29
|
-
<div class="section">
|
30
|
-
<h2 class="show-for-sr"><%= t(".title") %></h2>
|
31
|
-
<% if participatory_process_group.present? %>
|
32
|
-
<%= render partial: "participatory_process_group" %>
|
33
|
-
<% end %>
|
34
|
-
<div class="lead">
|
35
|
-
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %>
|
36
|
-
</div>
|
37
|
-
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %>
|
38
|
-
</div>
|
39
|
-
<%= attachments_for current_participatory_space %>
|
40
|
-
<%= render_hook(:participatory_space_highlighted_elements) %>
|
41
|
-
|
42
|
-
<% if related_processes.any? %>
|
43
|
-
<div class="section row collapse related_processes">
|
44
|
-
<h4 class="section-heading"><%= t "related_processes", scope: "decidim.participatory_processes.show" %></h4>
|
45
|
-
<div class="collapsible-list row small-up-1 medium-up-2 card-grid">
|
46
|
-
<% related_processes.each do |related_process| %>
|
47
|
-
<%= card_for(related_process) %>
|
48
|
-
<% end %>
|
49
|
-
</div>
|
50
|
-
</div>
|
51
|
-
<% end %>
|
52
|
-
|
53
|
-
<% if linked_assemblies.any? %>
|
54
|
-
<div class="section">
|
55
|
-
<h4 class="section-heading"><%= t("participatory_process.show.related_assemblies", scope: "decidim") %></h4>
|
56
|
-
<div class="row small-up-1 medium-up-2 card-grid">
|
57
|
-
<% linked_assemblies.each do |linked_assembly| %>
|
58
|
-
<%= card_for(linked_assembly) %>
|
59
|
-
<% end %>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
<% end %>
|
63
|
-
|
64
|
-
</div>
|
65
|
-
<div class="section columns medium-5 mediumlarge-4 large-3">
|
66
|
-
<div class="card extra">
|
67
|
-
<div class="card__content">
|
68
|
-
<%= render partial: "decidim/shared/follow_button",
|
69
|
-
locals: { followable: current_participatory_space, large: false } %>
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
<div class="card extra definition-data">
|
73
|
-
<% if translated_attribute(current_participatory_space.participatory_scope).present? %>
|
74
|
-
<div class="definition-data__item participatory_scope">
|
75
|
-
<span class="definition-data__title"><%= t("participatory_scope", scope: "decidim.participatory_processes.show") %></span>
|
76
|
-
<%= translated_attribute(current_participatory_space.participatory_scope) %>
|
77
|
-
</div>
|
78
|
-
<% end %>
|
79
|
-
|
80
|
-
<% if translated_attribute(current_participatory_space.target).present? %>
|
81
|
-
<div class="definition-data__item target">
|
82
|
-
<span class="definition-data__title"><%= t("target", scope: "decidim.participatory_processes.show") %></span>
|
83
|
-
<%= translated_attribute(current_participatory_space.target) %>
|
84
|
-
</div>
|
85
|
-
<% end %>
|
86
|
-
|
87
|
-
<% if translated_attribute(current_participatory_space.participatory_structure).present? %>
|
88
|
-
<div class="definition-data__item participatory_structure">
|
89
|
-
<span class="definition-data__title"><%= t("participatory_structure", scope: "decidim.participatory_processes.show") %></span>
|
90
|
-
<%= translated_attribute(current_participatory_space.participatory_structure) %>
|
91
|
-
</div>
|
92
|
-
<% end %>
|
24
|
+
<div class="participatory-space__container">
|
93
25
|
|
94
|
-
|
95
|
-
|
96
|
-
<div class="definition-data__item area">
|
97
|
-
<span class="definition-data__title"><%= t("area", scope: "decidim.participatory_processes.show") %></span>
|
98
|
-
<% if translated_attribute(area.area_type&.name).present? %>
|
99
|
-
<%= translated_attribute(area.area_type.name) %><span>-</span>
|
100
|
-
<% end %>
|
101
|
-
<%= translated_attribute(area.name) %>
|
102
|
-
</div>
|
103
|
-
<% end %>
|
26
|
+
<%= participatory_space_floating_help %>
|
27
|
+
<%= cell "decidim/participatory_processes/process_step", current_participatory_space, display_steps: params[:display_steps] %>
|
104
28
|
|
105
|
-
|
106
|
-
|
107
|
-
<span class="definition-data__title"><%= t("scope", scope: "decidim.participatory_processes.show") %></span>
|
108
|
-
<%= translated_attribute(current_participatory_space.meta_scope) %>
|
109
|
-
</div>
|
110
|
-
<% end %>
|
29
|
+
<% active_content_blocks.each do |content_block| %>
|
30
|
+
<% next unless content_block.manifest %>
|
111
31
|
|
112
|
-
|
113
|
-
<div class="definition-data__item local_area">
|
114
|
-
<span class="definition-data__title"><%= t("local_area", scope: "decidim.participatory_processes.show") %></span>
|
115
|
-
<%= translated_attribute(current_participatory_space.local_area) %>
|
116
|
-
</div>
|
117
|
-
<% end %>
|
118
|
-
|
119
|
-
<% if translated_attribute(current_participatory_space.developer_group).present? %>
|
120
|
-
<div class="definition-data__item developer-group">
|
121
|
-
<span class="definition-data__title"><%= t("developer_group", scope: "decidim.participatory_processes.show") %></span>
|
122
|
-
<%= translated_attribute(current_participatory_space.developer_group) %>
|
123
|
-
</div>
|
124
|
-
<% end %>
|
125
|
-
|
126
|
-
<% if current_participatory_space.start_date.present? %>
|
127
|
-
<div class="definition-data__item start-date">
|
128
|
-
<span class="definition-data__title"><%= t("start_date", scope: "decidim.participatory_processes.show") %></span>
|
129
|
-
<%== l(current_participatory_space.start_date, format: :long) %>
|
130
|
-
</div>
|
131
|
-
<% end %>
|
132
|
-
|
133
|
-
<% if current_participatory_space.end_date.present? %>
|
134
|
-
<div class="definition-data__item end-date">
|
135
|
-
<span class="definition-data__title"><%= t("end_date", scope: "decidim.participatory_processes.show") %></span>
|
136
|
-
<%== l(current_participatory_space.end_date, format: :long) %>
|
137
|
-
</div>
|
138
|
-
<% end %>
|
139
|
-
</div>
|
140
|
-
<%= resource_reference(current_participatory_space) %>
|
141
|
-
<%= render partial: "decidim/shared/share_modal" %>
|
142
|
-
<%= embed_modal_for participatory_process_widget_url(current_participatory_space, format: :js) %>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<% if current_participatory_space.show_statistics? %>
|
147
|
-
<%= cell "decidim/statistics", stats.collection %>
|
32
|
+
<%= cell content_block.manifest.cell, content_block %>
|
148
33
|
<% end %>
|
149
34
|
|
150
|
-
<% if current_participatory_space.show_metrics? %>
|
151
|
-
<%= render partial: "metrics" %>
|
152
|
-
<% end %>
|
153
35
|
</div>
|
36
|
+
|
37
|
+
<section class="participatory-space__block-reference">
|
38
|
+
<%= resource_reference(current_participatory_space) %>
|
39
|
+
</section>
|
@@ -1,28 +1,17 @@
|
|
1
|
-
<
|
2
|
-
<div class="
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
<
|
10
|
-
<%=
|
11
|
-
</
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<% if current_participatory_space.hashtag.present? %>
|
16
|
-
<span class="process-header__hashtag">
|
17
|
-
<%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", twitter_hashtag_url(decidim_html_escape(current_participatory_space.hashtag)), target: "_blank" %>
|
18
|
-
</span>
|
19
|
-
<% end %>
|
20
|
-
<%= translated_attribute(current_participatory_space.subtitle) %>
|
21
|
-
</p>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
<%= render partial: "layouts/decidim/process_header_steps", locals: { participatory_process: current_participatory_space } %>
|
1
|
+
<section style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');">
|
2
|
+
<div class="process__hero">
|
3
|
+
<div class="process__hero-text">
|
4
|
+
<h1 class="h1 text-5xl">
|
5
|
+
<%= translated_attribute(current_participatory_space.title) %>
|
6
|
+
</h1>
|
7
|
+
<p class="process__hero-slogan">
|
8
|
+
<% if current_participatory_space.hashtag.present? %>
|
9
|
+
<span>
|
10
|
+
<%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", twitter_hashtag_url(decidim_html_escape(current_participatory_space.hashtag)), target: "_blank" %>
|
11
|
+
</span>
|
12
|
+
<% end %>
|
13
|
+
<%= translated_attribute(current_participatory_space.subtitle) %>
|
14
|
+
</p>
|
25
15
|
</div>
|
26
16
|
</div>
|
27
|
-
|
28
|
-
</div>
|
17
|
+
</section>
|