-
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 #196 from ukparliament/development
Development merge
- Loading branch information
Showing
6 changed files
with
1,051 additions
and
987 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
27 changes: 9 additions & 18 deletions
27
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,29 +1,20 @@ | ||
- unless category.blank? | ||
%div.item-details | ||
- if category.is_a?(Array) | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= render 'search/fragments/simple_list', items: category, separator: ';', terminator: ';', singular: false | ||
%div.item-details-label= "Type" | ||
%span>= render 'search/fragments/simple_list', items: category, separator: ';', terminator: ';', singular: false | ||
- else | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= object_display_name(category, singular: true) | ||
%div.item-details-label= "Type" | ||
%span>= object_display_name(category, singular: true) | ||
- unless subtype.blank? | ||
- unless category.blank? | ||
%span>= "; " | ||
- if subtype.is_a?(Array) | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= render 'search/fragments/simple_list', items: subtype, separator: ';', terminator: ';', singular: false | ||
= render 'search/fragments/simple_list', items: subtype, separator: ';', terminator: ';', singular: false | ||
- else | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= object_display_name(subtype, singular: true) | ||
= object_display_name(subtype, singular: true) | ||
- if subtype.blank? && category.blank? | ||
- if type.is_a?(Array) | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= render 'search/fragments/simple_list', items: type, separator: ';', terminator: ';', singular: false | ||
= render 'search/fragments/simple_list', items: type, separator: ';', terminator: ';', singular: false | ||
- else | ||
%div.item-details | ||
%div.item-details-label= "Type" | ||
= object_display_name(type, singular: true) | ||
= object_display_name(type, singular: true) |
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,5 +1,5 @@ | ||
{ | ||
"result": { | ||
"line": 80.25 | ||
"line": 80.17 | ||
} | ||
} |
Oops, something went wrong.