<% add_decidim_meta_tags({ image_url: current_initiative.type.attached_uploader(:banner_image).url, description: translated_attribute(current_initiative.description), title: translated_attribute(current_initiative.title), url: initiative_url(current_initiative.id) }) %> <% edit_link( resource_locator(current_participatory_space).edit, :read, :initiative ) %> <%= content_for :aside do %>
<% if current_initiative.published? || current_initiative.rejected? || current_initiative.accepted? || current_initiative.discarded? %> <% if current_initiative.votes_enabled? %>
<%= render partial: "vote_cabin", locals: { initiative: current_initiative } %>
<% end %> <% else %> <% if allowed_to?(:edit, :initiative, initiative: current_initiative) || allowed_to?(:send_to_technical_validation, :initiative, initiative: current_initiative) %>
<% if allowed_to? :edit, :initiative, initiative: current_initiative %> <%= link_to t(".edit"), edit_initiative_path(current_initiative), class: "button button__xl w-full button__secondary" %> <% end %> <% if allowed_to? :send_to_technical_validation, :initiative, initiative: current_initiative %> <%= link_to t(".send_to_technical_validation"), send_to_technical_validation_initiative_path(current_initiative), class: "button button__xl w-full button__secondary mt-4", data: { confirm: t(".confirm") } %> <% end %>
<% end %> <% end %> <% unless current_initiative.validating? %>
<%= render partial: "progress_bar" %>
<% end %>
<%= cell("decidim/nav_links", initiative_nav_items(current_initiative)) %>
<% if current_initiative.type.promoting_committee_enabled? && current_user&.admin? %>
<%= icon "account-circle-line", class: "fill-gray inline-block" %> <%= t("title", scope: "decidim.initiatives.admin.committee_requests.index") %>
<% if current_initiative.committee_members.empty? %> <%= t("no_members_yet", scope: "decidim.initiatives.admin.committee_requests.index") %> <% end %> <% current_initiative.committee_members.each do |request| %>
<%= card_for request.user %>
<% end %>
<% end %>
<%= icon "apps-line", class: "fill-gray inline-block" %> <%= t("initiative_data", scope: "decidim.initiatives.initiatives.show") %>

<%= t("state", scope: "decidim.initiatives.initiatives.show") %>

<%= render partial: "initiative_badge", locals: { initiative: current_initiative } %>
<% if current_initiative.offline_signature_type? || current_initiative.online_signature_type? %>

<%= t("signature_collection", scope: "decidim.initiatives.initiatives.show") %>

<% if current_initiative.offline_signature_type? %> <%= t("offline", scope: "activemodel.attributes.initiative.signature_type_values") %> <% end %> <% if current_initiative.online_signature_type? %> <%= t("online", scope: "activemodel.attributes.initiative.signature_type_values") %> <% end %>
<% end %>

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

<%= link_to translated_attribute(current_initiative.scope_name), initiatives_path(filter: { with_any_scope: [current_initiative.scope&.id] }) %>

<%= t("type", scope: "decidim.initiatives.initiatives.show") %>

<%= render partial: "tags_type", locals: { resource: current_initiative } %>
<% if current_initiative.area %>

<%= t("area", scope: "decidim.initiatives.initiatives.show") %>

<%= link_to translated_attribute(current_initiative.area_name), initiatives_path(filter: { with_any_area: [current_initiative.area.id] }) %>
<% end %>
<% end %> <%= participatory_space_floating_help %> <% if current_initiative.created? %> <% if allowed_to? :send_to_technical_validation, :initiative, initiative: current_initiative %> <%= cell("decidim/announcement", t(".send_to_technical_validation_announcement"), callout_class: "success") %> <% else %> <%= cell("decidim/announcement", t(".before_send_to_technical_validation_announcement", count: current_initiative.missing_committee_members, href: link_to(new_initiative_committee_request_url(current_initiative), new_initiative_committee_request_path(current_initiative))), callout_class: "warning") %> <% end %> <% end %> <% add_decidim_page_title(translated_attribute(current_initiative.title)) %>

<%= translated_attribute(current_initiative.title) %>

<%= decidim_sanitize_editor translated_attribute(current_initiative.description) %>
<% if tabs.any? %>
<% panels.each do |panel| %>
<%= send(panel[:method], *panel[:args]) %>
<% end %>
<% end %>
<%= render partial: "result", locals: { initiative: current_initiative } %>
<% if current_initiative.commentable? && current_initiative.published? %> <%= cell "decidim/comments_button", nil, display: current_initiative.commentable? && current_initiative.published? %> <% end %>
<%= cell "decidim/share_button", nil %>