Merge branch 'live' of ssh://ephesus.xvm.mit.edu/org/selectricity/selectricity-live
authorBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 22:59:36 +0000 (18:59 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 22:59:36 +0000 (18:59 -0400)
Conflicts:
README
app/controllers/voter_controller.rb
app/views/layouts/_footer.rhtml

1  2 
README
app/controllers/quickvote_controller.rb
app/controllers/voter_controller.rb
app/models/election.rb
app/models/vote.rb

diff --cc README
index 9ec9d6212afaf1f645fdbb1b53e278961539d592,afa0a254c62471f21751d52f69a0e31de1d923cc..5ce586b2191f237948d5201ed70ae1b45508902d
--- 1/README
--- 2/README
+++ b/README
@@@ -8,35 -8,28 +8,43 @@@ distribute, or rework Selectricity unde
  course, we'd sure like it if you would send fixes back to us and tell us
  about cool stuff you do with our software!
  
--The best way to get Selectricity is just to download it from our source
- tree.  At the moment, we're hosting our code at Gitorious which is a
- free software hosting provider. You can download Gitorious at the
- project page by following detailed instructions at Gitorious:
++The best way to get Selectricity is just to download it from our
+ source repository. You'll need the Git version control system or
+ source control manager to check it. You can get it here:
  
-   http://gitorious.org/selectricity
+   http://git-scm.com/
+ Once you have it, getting the source code is pretty easy. You just need
+ to check out a branch with a command like this:
+   git clone http://projects.mako.cc/source/selectricity/.git
+ By default, this will create a working copy with the latest
+ *development* version of our code. If you want the latest production
+ version (i.e., what we're running on the site), you need to switch to
+ the live version of the software which is kept in a branch called
+ "live." Once you cloned the repository above, you can switch into the
+ directory (i.e., run "cd selectricity") and then run the following
+ command:
+   git checkout -b live origin/live
  
  
- In terms of bugs and documentation, we current plan to build this out in
- our Gitorious wiki so feel free to get started with your own efforts
- along these lines there:
-   http://gitorious.org/selectricity/pages/Home
 +===============================================
 +=== Getting Help and Contributing =============
 +===============================================
 +
 +If you have a question, you can always email the core team at:
 +
 +  team@selectricity.org
 +
 +If you want to get involved in development, want to discuss
 +selectricity, or want to participate, please subscribe to our mailing
 +list here:
 +
 +  http://mailman.mit.edu/mailman/listinfo/selectricity
 +
 +
  ===============================================
  === Dependencies ==============================
  ===============================================
@@@ -65,12 -58,7 +73,11 @@@ On Ubuntu, you can install install the 
  Our server configuration uses Mongrel (installed from gems) behind an
  Apache2 load balancing proxy using mod_proxy.
  
 +You'll also need to have a MTA installed. We use Postfix and have not
 +tried it with any other system. Presumably though, anything that
 +provides '/usr/bin/sendmail' should work.
 +
  
  ===============================================
  === Contributors to Selectricity Include ======
  ===============================================
index 408bdab880ec0f411a1d19f8eea0261f3b5d1d02,78f9a0cdef8da7de802f83800c6484b470500f8e..a550f676cc3d2ced5c851eef5c4f4c8632363159
@@@ -97,16 -127,19 +97,18 @@@ class VoterController < ApplicationCont
    end
  
    def confirm
-     @voter.vote.confirm!
-     if @voter.election.embeddable? and params[:embed] == "true" \
-       and @voter.election.early_results?
-       redirect_to :action => :results, :id => @password, :embed => 'true'
-     elsif not(@voter.election.verifiable) \
-       and @voter.election.kiosk and params[:kiosk] == "true"
-       redirect_to :action => "kiosk_ready", :id => @password, :kiosk => true
 -    if authenticate
 -      if @voter.vote.confirm!
 -        if @voter.election.embeddable? and params[:embed] == "true" \
 -          and @voter.election.early_results?
 -          redirect_to :action => :results, :id => @password, :embed => 'true'
 -        else
 -          render :action => 'thanks'
 -        end
++    if @voter.vote.confirm!
++      if @voter.election.embeddable? and params[:embed] == "true" \
++        and @voter.election.early_results?
++        redirect_to :action => :results, :id => @password, :embed => 'true'
++      elsif not(@voter.election.verifiable) \
++        and @voter.election.kiosk and params[:kiosk] == "true"
++        redirect_to :action => "kiosk_ready", :id => @password, :kiosk => true
+       else
 -        redirect_to :action => 'index'
++        render :action => 'thanks'
+       end
      else
-       render :action => 'thanks'
 -        redirect_to :action => 'index'
++      redirect_to :action => 'index'
      end
    end
    
Simple merge
Simple merge

Benjamin Mako Hill || Want to submit a patch?