impress/app/views/closet_hangers/index.html.haml

34 lines
1.2 KiB
Text
Raw Normal View History

2011-07-12 17:03:04 -07:00
- if user_is?(@user)
- title 'Your Items'
2011-07-15 14:21:18 -07:00
- content_for :before_flashes do
= link_to "Import closet from Neopets", new_closet_page_path, :id => 'import-link'
2011-07-12 17:03:04 -07:00
- else
- title "#{@user.name}'s Items"
#closet-hangers{:class => user_is?(@user) ? 'current-user' : nil}
2011-07-12 17:03:04 -07:00
- 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.
2011-07-12 17:03:04 -07:00
= render @closet_hangers
- else
- if user_is?(@user)
%p You haven't tracked any items on Dress to Impress.
2011-07-12 17:03:04 -07:00
%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!
2011-07-12 17:03:04 -07:00
- else
%p #{@user.name} hasn't tracked any items on Dress to Impress.
2011-07-12 17:03:04 -07:00
- content_for :javascripts do
= include_javascript_libraries :jquery
= javascript_include_tag 'jquery.jgrowl.js', 'closet_hangers/index'