Added a list of recent votes to the homepage.
[selectricity] / app / views / site / index.rhtml
index 92c38cc80eb01002ce3b3ab125175e2f9adf55c4..e89063dc3331416a79749f44fcb583df4119df7c 100644 (file)
@@ -11,7 +11,15 @@ 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.", :controller => 'quickvote', :action => 'create' %></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>
 
@@ -33,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?