<% add_decidim_meta_tags({ description: present(@proposal).body, title: present(@proposal).title, url: proposal_url(@proposal.id) }) %> <%= 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 %>

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

<% unless component_settings.participatory_texts_enabled? %> <%= cell("decidim/coauthorships", @proposal, has_actions: true, size: 3, context: { current_user: current_user }) %> <% end %>
<% unless @proposal.emendation? %>
<%= t("version", scope:"decidim.proposals.collaborative_drafts.show", number: @proposal.versions_count) %> <%= t("of_versions", scope:"decidim.proposals.collaborative_drafts.show", number: @proposal.versions_count) %>
<%= link_to t("see_other_versions", scope:"decidim.proposals.collaborative_drafts.show"), proposal_versions_path(@proposal) %>
<% end %> <% if allowed_to?(:edit, :proposal, proposal: @proposal) %> <%= link_to t(".edit_proposal"), edit_proposal_path(@proposal), class: "button secondary hollow expanded button-sc button--icon follow-button" %> <% else %> <%= amend_button_for @proposal %> <% end %> <%= emendation_actions_for @proposal %> <% if current_settings.votes_enabled? || show_endorsements_card? || current_user %>
<% 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 %> <%= render partial: "endorsements_card_row", locals: { proposal: @proposal } %>
<%= follow_button_for(@proposal) %>
<% end %> <%= amenders_list_for(@proposal) %> <%= resource_reference(@proposal) %> <%= cell("decidim/fingerprint", @proposal) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for proposal_proposal_widget_url(@proposal, format: :js) %> <%= cell "decidim/proposals/proposal_link_to_collaborative_draft", @proposal %>
<%== cell("decidim/proposals/proposal_m", @proposal, full_badge: true).badge %> <% unless @proposal.participatory_text_level == "section" || @proposal.participatory_text_level == "subsection" %> <%= simple_format present(@proposal).body(links: true) %> <% end %> <% if component_settings.geocoding_enabled? %> <%= render partial: "decidim/shared/static_map", locals: { icon_name: "proposals", geolocalizable: @proposal } %> <% end %> <%= cell "decidim/proposals/proposal_tags", @proposal %>
<% if @proposal.answered? && translated_attribute(@proposal.answer).present? %> <% if @proposal.accepted? %>
<%= t(".proposal_accepted_reason") %>

<%= decidim_sanitize translated_attribute @proposal.answer %>

<% elsif @proposal.rejected? %>
<%= t(".proposal_rejected_reason") %>

<%= decidim_sanitize translated_attribute @proposal.answer %>

<% else %>
<%= t(".proposal_in_evaluation_reason") %>

<%= decidim_sanitize translated_attribute @proposal.answer %>

<% end %> <% end %> <%= 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/proposals/endorsers_list", @proposal, context: { current_user: current_user } %> <%= amendments_for @proposal %>
<%= attachments_for @proposal %> <%= comments_for @proposal %> <%= javascript_include_tag "decidim/proposals/social_share" %> <%= stylesheet_link_tag "decidim/proposals/social_share" %> <%= render partial: "decidim/shared/flag_modal", locals: { reportable: @proposal, form: @report_form, url: decidim.report_path(sgid: @proposal.to_sgid.to_s) } %>