<% add_decidim_meta_tags({ image_url: current_participatory_space.attached_uploader(:hero_image).path, description: translated_attribute(current_participatory_space.short_description), url: assembly_url(current_participatory_space), twitter_handler: current_organization.twitter_handler }) %> <% edit_link( resource_locator(current_participatory_space).edit, :update, :assembly, assembly: 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.assemblies.show") } %> <% end %> <%= cell("decidim/announcement", current_participatory_space.announcement) %>
<% if current_participatory_space.parent.present? %>
<%= render partial: "decidim/assemblies/assemblies/nav_breadcumb", locals: { assemblies: current_participatory_space.ancestors.to_a } %>
<% end %>

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

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %>
<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %> <% if current_participatory_space.private_space? %> <%= assembly_features(current_participatory_space) %> <% end %>
<% if translated_attribute(current_participatory_space.purpose_of_action).present? || translated_attribute(current_participatory_space.internal_organisation).present? || translated_attribute(current_participatory_space.composition).present? %>
<% if translated_attribute(current_participatory_space.purpose_of_action).present? %>

<%= t("purpose_of_action", scope: "decidim.assemblies.show") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.purpose_of_action) %>
<% end %> <% if translated_attribute(current_participatory_space.internal_organisation).present? %>

<%= t("internal_organisation", scope: "decidim.assemblies.show") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.internal_organisation) %>
<% end %> <% if translated_attribute(current_participatory_space.composition).present? %>

<%= t("composition", scope: "decidim.assemblies.show") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.composition) %>
<% end %>
<% end %> <%= attachments_for current_participatory_space %> <%= render_hook(:participatory_space_highlighted_elements) %> <% if current_participatory_space.children.visible_for(current_user).published.count.positive? %>

<%= t("children", scope: "decidim.assemblies.show") %>

<%= render partial: "decidim/assemblies/assembly", collection: current_participatory_space.children.visible_for(current_user).published.order(weight: :asc) %>
<% end %> <%= participatory_processes_for_assembly(assembly_participatory_processes) if assembly_participatory_processes.present? %>
<%= render partial: "decidim/shared/follow_button", locals: { followable: current_participatory_space, large: false } %>
<% if translated_attribute(current_participatory_space.meta_scope).present? %>
<%= t("scope", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.meta_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.developer_group).present? %>
<%= t("developer_group", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.developer_group) %>
<% end %> <% if translated_attribute(current_participatory_space.local_area).present? %>
<%= t("local_area", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.local_area) %>
<% end %> <% if translated_attribute(current_participatory_space.target).present? %>
<%= t("target", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.target) %>
<% end %> <% if translated_attribute(current_participatory_space.participatory_scope).present? %>
<%= t("participatory_scope", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.participatory_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.participatory_structure).present? %>
<%= t("participatory_structure", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.participatory_structure) %>
<% end %> <% area = current_participatory_space.area %> <% if translated_attribute(area&.name).present? %>
<%= t("area", scope: "decidim.assemblies.show") %> <% if translated_attribute(area.area_type&.name).present? %> <%= translated_attribute(area.area_type.name) %>- <% end %> <%= translated_attribute(area.name) %>
<% end %> <% if current_participatory_space.assembly_type.present? %>
<%= t("assembly_type", scope: "decidim.assemblies.show") %> <%= translated_attribute(current_participatory_space.assembly_type.title) %>
<% end %> <% if current_participatory_space.creation_date.present? %>
<%= t("creation_date", scope: "decidim.assemblies.show") %> <%= l current_participatory_space.creation_date, format: :decidim_short %>
<% end %> <% if current_participatory_space.created_by.present? %>
<%= t("created_by", scope: "decidim.assemblies.show") %> <% if current_participatory_space.created_by == "others" %> <%= translated_attribute(current_participatory_space.created_by_other) %> <% else %> <%= t("created_by.#{current_participatory_space.created_by }", scope: "decidim.assemblies") %> <% end %>
<% end %> <% if current_participatory_space.included_at.present? %>
<%= t("included_at", scope: "decidim.assemblies.show") %> <%= l current_participatory_space.included_at, format: :decidim_short %>
<% end %>
<%= t("duration", scope: "decidim.assemblies.show") %> <% if current_participatory_space.duration.present? %> <%= l current_participatory_space.duration, format: :decidim_short %> <% else %> <%= t("indefinite_duration", scope: "decidim.assemblies.show") %> <% end %>
<% if current_participatory_space.closing_date.present? %>
<%= t("closing_date", scope: "decidim.assemblies.show") %> <%= l(current_participatory_space.closing_date, format: :decidim_short) %>
<%= decidim_sanitize_editor translated_attribute(current_participatory_space.closing_date_reason) %>
<% end %> <%= social_handler_links(current_participatory_space) %>
<%= resource_reference(current_participatory_space) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for assembly_widget_url(current_participatory_space, format: :js) %>
<% if current_participatory_space.show_statistics? %> <%= cell "decidim/statistics", stats.collection %> <% end %>
<%= javascript_pack_tag "decidim_assemblies" %>