diff --git a/app/controllers/home.rb b/app/controllers/home.rb index 8a885e4..b10ac64 100644 --- a/app/controllers/home.rb +++ b/app/controllers/home.rb @@ -9,7 +9,6 @@ class Home < Application def hall_of_fame @top_oneness = Photo.find :all, :order => 'oneness DESC, id DESC', :limit => 10, :conditions => 'oneness > 0' - @top_voted = Photo.find :all, :order => 'votes_count DESC, id DESC', :limit => 10, :conditions => 'votes_count > 0' render end diff --git a/app/views/home/hall_of_fame.html.haml b/app/views/home/hall_of_fame.html.haml index f483734..7d013ed 100644 --- a/app/views/home/hall_of_fame.html.haml +++ b/app/views/home/hall_of_fame.html.haml @@ -8,9 +8,9 @@ p :text-align center -%h2 Top oneness +%h1 Top oneness -%ol +%ol.no_list_style.centered - @top_oneness.each_with_index do |p, index| %li %a{ :href => url(:photo, p) } @@ -18,14 +18,3 @@ %p== Oneness: #{p.oneness}% Votes 0: #{p.zero_votes} Votes 1: #{p.one_votes} Total Votes: #{p.votes_count} %br{ :style => 'clear: both' } - -%h2 Top voted - -%ol - - @top_voted.each_with_index do |p, index| - %li - %a{ :href => url(:photo, p) } - %img{ :src => photo_url(p, dim, dim) } - %p== Oneness: #{p.oneness}% Votes 0: #{p.zero_votes} Votes 1: #{p.one_votes} Total Votes: #{p.votes_count} - -%br{ :style => 'clear: both' } \ No newline at end of file