<% add_decidim_meta_tags({ description: present(@proposal).body, title: present(@proposal).title, url: proposal_url(@proposal.id) }) %> <% edit_link( resource_locator(@proposal).edit, :edit, :proposal, proposal: @proposal ) %> <% extra_admin_link( resource_locator(@proposal).show(anchor: "proposal-answer"), :create, :proposal_answer, { proposal: @proposal }, { name: t(".answer"), icon: "comment-square" } ) %> <%= render partial: "voting_rules" %> <% if component_settings.participatory_texts_enabled? %>
<%= t(".back_to") %> <%= link_to translated_attribute(@participatory_text.title), main_component_path(current_component) %>
<% end %> <%= emendation_announcement_for @proposal %>
<%= link_to proposals_path(filter_link_params), class: "small hollow" do %> <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %> <%= t(".back_to_list") %> <% end %>
<% if @proposal.emendation? %>

<%= t(".changes_at_title", title: present(@proposal.amendable).title(links: true, html_escape: true)) %>

<% else %>

<%= present(@proposal).title(links: true, html_escape: true) %>

<% end %> <% unless component_settings.participatory_texts_enabled? %> <%= cell("decidim/coauthorships", @proposal, has_actions: true, size: 3, context: { current_user: current_user }) %> <% end %>
<% if @proposal.emendation? %> <%= cell("decidim/diff", proposal_presenter.versions.last) %> <% elsif not ["section","subsection"].include? @proposal.participatory_text_level %> <%== cell("decidim/proposals/proposal_m", @proposal, full_badge: true).badge %> <%= render_proposal_body(@proposal) %> <% end %> <% if component_settings.geocoding_enabled? %> <%= render partial: "decidim/shared/static_map", locals: { icon_name: "proposals", geolocalizable: @proposal } %> <% end %> <% if proposal_has_costs? && current_settings.answers_with_costs? %> <%= cell("decidim/proposals/cost_report", @proposal) %> <% end %> <%= cell "decidim/proposals/proposal_tags", @proposal %>
<%= cell("decidim/announcement", proposal_reason_callout_args) if @proposal.answered? && @proposal.published_state? %> <%= linked_resources_for @proposal, :results, "included_proposals" %> <%= linked_resources_for @proposal, :projects, "included_proposals" %> <%= linked_resources_for @proposal, :meetings, "proposals_from_meeting" %> <%= linked_resources_for @proposal, :proposals, "copied_from_component" %> <%= cell "decidim/endorsers_list", @proposal %> <%= amendments_for @proposal %>
<% if @proposal.amendable? && allowed_to?(:edit, :proposal, proposal: @proposal) %> <%= link_to t(".edit_proposal"), edit_proposal_path(@proposal), class: "button hollow expanded button--sc" %> <% else %> <%= amend_button_for @proposal %> <% end %> <%= emendation_actions_for @proposal %> <% if current_settings.votes_enabled? || show_endorsements_card? || current_user %> <% if @proposal.withdrawn? %>
<% if current_settings.votes_enabled? %> <%= render partial: "votes_count", locals: { proposal: @proposal, from_proposals_list: false } %> <% end %>
<% else %>
<% if current_settings.votes_enabled? %> <%= render partial: "votes_count", locals: { proposal: @proposal, from_proposals_list: false } %> <%= render partial: "vote_button", locals: { proposal: @proposal, from_proposals_list: false } %> <% end %>
<% if endorsements_enabled? %>
<%= endorsement_buttons_cell(@proposal) %>
<% end %>
"> <%= link_to "#comments", class: "button small compact hollow secondary button--nomargin expanded" do %> <%= present(@proposal).title(html_escape: true) %> <%= icon "comment-square", class: "icon--small", aria_label: t(".comments"), role: "img" %> <%= @proposal.comments_count %> <% end %>

<%= follow_button_for(@proposal) %>
<% end %> <% end %> <%= amenders_list_for(@proposal) %> <%= resource_reference(@proposal) %> <%= resource_version(proposal_presenter, versions_path: proposal_versions_path(@proposal)) %> <%= cell("decidim/fingerprint", @proposal) %> <%= render partial: "decidim/shared/share_modal", locals: { resource: @proposal } %> <%= embed_modal_for proposal_widget_url(@proposal, format: :js) %> <%= cell "decidim/proposals/proposal_link_to_collaborative_draft", @proposal %> <%= cell "decidim/proposals/proposal_link_to_rejected_emendation", @proposal %>
<%= attachments_for @proposal %> <%= comments_for @proposal %> <%= render partial: "decidim/shared/flag_modal", locals: { reportable: @proposal, form: @report_form, url: decidim.report_path(sgid: @proposal.to_sgid.to_s) } %>