Made a large number of mostly cosmetic fixes after a detailed
[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 like polls: unstructured, non-anonymous and
10 without the complex features of <em>HyperChad</em>. They are the
11 quickest way to make a decision or to compare between voting
12 methods.</p>
13
14 <p><%= link_to "Create QuickVote.", :controller => 'quickvote', :action => 'create' %></p>
15
16 <h2>Voters</h2>
17
18 <p>If you have received an email with a token inviting you to vote in an
19 ongoing election, you can log in to vote using your token here.</p>
20
21 <%= form_tag :controller => 'voter', :action => 'index' %>
22 <%= text_field :vote, :password %>
23 <%= submit_tag "Log In" %>
24 <%= end_form_tag %>
25
26 <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
27 </td>
28
29 <td width="6%"></td>
30
31 <td width="47%" valign="top">
32
33 <% if session[:user] %>
34   <%= render_partial 'user_summary' %> 
35 <% else %>
36   <h2>Election Administrators</h2>
37   <p>You must have an account to start a new election or to administer an
38   existing vote. You can log in or create a new account below.</p>
39
40   <%= render_partial 'basic_login' %>
41 <% end %>
42 </td>
43 </tr>
44 </table>

Benjamin Mako Hill || Want to submit a patch?