<%= 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? %>
<%= text_with_links @proposal.external_url %>
<% end %>
<% if @proposal.video_url.present? %>
<%= text_with_links @proposal.video_url %>
<% 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 %>