Improves styles for retire proposals
This commit is contained in:
committed by
Juanjo Bazán
parent
5b4a7b8cf8
commit
f079bdac8a
@@ -23,8 +23,11 @@
|
||||
|
||||
<h1><%= @proposal.title %></h1>
|
||||
<% if @proposal.retired? %>
|
||||
<div data-alert class="callout alert margin-top">
|
||||
<strong><%= t("proposals.show.retired_warning") %> <%= link_to t("proposals.show.retired_warning_link_to_explanation"), "#retired_explanation" %></strong>
|
||||
<div data-alert class="callout alert margin-top proposal-retired">
|
||||
<strong>
|
||||
<%= t("proposals.show.retired_warning") %><br>
|
||||
<%= 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,9 +82,10 @@
|
||||
<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 %>
|
||||
<div id="retired_explanation" class="callout">
|
||||
<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 %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/tags', taggable: @proposal %>
|
||||
|
||||
Reference in New Issue
Block a user