Added a list of recent votes to the homepage.
[selectricity] / app / views / site / index.rhtml
index 2e4240e2c3e80a3396336329f65d38e41515515d..e89063dc3331416a79749f44fcb583df4119df7c 100644 (file)
@@ -3,6 +3,24 @@
 <table width="auto" padding="5px">
 <tr>
 <td width="47%" valign="top">
+
+<h2>QuickVotes</h2>
+
+<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 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>
 
 <p>If you have received an email with a token inviting you to vote in an
@@ -23,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?