2012-08-09 16:34:56 -07:00
|
|
|
.closet-list{'data-id' => closet_list.id, 'data-hangers-count' => closet_list.hangers.size, :id => "closet-list-#{closet_list.id}"}
|
2011-07-29 07:52:04 -07:00
|
|
|
%header
|
|
|
|
- if show_controls
|
2012-08-09 16:34:56 -07:00
|
|
|
= form_for [current_user, closet_list], :html => {:class => 'visibility-form'} do |f|
|
2011-07-30 19:47:06 -07:00
|
|
|
= f.select :visibility, closet_visibility_choices(:human_name)
|
2013-01-01 18:42:58 -08:00
|
|
|
= f.submit t('.submit')
|
|
|
|
= closet_visibility_descriptions(:list)
|
2011-07-29 07:52:04 -07:00
|
|
|
.closet-list-controls
|
2013-01-01 18:42:58 -08:00
|
|
|
= link_to t('.edit'), edit_user_closet_list_path(closet_list.user_id, closet_list)
|
2012-08-09 16:34:56 -07:00
|
|
|
= form_tag user_closet_list_path(closet_list.user_id, closet_list), :method => 'delete' do
|
2024-03-13 13:56:10 -07:00
|
|
|
= submit_tag t('.delete'),
|
|
|
|
data: {turbo_confirm: closet_list_delete_confirmation(closet_list)}
|
2015-09-26 14:22:11 -07:00
|
|
|
= form_tag user_closet_hangers_path(@user), method: :delete, class: 'remove-all' do
|
2015-07-19 09:35:49 -07:00
|
|
|
= hidden_field_tag :list_id, closet_list.id
|
2024-03-13 13:56:10 -07:00
|
|
|
= submit_tag t('.remove_all.submit'),
|
|
|
|
data: {turbo_confirm: t('.remove_all.confirm')}
|
2015-09-26 14:22:11 -07:00
|
|
|
%button.select-all= t('.select_all')
|
2011-07-29 07:52:04 -07:00
|
|
|
%h4= closet_list.name
|
|
|
|
|
2014-12-02 08:05:11 -08:00
|
|
|
- if show_controls
|
|
|
|
= render partial: 'closet_lists/trading_neomail_warning', locals: {list: closet_list, user: @user}
|
|
|
|
|
2024-02-20 18:42:42 -08:00
|
|
|
-# Cachebuster comment: Updated downstream content at Feb 20 2024, 6:15pm
|
|
|
|
- cache closet_list do
|
|
|
|
.closet-list-content
|
|
|
|
- if closet_list.description?
|
|
|
|
= closet_list_description_format closet_list
|
2011-07-30 20:07:58 -07:00
|
|
|
|
2024-02-20 18:42:42 -08:00
|
|
|
.closet-list-hangers
|
|
|
|
- unless closet_list.hangers.empty?
|
|
|
|
= render_sorted_hangers(closet_list)
|
|
|
|
|
|
|
|
%span.empty-list= t('.empty')
|
2011-07-29 07:52:04 -07:00
|
|
|
|