<% add_decidim_meta_tags({ image_url: current_participatory_space.attached_uploader(:hero_image).path, description: translated_attribute(current_participatory_space.short_description), url: participatory_process_url(current_participatory_space), twitter_handler: current_organization.twitter_handler }) %> <% edit_link( resource_locator(current_participatory_space).edit, :update, :process, process: current_participatory_space ) %> <%= participatory_space_floating_help %> <% if current_participatory_space.private_space? %> <%= render partial: "decidim/shared/private_participatory_space", locals: { text: t("private_space", scope: "decidim.participatory_processes.show") } %> <% end %> <%= cell("decidim/announcement", current_participatory_space.announcement) %>

<%= t(".title") %>

<% if participatory_process_group.present? %> <%= render partial: "participatory_process_group" %> <% end %>
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %>
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %>
<%= attachments_for current_participatory_space %> <%= render_hook(:participatory_space_highlighted_elements) %> <% if related_processes.any? %> <% end %> <% if linked_assemblies.any? %>

<%= t("participatory_process.show.related_assemblies", scope: "decidim") %>

<% linked_assemblies.each do |linked_assembly| %> <%= card_for(linked_assembly) %> <% end %>
<% end %>
<%= render partial: "decidim/shared/follow_button", locals: { followable: current_participatory_space, large: false } %>
<% if translated_attribute(current_participatory_space.participatory_scope).present? %>
<%= t("participatory_scope", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.participatory_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.target).present? %>
<%= t("target", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.target) %>
<% end %> <% if translated_attribute(current_participatory_space.participatory_structure).present? %>
<%= t("participatory_structure", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.participatory_structure) %>
<% end %> <% area = current_participatory_space.area %> <% if translated_attribute(area&.name).present? %>
<%= t("area", scope: "decidim.participatory_processes.show") %> <% if translated_attribute(area.area_type&.name).present? %> <%= translated_attribute(area.area_type.name) %>- <% end %> <%= translated_attribute(area.name) %>
<% end %> <% if translated_attribute(current_participatory_space.meta_scope).present? %>
<%= t("scope", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.meta_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.local_area).present? %>
<%= t("local_area", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.local_area) %>
<% end %> <% if translated_attribute(current_participatory_space.developer_group).present? %>
<%= t("developer_group", scope: "decidim.participatory_processes.show") %> <%= translated_attribute(current_participatory_space.developer_group) %>
<% end %> <% if current_participatory_space.start_date.present? %>
<%= t("start_date", scope: "decidim.participatory_processes.show") %> <%== l(current_participatory_space.start_date, format: :long) %>
<% end %> <% if current_participatory_space.end_date.present? %>
<%= t("end_date", scope: "decidim.participatory_processes.show") %> <%== l(current_participatory_space.end_date, format: :long) %>
<% end %>
<%= resource_reference(current_participatory_space) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for participatory_process_widget_url(current_participatory_space, format: :js) %>
<% if current_participatory_space.show_statistics? %> <%= cell "decidim/statistics", stats.collection %> <% end %> <% if current_participatory_space.show_metrics? %> <%= render partial: "metrics" %> <% end %>