take homepage latest contribution and new items out of cache block - should probably cache them later, but, for now, meh
This commit is contained in:
parent
ca2dc56d43
commit
a6e4398e54
1 changed files with 27 additions and 20 deletions
|
@ -9,6 +9,7 @@
|
||||||
%span
|
%span
|
||||||
%h1 Dress to Impress
|
%h1 Dress to Impress
|
||||||
%h2 Neopets wearables made easy!
|
%h2 Neopets wearables made easy!
|
||||||
|
|
||||||
= form_tag load_pet_path, :id => 'load-pet-to-wardrobe' do
|
= form_tag load_pet_path, :id => 'load-pet-to-wardrobe' do
|
||||||
- cache :action_suffix => 'main_load_pet_form_content' do
|
- cache :action_suffix => 'main_load_pet_form_content' do
|
||||||
= origin_tag root_path
|
= origin_tag root_path
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
= pet_name_tag :id => 'main-pet-name'
|
= pet_name_tag :id => 'main-pet-name'
|
||||||
%button{:type => "submit"}
|
%button{:type => "submit"}
|
||||||
Plan my outfit!
|
Plan my outfit!
|
||||||
|
|
||||||
= form_tag wardrobe_path, :method => 'get', :id => 'start-from-scratch' do
|
= form_tag wardrobe_path, :method => 'get', :id => 'start-from-scratch' do
|
||||||
- cache :action_suffix => 'start_from_scratch_form_content' do
|
- cache :action_suffix => 'start_from_scratch_form_content' do
|
||||||
%fieldset
|
%fieldset
|
||||||
|
@ -54,6 +56,7 @@
|
||||||
= form_tag items_path, :method => 'get' do
|
= form_tag items_path, :method => 'get' do
|
||||||
= text_field_tag 'q', '', :placeholder => raw('find an item…'), :type => 'search'
|
= text_field_tag 'q', '', :placeholder => raw('find an item…'), :type => 'search'
|
||||||
= submit_tag 'search'
|
= submit_tag 'search'
|
||||||
|
|
||||||
%li
|
%li
|
||||||
%a{:href => bulk_pets_path}
|
%a{:href => bulk_pets_path}
|
||||||
= image_tag 'http://images.neopets.com/items/mall_ac_garland_spotlight.gif'
|
= image_tag 'http://images.neopets.com/items/mall_ac_garland_spotlight.gif'
|
||||||
|
@ -69,7 +72,8 @@
|
||||||
= origin_tag root_path
|
= origin_tag root_path
|
||||||
= pet_name_tag :placeholder => raw('model a pet…')
|
= pet_name_tag :placeholder => raw('model a pet…')
|
||||||
= submit_tag 'submit'
|
= submit_tag 'submit'
|
||||||
#latest-contribution
|
|
||||||
|
#latest-contribution
|
||||||
= link_to 'Contributions:', contributions_path, :id => 'recent-contributions-link'
|
= link_to 'Contributions:', contributions_path, :id => 'recent-contributions-link'
|
||||||
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
|
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
|
||||||
showed us
|
showed us
|
||||||
|
@ -80,16 +84,19 @@
|
||||||
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
|
= link_to @latest_contribution.user.name, user_contributions_path(@latest_contribution.user)
|
||||||
%span#latest-contribution-created-at{:title => @latest_contribution.created_at.to_s}
|
%span#latest-contribution-created-at{:title => @latest_contribution.created_at.to_s}
|
||||||
#{time_ago_in_words @latest_contribution.created_at} ago
|
#{time_ago_in_words @latest_contribution.created_at} ago
|
||||||
#whats-new
|
|
||||||
|
#whats-new
|
||||||
#blog-preview
|
#blog-preview
|
||||||
%h2
|
%h2
|
||||||
%div
|
%div
|
||||||
%a#blog-preview-linkback{:href => 'http://blog.openneo.net/'} OpenNeo Blog
|
%a#blog-preview-linkback{:href => 'http://blog.openneo.net/'} OpenNeo Blog
|
||||||
|
|
||||||
#newest-items
|
#newest-items
|
||||||
%h2 New Items
|
%h2 New Items
|
||||||
%ul
|
%ul
|
||||||
- @newest_items.each do |item|
|
- @newest_items.each do |item|
|
||||||
= link_to image_tag(item.thumbnail_url), item
|
= link_to image_tag(item.thumbnail_url), item
|
||||||
|
|
||||||
- content_for :javascripts do
|
- content_for :javascripts do
|
||||||
= include_javascript_libraries :jquery
|
= include_javascript_libraries :jquery
|
||||||
= include_javascripts :new_outfit_package
|
= include_javascripts :new_outfit_package
|
||||||
|
|
Loading…
Reference in a new issue