adds link to explanation

This commit is contained in:
Juanjo Bazán
2016-04-22 17:58:23 +02:00
parent ed0a4a8525
commit 5b4a7b8cf8
3 changed files with 6 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
<h1><%= @proposal.title %></h1>
<% if @proposal.retired? %>
<div data-alert class="callout alert margin-top">
<strong><%= t("proposals.show.retired_warning") %></strong>
<strong><%= t("proposals.show.retired_warning") %> <%= link_to t("proposals.show.retired_warning_link_to_explanation"), "#retired_explanation" %></strong>
</div>
<% elsif @proposal.conflictive? %>
<div data-alert class="callout alert margin-top">
@@ -79,6 +79,7 @@
<h4><%= @proposal.question %></h4>
<% if @proposal.retired? %>
<a id="retired_explanation"></a>
<h2><%= t('proposals.show.retired') %>: <%= t("proposals.retire_options.#{@proposal.retired_reason}") unless @proposal.retired_reason == 'other' %></h2>
<%= simple_format text_with_links(@proposal.retired_explanation), {}, sanitize: false %>
<% end %>