better handle edge cases in petpages
This commit is contained in:
parent
1ac399cc7a
commit
359356bcf3
1 changed files with 16 additions and 14 deletions
|
@ -77,6 +77,7 @@
|
|||
- if lists || unlisted_hangers_by_owned[owned]
|
||||
%h2.dti-item-group-header Items #OWNER #{ClosetHanger.verb(:someone, owned)}
|
||||
%ul.dti-item-group
|
||||
- if lists
|
||||
- lists.each do |list|
|
||||
- unless list.hangers.empty?
|
||||
%li.dti-item-list
|
||||
|
@ -86,8 +87,9 @@
|
|||
= closet_list_description_format list
|
||||
%div.dti-items
|
||||
= render_batched_petpage_hangers(list.hangers.sort { |a,b| a.item.name <=> b.item.name })
|
||||
- if unlisted_hangers_by_owned[owned]
|
||||
%li.dti-unlisted-items
|
||||
- unless lists.empty?
|
||||
- unless lists.blank?
|
||||
%h3 (Not in a list)
|
||||
%div
|
||||
= render_batched_petpage_hangers(unlisted_hangers_by_owned[owned])
|
||||
|
|
Loading…
Reference in a new issue