-
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.
Merge pull request #195 from ukparliament/development
Development merge
- Loading branch information
Showing
12 changed files
with
29 additions
and
18 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
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
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 %> |
13 changes: 13 additions & 0 deletions
13
app/views/search/results/item_details/_category_or_subtype.haml
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
- unless category.blank? && subtype.blank? | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
- unless category.blank? | ||
- if category.is_a?(Array) | ||
= render 'search/fragments/simple_list', items: category, separator: ';', terminator: '', singular: false | ||
- else | ||
= object_display_name(category, singular: false) | ||
- if category.blank? | ||
- if subtype.is_a?(Array) | ||
= render 'search/fragments/simple_list', items: subtype, separator: ';', terminator: '', singular: false | ||
- else | ||
= object_display_name(subtype, singular: true) |
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 %> |
File renamed without changes.
File renamed without changes.