forked from OpenNeo/impress
Emi Matchu
01f9065dbd
It's no longer true that we transfer the items to the default list; we just delete them now!
20 lines
550 B
Ruby
20 lines
550 B
Ruby
module ClosetListsHelper
|
|
def closet_list_description_format(list)
|
|
md = RDiscount.new(list.description)
|
|
Sanitize.clean(md.to_html, Sanitize::Config::BASIC).html_safe
|
|
end
|
|
|
|
def hangers_owned_options
|
|
[
|
|
[closet_lists_group_name(:you, true), true],
|
|
[closet_lists_group_name(:you, false), false]
|
|
]
|
|
end
|
|
|
|
def render_sorted_hangers(list)
|
|
# TODO: do we still *need* the sort, now that 99% of items are translated?
|
|
render partial: 'closet_hanger',
|
|
collection: list.hangers.sort_by(&:item_name)
|
|
end
|
|
end
|
|
|