Added initial support fo QuickVotes. There is support for the creation
[selectricity] / app / views / site / index.rhtml
index 5fce40fe1d51bfeea3c4267c10a7a364c641e3a1..5a68a6b77237ebe9c91a5eb687c7b935025c95e5 100644 (file)
@@ -3,6 +3,17 @@
 <table width="auto" padding="5px">
 <tr>
 <td width="47%" valign="top">
+
+<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><%= link_to "Create QuickVote.", :action => 'create_quickvote' %></p>
+
 <h2>Voters</h2>
 
 <p>If you have received an email with a token inviting you to vote in an
@@ -19,12 +30,16 @@ ongoing election, you can log in to vote using your token here.</p>
 <td width="6%"></td>
 
 <td width="47%" valign="top">
-<h2>Vote Administrators</h2>
 
-<p>You must have an account to start a new election or to administer an
-existing vote. You can log in or create a new account below.</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
+  existing vote. You can log in or create a new account below.</p>
 
-<%= render_partial 'basic_login' %>
+  <%= render_partial 'basic_login' %>
+<% end %>
 </td>
 </tr>
 </table>

Benjamin Mako Hill || Want to submit a patch?