2008-10-17 03:36:30 -04:00
|
|
|
- dim = 300
|
2008-10-11 20:16:22 -04:00
|
|
|
%style{ :type => 'text/css' }
|
|
|
|
:sass
|
2008-10-17 03:36:30 -04:00
|
|
|
li
|
2008-10-11 20:16:22 -04:00
|
|
|
img
|
|
|
|
:display block
|
2008-10-17 03:36:30 -04:00
|
|
|
:margin 0px auto
|
|
|
|
p
|
2008-10-11 20:16:22 -04:00
|
|
|
:text-align center
|
2008-10-11 04:22:58 -04:00
|
|
|
|
2008-10-11 20:16:22 -04:00
|
|
|
%h2 Top oneness
|
|
|
|
|
2008-10-17 03:36:30 -04:00
|
|
|
%ol
|
|
|
|
- @top_oneness.each_with_index do |p, index|
|
|
|
|
%li
|
2008-10-11 20:16:22 -04:00
|
|
|
%a{ :href => url(:photo, p) }
|
|
|
|
%img{ :src => photo_url(p, dim, dim) }
|
2008-10-17 03:36:30 -04:00
|
|
|
%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}
|
2008-10-11 20:16:22 -04:00
|
|
|
|
|
|
|
%br{ :style => 'clear: both' }
|
|
|
|
|
|
|
|
%h2 Top voted
|
|
|
|
|
2008-10-17 03:36:30 -04:00
|
|
|
%ol
|
|
|
|
- @top_voted.each_with_index do |p, index|
|
|
|
|
%li
|
2008-10-11 20:16:22 -04:00
|
|
|
%a{ :href => url(:photo, p) }
|
|
|
|
%img{ :src => photo_url(p, dim, dim) }
|
2008-10-17 03:36:30 -04:00
|
|
|
%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}
|
2008-10-11 20:16:22 -04:00
|
|
|
|
|
|
|
%br{ :style => 'clear: both' }
|