Added a list of recent votes to the homepage.
[selectricity] / app / views / site / index.rhtml
index 5a68a6b77237ebe9c91a5eb687c7b935025c95e5..e89063dc3331416a79749f44fcb583df4119df7c 100644 (file)
@@ -6,13 +6,20 @@
 
 <h2>QuickVotes</h2>
 
-<p><em>QuickVotes</em> are unstructured votes, more like polls, without
-the voter verifiability, anonymity, and other more complex features of
-HyperChad. They are the quickest way to make a decision using a variety
-of preferential and non-preficial election methods, or to compare
-between methods.</p>
+<p><em>QuickVotes</em> are like polls: unstructured, non-anonymous and
+without the complex features of <em>HyperChad</em>. They are the
+quickest way to make a decision or to compare between voting
+methods.</p>
 
-<p><%= link_to "Create QuickVote.", :action => 'create_quickvote' %></p>
+<p><%= link_to "Create a QuickVote", :controller => 'quickvote', :action => 'create' %></p>
+
+<p>Recent <em>QuickVotes</em> include:</p>
+
+<ul>
+<% for quickvote in @quickvotes %>
+<li><%= link_to (quickvote.shortdesc || "Unnamed"), quickvote_url(:votename => quickvote.name) %></li>
+<% end %>
+</ul>
 
 <h2>Voters</h2>
 
@@ -34,8 +41,8 @@ ongoing election, you can log in to vote using your token here.</p>
 <% if session[:user] %>
   <%= render_partial 'user_summary' %> 
 <% else %>
-  <h2>Election Administrators</h2>
-  <p>You must have an account to start a new election or to administer an
+  <h2>Vote Administrators</h2>
+  <p>You must have an account to start a new vote or to administer an
   existing vote. You can log in or create a new account below.</p>
 
   <%= render_partial 'basic_login' %>

Benjamin Mako Hill || Want to submit a patch?