-
-
Save augustl/142884 to your computer and use it in GitHub Desktop.
Revisions
-
augustl revised this gist
Jul 8, 2009 . 2 changed files with 2 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ <%= render :partial => "entry_big", :object => @entries.first %> <%= render :partial => "entry_small", :collection => @entries[1..-1] %> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <% @entries.each_with_index do |entry,index| %> <% if index == 0 %> <%= render :partial => "entry_big", :object => entry %> <% else %> <%= render :partial => "entry_small", :object => entry %> <% end %> <% end %>