locale key containing html has been renamed

locale key containing html has been renamed. Now it has the preffix:
_html.
This commit is contained in:
Juan Salvador Pérez García
2018-09-17 09:11:09 +02:00
parent 6412f95e56
commit e61eba4e97
3 changed files with 8 additions and 8 deletions

View File

@@ -1,20 +1,20 @@
<div class=proposal-created>
<div id="<%= dom_id(@proposal) %>" class="row">
<div class="small-12 medium-12 column">
<h1><%= t('.title') %></h1>
<h1><%= t("proposals.created.title") %></h1>
<%= raw t('.motivation') %>
<%= raw t("proposals.created.motivation_html") %>
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can?(:dashboard, @proposal) %>
<%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can?(:publish, @proposal) %>
<%= link_to t("proposals.created.dashboard"), proposal_dashboard_index_path(@proposal), class: "button" if can?(:dashboard, @proposal) %>
<%= link_to t("proposals.created.publish"), publish_proposal_path(@proposal), method: :patch, class: "button" if can?(:publish, @proposal) %>
</div>
</div>
</div>
<div class="row">
<div class="small-12 column">
<h3><%= t('.preview_title') %></h3>
<h3><%= t("proposals.created.preview_title") %></h3>
</div>
</div>
<%= render file: 'proposals/show.html.erb', locals: { preview: true } %>
<%= render file: "proposals/show.html.erb", locals: { preview: true } %>

View File

@@ -329,7 +329,7 @@ en:
submit_button: Create proposal
created:
title: Congratulations! You have taken the first step.
motivation: |
motivation_html: |
<p>
It is important to have at least 100 supports on the first day of the campaign to be able to
boost your proposal.

View File

@@ -329,7 +329,7 @@ es:
submit_button: Crear propuesta
created:
title: ¡Enhorabuena! Has dado el primer paso.
motivation: |
motivation_html: |
<p>
Es importante contar al menos con 100 apoyos el primer día de campaña para poder
impulsar tu propuesta.