Changed properties to remove unecessary exectables.
[selectricity] / app / views / site / index.rhtml
index 5fce40fe1d51bfeea3c4267c10a7a364c641e3a1..eb009b31db9a155f2bbfe29113e3e25368b73238 100644 (file)
@@ -3,28 +3,58 @@
 <table width="auto" padding="5px">
 <tr>
 <td width="47%" valign="top">
-<h2>Voters</h2>
 
-<p>If you have received an email with a token inviting you to vote in an
-ongoing election, you can log in to vote using your token here.</p>
+<h2>QuickVotes</h2>
 
-<%= form_tag :controller => 'voter', :action => 'index' %>
-<%= text_field :vote, :password %>
-<%= submit_tag "Log In" %>
-<%= end_form_tag %>
+<p><em>QuickVotes</em> are like polls: unstructured, non-anonymous and
+without the complex features of <em>Selectricity</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>Selectricity <em>Anywhere</em></h2>
+
+<p>You can also access Selectricity entirely over email or via SMS/text
+messages from your mobile phone using Selectricity anywhere. Email <%=
+link_to "vote\@mako.cc", "mailto:vote@mako.cc" %> with <tt>help</tt> in
+the body for more information or read the <%= link_to "documentation
+online", "selectricity-anywhere.html"%>.</p>
 
-<p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
 </td>
 
 <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>
+<h2>Voters</h2>
+
+<p>If you have received an email with a token inviting you to vote in an
+ongoing election, you can log in to vote using your token here.</p>
 
-<%= render_partial 'basic_login' %>
+<%= form_tag :controller => 'voter', :action => 'index' %>
+<%= text_field :vote, :password %>
+<%= submit_tag "Log In" %>
+
+
+<p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
+<% if session[:user] %>
+  <%= render_partial 'user_summary' %> 
+<% else %>
+  <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' %>
+<% end %>
 </td>
 </tr>
 </table>

Benjamin Mako Hill || Want to submit a patch?