Author: jim
Date: Tue Mar 17 13:18:47 2015
New Revision: 1667298

URL: http://svn.apache.org/r1667298
Log:
make interactive the default

Modified:
    steve/trunk/cmdline/make_issue.pl
    steve/trunk/cmdline/reminder.pl
    steve/trunk/www/cgi-bin/cast-vote.pl

Modified: steve/trunk/cmdline/make_issue.pl
URL: 
http://svn.apache.org/viewvc/steve/trunk/cmdline/make_issue.pl?rev=1667298&r1=1667297&r2=1667298&view=diff
==============================================================================
--- steve/trunk/cmdline/make_issue.pl (original)
+++ steve/trunk/cmdline/make_issue.pl Tue Mar 17 13:18:47 2015
@@ -443,7 +443,7 @@ labeled [x], [s], and [p], in that order
 You can also use our interactive page to easily select your candidates and
 order of preference at:
    
-   https://vote.apache.org/cast/$issuename/$hashid?interactive=true
+   https://vote.apache.org/cast/$issuename/$hashid
 
 This election will be decided according to the Single Transferable Vote
 rules described at

Modified: steve/trunk/cmdline/reminder.pl
URL: 
http://svn.apache.org/viewvc/steve/trunk/cmdline/reminder.pl?rev=1667298&r1=1667297&r2=1667298&view=diff
==============================================================================
--- steve/trunk/cmdline/reminder.pl (original)
+++ steve/trunk/cmdline/reminder.pl Tue Mar 17 13:18:47 2015
@@ -186,7 +186,7 @@ labeled [x], [s], and [p], in that order
 You can also use our interactive page to easily select your candidates and
 order of preference at:
    
-   https://vote.apache.org/cast/$issuename/$hashid?interactive=true
+   https://vote.apache.org/cast/$issuename/$hashid
 
 This election will be decided according to the Single Transferable Vote
 rules described at

Modified: steve/trunk/www/cgi-bin/cast-vote.pl
URL: 
http://svn.apache.org/viewvc/steve/trunk/www/cgi-bin/cast-vote.pl?rev=1667298&r1=1667297&r2=1667298&view=diff
==============================================================================
--- steve/trunk/www/cgi-bin/cast-vote.pl (original)
+++ steve/trunk/www/cgi-bin/cast-vote.pl Tue Mar 17 13:18:47 2015
@@ -50,7 +50,7 @@ my $issue_name = "$group-$issue";
 
 my $q = CGI->new;
 
-my $interactive = $q->param('interactive');
+my $interactive = $q->param('interactive') eq "no" ? 0 : 1;
 
 if ($ENV{REQUEST_METHOD} eq "GET" or $ENV{REQUEST_METHOD} eq "HEAD") {
 
@@ -307,7 +307,7 @@ sub stv_form {
 </center>
 <hr />
 <p>
-    Looking for the interactive version? <a href="?interactive=true">Click 
here!</a>
+    Looking for the interactive version? <a href="?">Click here!</a>
 </p>
 <p>
 To cast your vote, fill in the form entry for your vote below with a
@@ -392,7 +392,7 @@ sub stv_form_interactive {
     <body onload="shuffleCandidates(); drawCandidates()">
         <h1>Cast your vote &lt;$voter&gt; on $issue_name:</h1>
         <p style="text-align: center;">
-            <small><i>Looking for the old text-only version? <a href="?">Click 
here!</a></i></small>
+            <small><i>Looking for the old text-only version? <a 
href="?interactive=no">Click here!</a></i></small>
         </p>
         <p>
             This is an interactive ballot for <a


Reply via email to