cache wardrobe

This commit is contained in:
Emi Matchu 2010-12-11 10:11:56 -05:00
parent ca155314fa
commit f5e3a39068
2 changed files with 108 additions and 108 deletions

View file

@ -6,6 +6,8 @@
- if content_for? :title
—
= yield :title
/[if IE]
= include_javascript_libraries :html5
= stylesheet_link_tag "compiled/screen"
= csrf_meta_tag
= signed_in_meta_tag

View file

@ -1,11 +1,12 @@
- add_body_class 'fullscreen'
%a#home-link{:href => "/"}
- cache do
%a#home-link{:href => "/"}
%span Dress to Impress
%h1#title Planning an outfit
#pet-type-not-found.possible-error
%h1#title Planning an outfit
#pet-type-not-found.possible-error
We haven't seen that combination before. Have you?
Submit the pet's name if you have!
#preview-toolbar
#preview-toolbar
%form#pet-type-form
%select{:name => "color"}
%select{:name => "species"}
@ -18,7 +19,7 @@
%button#save-outfit-not-signed-in Log in to save outfit
%button#save-current-outfit Save &quot;<span>current outfit</span>&quot;
%button#save-outfit-copy Save a copy
#preview
#preview
#preview-swf
#preview-swf-container
%p Flash and Javascript (but not Java!) are required to preview outfits.
@ -48,7 +49,7 @@
%h4
%input#new-outfit-name{:type => 'text', :placeholder => 'Outfit name'}
%button{:type => 'submit'} Save
%form#preview-search-form
%form#preview-search-form
%header
%h2 Add an item
%input{:name => "query", :placeholder => "Search items...", :type => "search"}/
@ -87,9 +88,9 @@
#preview-search-form-no-results
No results for "<span></span>"
%ul
#no-assets-full-message
#no-assets-full-message
We haven't seen this item on this body type before. Have you? Submit its name on the home page if you have!
%script#outfit-template{:type => 'text/x-jquery-tmpl'}
%script#outfit-template{:type => 'text/x-jquery-tmpl'}
<li class="outfit-${id}{{if starred}} starred{{/if}}">
%header
%button.outfit-delete &times;
@ -105,8 +106,5 @@
\/
%a.outfit-delete-confirmation-no{:href => '#'} no, thanks
</li>
- content_for :javascripts do
/[if IE]
= include_javascript_libraries :html5
= include_javascript_libraries :jquery, :swfobject, :jquery_tmpl
= include_javascripts :edit_outfit_package