<% 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" %>
<% end %>
<% 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 %>
<%= 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 %>
<%= simple_format present(@proposal).html_body %>
<% 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 %>