<% add_decidim_meta_tags({ image_url: current_participatory_space.hero_image.url, description: translated_attribute(current_participatory_space.short_description), url: assembly_url(current_participatory_space), twitter_handler: current_organization.twitter_handler }) %> <% if current_participatory_space.private_space? %> <%= render partial: "decidim/shared/private_participatory_space", locals: { text: t("assemblies.show.private_space", scope: "decidim") } %> <% end %>
<% if current_participatory_space.parent.present? %>
<%= render partial: "decidim/assemblies/assemblies/nav_breadcumb", locals: { assemblies: current_participatory_space.ancestors.to_a } %>
<% end %>
<%= decidim_sanitize translated_attribute(current_participatory_space.short_description) %>
<%= decidim_sanitize 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("assemblies.show.purpose_of_action", scope: "decidim") %>

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

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

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

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

<%= decidim_sanitize translated_attribute(current_participatory_space.composition) %>
<% end %>
<% end %> <%= render_hook(:assembly_meetings) %> <%= attachments_for current_participatory_space %> <% if current_participatory_space.children_count > 0 %>

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

<%= render partial: "decidim/assemblies/assembly", collection: current_participatory_space.children %>
<% end %> <%= participatory_processes_for_assembly(assembly_participatory_processes) if assembly_participatory_processes.present? %>
<%= render partial: "decidim/shared/follow_button", locals: { followable: current_participatory_space } %>
<% if translated_attribute(current_participatory_space.meta_scope).present? %>
<%= t("assemblies.show.scope", scope: "decidim") %> <%= translated_attribute(current_participatory_space.meta_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.developer_group).present? %>
<%= t("assemblies.show.developer_group", scope: "decidim") %> <%= translated_attribute(current_participatory_space.developer_group) %>
<% end %> <% if translated_attribute(current_participatory_space.local_area).present? %>
<%= t("assemblies.show.local_area", scope: "decidim") %> <%= translated_attribute(current_participatory_space.local_area) %>
<% end %> <% if translated_attribute(current_participatory_space.target).present? %>
<%= t("assemblies.show.target", scope: "decidim") %> <%= translated_attribute(current_participatory_space.target) %>
<% end %> <% if translated_attribute(current_participatory_space.participatory_scope).present? %>
<%= t("assemblies.show.participatory_scope", scope: "decidim") %> <%= translated_attribute(current_participatory_space.participatory_scope) %>
<% end %> <% if translated_attribute(current_participatory_space.participatory_structure).present? %>
<%= t("assemblies.show.participatory_structure", scope: "decidim") %> <%= translated_attribute(current_participatory_space.participatory_structure) %>
<% end %> <% if translated_attribute(current_participatory_space.try(:area).try(:name)).present? %>
<%= t("assemblies.show.area", scope: "decidim") %> <%= translated_attribute(current_participatory_space.area.area_type.name) %> - <%= translated_attribute(current_participatory_space.area.name) %>
<% end %> <% if current_participatory_space.assembly_type.presence %>
<%= t("assemblies.show.assembly_type", scope: "decidim") %> <% if current_participatory_space.assembly_type == "others" %> <%= translated_attribute(current_participatory_space.assembly_type_other) %> <% else %> <%= t("assembly_types.#{current_participatory_space.assembly_type }", scope: "decidim.assemblies") %> <% end %>
<% end %> <% if current_participatory_space.creation_date.presence %>
<%= t("assemblies.show.creation_date", scope: "decidim") %> <%= l current_participatory_space.creation_date, format: :datepicker %>
<% end %> <% if current_participatory_space.created_by.presence %>
<%= t("assemblies.show.created_by", scope: "decidim") %> <% 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 %>
<%= t("assemblies.show.duration", scope: "decidim") %> <% if current_participatory_space.duration.presence %> <%= l current_participatory_space.duration, format: :datepicker %> <% else %> <%= t("assemblies.show.indefinite_duration", scope: "decidim") %> <% end %>
<% if current_participatory_space.included_at.presence %>
<%= t("assemblies.show.included_at", scope: "decidim") %> <%= l current_participatory_space.included_at, format: :datepicker %>
<% end %> <% if current_participatory_space.closing_date.presence %>
<%= t("assemblies.show.closing_date", scope: "decidim") %> <%= l current_participatory_space.closing_date, format: :datepicker %>
<%= decidim_sanitize 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_assembly_widget_url(current_participatory_space, format: :js) %>
<% if current_participatory_space.show_statistics? %> <%= render partial: "statistics" %> <% end %>
<%= javascript_include_tag "decidim/proposals/social_share" %> <%= stylesheet_link_tag "decidim/proposals/social_share" %> <%= javascript_include_tag "decidim/assemblies/assemblies" %>