<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ class VotesController &lt; ApplicationController
     # Is the current_user allowed to vote on this hiring_stage?
     if hiring_stage &amp;&amp; vetting_stage &amp;&amp; current_user.positions.include?( hiring_stage.position )
       # Does this user already have a vote for this hiring stage for this position?
-      vote = Vote.find_vote_by_hiring_stage_and_vetting_stage( hiring_stage, vetting_stage )
+      vote = Vote.find_vote_by_hiring_stage_and_vetting_stage( current_user, hiring_stage, vetting_stage )
       if vote.nil?
         vote = Vote.new.construct_from_basic_elements( current_user, hiring_stage, vote_value )
       else</diff>
      <filename>app/controllers/votes_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ module PositionsHelper
     row = '&lt;tr class=&quot;separated&quot;&gt;'
     row += '&lt;td&gt;&lt;span class=&quot;small&quot;&gt;' + applicant.id.to_s + '&lt;/span&gt; ' + link_to( applicant.name, applicant_path( applicant ), :class =&gt; 'new_link' )  + '&lt;/td&gt;'
     row += render_vetting_stage_cell( hiring_stage, root )
-    row += render_vetting_stage_controls( hiring_stage, applicant ) if hiring_stage.position.reviewers.include?( current_user )
+    row += render_vetting_stage_controls_cell( hiring_stage, applicant ) if hiring_stage.position.reviewers.include?( current_user )
     row += '&lt;/tr&gt;'
     
     return row
@@ -52,9 +52,9 @@ module PositionsHelper
 
     if hiring_stage.vetting_stage == v_stage
       if current_user.can_vote_on_position?( hiring_stage.position )
-        vote = Vote.find_vote_by_hiring_stage_and_vetting_stage( hiring_stage, v_stage )
+        vote = Vote.find_vote_by_hiring_stage_and_vetting_stage( current_user, hiring_stage, v_stage )
         
-        cell += &quot;&lt;div class='vote_value_#{vote.vote_value.to_s} text_right'&gt;&quot; if vote
+        cell += &quot;&lt;div class='vote_value_#{vote.vote_value.to_s}'&gt;&quot; if vote
         if vote
           cell += link_to( image_tag( 'mini_closebox.png', :alt =&gt; 'delete', :width=&gt;'16', :height=&gt;'16', :title =&gt; 'Change your vote', :class =&gt; 'delete_icon right' ), user_vote_path( current_user, vote ), :method =&gt; :delete )
           cell += render( :partial =&gt; 'positions/applicant_vetting_stage_stats', :locals =&gt; { :hiring_stage =&gt; hiring_stage, :vetting_stage =&gt; v_stage } )
@@ -73,7 +73,8 @@ module PositionsHelper
   end
   
   
-  def render_vetting_stage_controls( hiring_stage, applicant )
+  # Renders the checkmark and red x buttons for voting
+  def render_vetting_stage_controls_cell( hiring_stage, applicant )
     return '&lt;td class=&quot;t c&quot;&gt;' + render( :partial =&gt; 'positions/voting_stage_controls', :locals =&gt; { :hiring_stage =&gt; hiring_stage, :position =&gt; @position, :applicant =&gt; applicant } ) + '&lt;/td&gt;'
   end
 end
\ No newline at end of file</diff>
      <filename>app/helpers/positions_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,8 +12,8 @@ class Vote &lt; ActiveRecord::Base
   
   
   # TODO: I think I can just pass in the hiring stage here and infer the vetting stage from it
-  def self.find_vote_by_hiring_stage_and_vetting_stage( hiring_stage, vetting_stage )
-    return self.find( :first, :conditions =&gt; &quot;hiring_stage_id = #{hiring_stage.id} AND vetting_stage_id = #{vetting_stage.id}&quot; )
+  def self.find_vote_by_hiring_stage_and_vetting_stage( current_user, hiring_stage, vetting_stage )
+    return self.find( :first, :conditions =&gt; &quot;user_id = #{current_user.id} AND hiring_stage_id = #{hiring_stage.id} AND vetting_stage_id = #{vetting_stage.id}&quot; )
   end
   
   </diff>
      <filename>app/models/vote.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
-&lt;%= image_tag( 'applicant.png' ) %&gt;
-
-&lt;div id=&quot;vote_data_container&quot; class=&quot;xsmall right&quot;&gt;
+&lt;div id=&quot;vote_data_container&quot; class=&quot;xsmall&quot;&gt;
+	&lt;%= image_tag( 'applicant.png', :class =&gt; 'left' ) %&gt;
 	&lt;div class=&quot;vote_data left&quot;&gt;
 		Yes: &lt;%= hiring_stage.position.find_votes_for_applicant( hiring_stage.applicant, vetting_stage, :yea ).length.to_s %&gt;, 
 	&lt;/div&gt;
 	&lt;div class=&quot;vote_data left&quot;&gt;
 		No: &lt;%= hiring_stage.position.find_votes_for_applicant( hiring_stage.applicant, vetting_stage, :nay ).length.to_s %&gt;
 	&lt;/div&gt;
-&lt;/div&gt;
\ No newline at end of file
+&lt;/div&gt;
+&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
\ No newline at end of file</diff>
      <filename>app/views/positions/_applicant_vetting_stage_stats.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e71700af716aa0cac7204441cc765fe3d8a53fa0</id>
    </parent>
  </parents>
  <author>
    <name>Chris</name>
    <email>chris@ChoOyu.local</email>
  </author>
  <url>http://github.com/senorprogrammer/applican/commit/9bb978a0f9f55804e56da9936e9f6c639f4e52ea</url>
  <id>9bb978a0f9f55804e56da9936e9f6c639f4e52ea</id>
  <committed-date>2008-07-04T15:04:14-07:00</committed-date>
  <authored-date>2008-07-04T15:04:14-07:00</authored-date>
  <message>Improvements to display of voting data in FF</message>
  <tree>2a569d29257c96e66997520408efd59166cf7423</tree>
  <committer>
    <name>Chris</name>
    <email>chris@ChoOyu.local</email>
  </committer>
</commit>
