33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
- if user_is?(@user)
|
|
- title 'Your Items'
|
|
- content_for :before_flashes do
|
|
= link_to "Import closet from Neopets", new_closet_page_path, :id => 'import-link'
|
|
- else
|
|
- title "#{@user.name}'s Items"
|
|
|
|
#closet-hangers{:class => user_is?(@user) ? 'current-user' : nil}
|
|
- if !@closet_hangers.empty?
|
|
- if user_is?(@user)
|
|
%p
|
|
These are the items you own. Hover over an item to remove it from the
|
|
list or to change the quantity.
|
|
= render :partial => 'closet_hanger', :collection => @closet_hangers, :locals => {:show_controls => user_is?(@user)}
|
|
- else
|
|
- if user_is?(@user)
|
|
%p You haven't tracked any items on Dress to Impress.
|
|
%p
|
|
Here you can keep track of what items you already own, so that as you
|
|
design fancy outfits you can know what you have and what you still
|
|
need. And, who knows? Maybe some day this page will include wishlists
|
|
and up-for-trade items. We'll see what happens.
|
|
%p
|
|
It's easy to get started!
|
|
= link_to "Just import your Neopets closet in a few quick steps.", new_closet_page_path
|
|
Have fun!
|
|
- else
|
|
%p #{@user.name} hasn't tracked any items on Dress to Impress.
|
|
|
|
- content_for :javascripts do
|
|
= include_javascript_libraries :jquery
|
|
= javascript_include_tag 'jquery.jgrowl.js', 'closet_hangers/index'
|
|
|