Skip to content

Commit

Permalink
- Remove rogue semicolons when listing subtype and/or type
Browse files Browse the repository at this point in the history
  • Loading branch information
j-corry committed Sep 13, 2024
1 parent 279d06b commit 38bc217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
%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)
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)

0 comments on commit 38bc217

Please sign in to comment.