b005cb5ccd109facebb79bf52beb65542eefc7ec
[selectricity] / app / views / site / index.rhtml
1 <% %>
2
3 <table width="auto" padding="5px">
4 <tr>
5 <td width="47%" valign="top">
6
7 <h2>QuickVotes</h2>
8
9 <p><em>QuickVotes</em> are unstructured votes, more like polls, without
10 the voter verifiability, anonymity, and other more complex features of
11 HyperChad. They are the quickest way to make a decision using a variety
12 of preferential and non-preficial election methods, or to compare
13 between methods.</p>
14
15 <p><%= link_to "Create QuickVote.", :controller => 'quickvote', :action => 'create' %></p>
16
17 <h2>Voters</h2>
18
19 <p>If you have received an email with a token inviting you to vote in an
20 ongoing election, you can log in to vote using your token here.</p>
21
22 <%= form_tag :controller => 'voter', :action => 'index' %>
23 <%= text_field :vote, :password %>
24 <%= submit_tag "Log In" %>
25 <%= end_form_tag %>
26
27 <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
28 </td>
29
30 <td width="6%"></td>
31
32 <td width="47%" valign="top">
33
34 <% if session[:user] %>
35   <%= render_partial 'user_summary' %> 
36 <% else %>
37   <h2>Election Administrators</h2>
38   <p>You must have an account to start a new election or to administer an
39   existing vote. You can log in or create a new account below.</p>
40
41   <%= render_partial 'basic_login' %>
42 <% end %>
43 </td>
44 </tr>
45 </table>

Benjamin Mako Hill || Want to submit a patch?