Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Caches mini idea partials. Fixes #148.
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Aug 26, 2013
1 parent b1c2e18 commit 6802253
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/views/ideas/_idea_mini.html.haml
@@ -1,14 +1,14 @@
-# Context:
-# - idea (Idea)
= cached_fragment(disabled:false, resource:'idea_mini', id:idea.id, v:1, key:[idea.active_at]) do
.idea_container.af-mutable-content
.idea-mini[idea]{ class:idea.state_name }
.meta.top.clearfix.af-mutable
= render 'idea_rating', idea:idea
.body{ class:idea_category_class(idea) }
%h3.title
= link_to idea_path(idea) do
%span= idea.title

.idea_container.af-mutable-content
.idea-mini[idea]{ class:idea.state_name }
.meta.top.clearfix.af-mutable
= render 'idea_rating', idea:idea
.body{ class:idea_category_class(idea) }
%h3.title
= link_to idea_path(idea) do
%span= idea.title

.meta.bottom.clearfix.af-mutable
= render 'idea_people', idea:idea, limit:3
.meta.bottom.clearfix.af-mutable
= render 'idea_people', idea:idea, limit:3

0 comments on commit 6802253

Please sign in to comment.