better sorting and center little facebook images
parent
c782437220
commit
425b6c6926
|
@ -86,7 +86,7 @@ end
|
||||||
|
|
||||||
# most oneable photos
|
# most oneable photos
|
||||||
post '/hall_of_fame' do
|
post '/hall_of_fame' do
|
||||||
@top_oneness = Photo.find :all, :order => 'oneness DESC, id DESC', :limit => 10, :conditions => 'oneness > 0'
|
@top_oneness = Photo.find :all, :order => 'oneness DESC, votes_count DESC, id DESC', :limit => 10, :conditions => 'oneness > 0'
|
||||||
haml :hall_of_fame
|
haml :hall_of_fame
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ post '/vote' do
|
||||||
@vote.errors.each_full { |m| log.info "* #{m}" }
|
@vote.errors.each_full { |m| log.info "* #{m}" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@photo = Photo.next_available_votable_photo ba_user
|
@photo = Photo.next_available_votable_photo ba_user, true
|
||||||
haml :vote
|
haml :vote
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -296,6 +296,10 @@ __END__
|
||||||
border: 1px solid #c17d11
|
border: 1px solid #c17d11
|
||||||
padding: 3px 10px
|
padding: 3px 10px
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
|
img
|
||||||
|
display: block
|
||||||
|
margin-left: auto
|
||||||
|
margin-right: auto
|
||||||
p
|
p
|
||||||
text-align: center
|
text-align: center
|
||||||
#vote_container
|
#vote_container
|
||||||
|
|
Reference in New Issue