This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-10-11 04:22:58 -04:00
|
|
|
#main_photo_container
|
|
|
|
= partial 'photos/photo'
|
2008-10-15 02:31:50 -04:00
|
|
|
|
2008-10-11 04:22:58 -04:00
|
|
|
- v = Vote.voted_for? @photo, current_user
|
|
|
|
- if v
|
|
|
|
#mini_container.centered
|
|
|
|
%div.stat_box
|
|
|
|
%p
|
|
|
|
%strong You voted
|
|
|
|
%br
|
|
|
|
%tt= v.to_i
|
|
|
|
|
|
|
|
%div.stat_box
|
|
|
|
%p
|
|
|
|
%strong Total <tt>0</tt>
|
|
|
|
%br
|
|
|
|
= @photo.zero_votes
|
|
|
|
|
|
|
|
%div.stat_box
|
|
|
|
%p
|
|
|
|
%strong Total <tt>1</tt>
|
|
|
|
%br
|
|
|
|
%tt= @photo.one_votes
|
|
|
|
|
|
|
|
%div.stat_box
|
|
|
|
%p
|
|
|
|
%strong Total Votes
|
|
|
|
%br
|
|
|
|
%tt= @photo.votes.size
|
|
|
|
|
|
|
|
%div.stat_box
|
|
|
|
%p
|
|
|
|
%strong Oneness
|
|
|
|
%br
|
2008-10-11 20:16:22 -04:00
|
|
|
%tt== #{@photo.oneness}%
|
2008-10-11 04:22:58 -04:00
|
|
|
|
|
|
|
%br{ :style => 'clear: both' }
|
|
|
|
|
|
|
|
%div.centered{ :style => "width: 400px;"}
|
|
|
|
= vote_count @photo
|
2008-10-11 18:40:01 -04:00
|
|
|
|
|
|
|
#outer_vote_container
|
|
|
|
%div{ :style => 'display: none', :id => 'to_be_voted' }
|
|
|
|
= partial 'votes/vote_controls'
|