This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/views/home/hall_of_fame.html.haml

31 lines
891 B
Plaintext

- dim = 300
%style{ :type => 'text/css' }
:sass
li
img
:display block
:margin 0px auto
p
:text-align center
%h2 Top oneness
%ol
- @top_oneness.each_with_index do |p, index|
%li
%a{ :href => url(:photo, p) }
%img{ :src => photo_url(p, dim, dim) }
%p== <strong>Oneness:</strong> #{p.oneness}% <strong>Votes 0:</strong> #{p.zero_votes} <strong>Votes 1:</strong> #{p.one_votes} <strong>Total Votes:</strong> #{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== <strong>Oneness:</strong> #{p.oneness}% <strong>Votes 0:</strong> #{p.zero_votes} <strong>Votes 1:</strong> #{p.one_votes} <strong>Total Votes:</strong> #{p.votes_count}
%br{ :style => 'clear: both' }