<% provide :title do %><%= @proposal.title %><% end %> <% content_for :meta_description do %><%= @proposal.summary %><% end %> <% provide :social_media_meta_tags do %> <%= render "shared/social_media_meta_tags", social_url: proposal_url(@proposal), social_title: @proposal.title, social_description: @proposal.summary %> <% end %> <% content_for :canonical do %> <%= render "shared/canonical", href: proposal_url(@proposal) %> <% end %> <% cache [locale_and_user_status(@proposal), @proposal, @proposal.author, Flag.flagged?(current_user, @proposal), @proposal_votes] do %>
<%= render "shared/back_link" %> <% if author_of?(@proposal, current_user) %> <%= link_to t("proposals.show.send_notification"), new_proposal_notification_path(proposal_id: @proposal.id), class: 'button hollow float-right' %> <% end %> <% if current_user && @proposal.editable_by?(current_user) %> <%= link_to edit_proposal_path(@proposal), class: 'edit-proposal button hollow float-right' do %> <%= t("proposals.show.edit_proposal_link") %> <% end %> <% end %>

<%= @proposal.title %>

<% if @proposal.retired? %>
<%= t("proposals.show.retired_warning") %>
<%= link_to t("proposals.show.retired_warning_link_to_explanation"), "#retired_explanation" %>
<% elsif @proposal.conflictive? %>
<%= t("proposals.show.flag") %>
<% end %>
<%= render '/shared/author_info', resource: @proposal %>  •  <%= l @proposal.created_at.to_date %>  •    <%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>  •  <%= render 'proposals/flag_actions', proposal: @proposal %>

<%= t("proposals.show.code") %> <%= @proposal.code %>

<%= @proposal.summary %>
<% if @proposal.video_url.present? %>
<% end %> <%= safe_html_with_links @proposal.description %> <% if @proposal.external_url.present? %> <% end %> <% if @proposal.video_url.present? %> <% end %>

<%= @proposal.question %>

<% if @proposal.retired? %>

<%= t('proposals.show.retired') %>: <%= t("proposals.retire_options.#{@proposal.retired_reason}") unless @proposal.retired_reason == 'other' %>

<%= simple_format text_with_links(@proposal.retired_explanation), {}, sanitize: false %>
<% end %> <%= render 'shared/tags', taggable: @proposal %> <%= render 'shared/geozone', geozonable: @proposal %>
<%= render 'proposals/actions', proposal: @proposal %>
<% end %>
<%= render "proposals/filter_subnav" %> <%= render "proposals/notifications" %>
<%= render "proposals/comments" %>