1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/outfits/new.html.haml

108 lines
3.5 KiB
Text
Raw Normal View History

2010-11-30 13:52:38 -08:00
- hide_home_link
= campaign_progress
2010-11-05 15:45:05 -07:00
#outfit-forms
- cache :action_suffix => 'outfit_forms_intro' do
#pet-preview
= image_tag 'default_preview.png', :alt => ''
%span
%h1 Dress to Impress
%h2 Neopets wearables made easy!
2010-11-05 15:45:05 -07:00
= form_tag load_pet_path, :id => 'load-pet-to-wardrobe' do
- cache :action_suffix => 'main_load_pet_form_content' do
= origin_tag root_path
= destination_tag 'wardrobe'
%fieldset
%legend Enter your pet's name
= pet_name_tag :id => 'main-pet-name'
%button{:type => "submit"}
Plan my outfit!
2010-11-05 15:45:05 -07:00
= form_tag wardrobe_path, :method => 'get', :id => 'start-from-scratch' do
- cache :action_suffix => 'start_from_scratch_form_content' do
%fieldset
%legend Or start from scratch
= pet_attribute_select 'color', @colors, 8
= pet_attribute_select 'species', @species
%input{:type => "submit", :value => "Go"}
%ul#sections
- cache :action_suffix => 'your_items_module' do
2011-07-31 19:55:29 -07:00
%li#your-items-module
2011-07-31 15:45:53 -07:00
= link_to image_tag('your_items.png'), your_items_path
%h3
2011-07-31 15:45:53 -07:00
= link_to 'Your Items', your_items_path
%div
2011-07-31 15:45:53 -07:00
%h4 Track and trade!
%p
2011-07-31 15:45:53 -07:00
Make lists of the items you own and want, and share them with the
world.
2011-08-05 08:28:11 -07:00
= form_tag users_path, :method => 'get' do
= text_field_tag 'name', '', :placeholder => raw('find a user…'), :type => 'search'
= submit_tag 'search'
2011-07-31 15:45:53 -07:00
- cache :action_suffix => 'infinite_closet_module' do
%li
2010-11-05 15:45:05 -07:00
%a{:href => items_path}
= image_tag 'items.png'
%h3
%a{:href => items_path}
Infinite Closet
%div
%h4 Looking for something?
%p
Take a look through our wearables database!
= form_tag items_path, :method => 'get' do
2011-08-05 08:28:11 -07:00
= text_field_tag 'q', '', :placeholder => raw('find an item…'), :type => 'search'
= submit_tag 'search'
%li
%a{:href => bulk_pets_path}
= image_tag 'http://images.neopets.com/items/mall_ac_garland_spotlight.gif'
%h3
2012-08-01 10:34:54 -07:00
%a{:href => bulk_pets_path}
Modeling Hub
%div
%h4 Found something?
%p
Enter a pet's name here and we'll keep a copy of what it's wearing.
Thanks so much!
= form_tag load_pet_path do
= origin_tag root_path
= pet_name_tag :placeholder => raw('model a pet…')
= submit_tag 'submit'
2012-08-09 19:59:35 -07:00
- cache 'outfits#new latest_contribution' do
#latest-contribution
= link_to 'Contributions:', contributions_path, :id => 'recent-contributions-link'
2012-08-01 10:34:54 -07:00
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
2012-08-09 19:59:35 -07:00
showed us
= succeed '.' do
= contributed_description @latest_contribution.contributed, false
Thanks,
= succeed '!' do
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
%abbr#latest-contribution-created-at{:title => @latest_contribution.created_at.getutc.iso8601}
#whats-new
- cache :action_suffix => 'blog_preview' do
#blog-preview
%h2
%div
%a#blog-preview-linkback{:href => 'http://blog.openneo.net/'} OpenNeo Blog
- cache 'outfits#new newest_items' do
#newest-items
%h2 New Items
%ul
- @newest_items.each do |item|
= link_to image_tag(item.thumbnail_url), item
- content_for :javascripts do
= include_javascript_libraries :jquery
= include_javascripts :new_outfit_package