Correctly scape budget phase summary on phases list

This commit is contained in:
Bertocq
2018-01-22 23:28:59 +01:00
parent 4ef3d54874
commit 217f62116e
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
-
<%= format_date(phase.ends_at - 1.day) if phase.ends_at.present? %>
</span>
<p><%= phase.summary %></p>
<p><%= safe_html_with_links(phase.summary) %></p>
</li>
<% end %>
</ul>

View File

@@ -51,7 +51,7 @@ feature 'Budgets' do
budget.phases.drafting.update(starts_at: '30-12-2017', ends_at: '31-12-2017', enabled: true,
description: 'Description of drafting phase',
summary: 'This is the summary for drafting phase')
summary: '<p>This is the summary for drafting phase</p>')
budget.phases.accepting.update(starts_at: '01-01-2018', ends_at: '10-01-2018', enabled: true,
description: 'Description of accepting phase',