forked from OpenNeo/impress
durr, don't cache new items on the homepage
This commit is contained in:
parent
50de2ed36f
commit
5e89287537
1 changed files with 9 additions and 8 deletions
|
@ -86,18 +86,19 @@
|
||||||
%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
|
||||||
|
|
||||||
- cache :action_suffix => 'whats_new' do
|
|
||||||
#whats-new
|
#whats-new
|
||||||
|
- cache :action_suffix => 'blog_preview' do
|
||||||
#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
|
||||||
|
|
Loading…
Reference in a new issue