-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Apply Nokogiri-based html formatting to all truncated fields throug…
…hout the app, to fix and instance where unclosed html tags were causing issues with a research briefing
- Loading branch information
Showing
6 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% unless abstract.blank? %> | ||
<div class="item-details"> | ||
<span> | ||
<%= raw abstract[:value].truncate_words(50) %> | ||
<%= raw format_html(abstract[:value], 50) %> | ||
</span> | ||
</div> | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
app/views/search/results/item_details/_contribution_text.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% unless contribution_text.blank? %> | ||
<div class="item-details"> | ||
<span> | ||
<%= raw contribution_text[:value].truncate_words(50) %> | ||
<%= raw format_html(contribution_text[:value], 50) %> | ||
</span> | ||
</div> | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
app/views/search/results/item_details/_correction_text.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% unless correction_text.blank? %> | ||
<div class="item-details"> | ||
<span> | ||
<%= raw correction_text[:value].truncate_words(50) %> | ||
<%= raw format_html(correction_text[:value], 50) %> | ||
</span> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% unless motion_text.blank? %> | ||
<div class="item-details"> | ||
<span> | ||
<%= raw motion_text[:value].truncate_words(50) %> | ||
<%= raw format_html(motion_text[:value], 50) %> | ||
</span> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% unless petition_text.blank? %> | ||
<div class="item-details"> | ||
<span> | ||
<%= raw petition_text[:value]&.truncate_words(50) %> | ||
<%= raw format_html(petition_text[:value], 50) %> | ||
</span> | ||
</div> | ||
<% end %> |