-
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.
- Fix issue with partials used within haml partials
- Show all subtypes and types on most papers, and correct some formatting issues
- Loading branch information
Showing
13 changed files
with
18 additions
and
20 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
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
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
6 changes: 3 additions & 3 deletions
6
app/views/search/results/item_details/_category_and_subtype_or_type.html.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
- unless category.blank? | ||
- if category.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: category, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: category, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details>= object_display_name(category, singular: true) | ||
- unless subtype.blank? | ||
- unless category.blank? | ||
%span>= ", " | ||
- if subtype.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details>= object_display_name(subtype, singular: true) | ||
- if subtype.blank? && category.blank? | ||
- if type.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details= object_display_name(type, singular: true) |
7 changes: 3 additions & 4 deletions
7
app/views/search/results/item_details/_subtype_and_type.html.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
- unless subtype.blank? | ||
- if subtype.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details>= object_display_name(subtype, singular: true) | ||
- unless type.blank? | ||
- unless subtype.blank? | ||
%span>= ", " | ||
- unless type.blank? | ||
- if type.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details= object_display_name(type, singular: true) |
4 changes: 2 additions & 2 deletions
4
app/views/search/results/item_details/_subtype_or_type.html.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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
- unless subtype.blank? | ||
- if subtype.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: subtype, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details>= object_display_name(subtype, singular: true) | ||
- if subtype.blank? | ||
- if type.is_a?(Array) | ||
- render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
= render 'search/fragments/simple_list', items: type, separator: ',', terminator: ',', singular: false | ||
- else | ||
%span.item-details= object_display_name(type, singular: true) |