Variety of small changes (mostly to properties) plus a few "in the
[selectricity-live] / 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 a QuickVote", :controller => 'quickvote', :action => 'create' %></p>
15
16 <p>Recent <em>QuickVotes</em> include:</p>
17
18 <ul>
19 <% for quickvote in @quickvotes %>
20 <li><%= link_to (quickvote.shortdesc || "Unnamed"), quickvote_url(:votename => quickvote.name) %></li>
21 <% end %>
22 </ul>
23
24 <h2>HyperChad <em>Anywhere</em></h2>
25
26 <p>You can also access HyperChad entirely over email or via SMS/text
27 messages from your mobile phone using HyperChad anywhere. Email <%=
28 link_to "vote\@mako.cc", "mailto:vote@mako.cc" %> with <tt>help</tt> in
29 the body for more information or read the <%= link_to "documentation
30 online", "hyperchad-anywhere.html"%>.</p>
31
32 </td>
33
34 <td width="6%"></td>
35
36 <td width="47%" valign="top">
37
38 <h2>Voters</h2>
39
40 <p>If you have received an email with a token inviting you to vote in an
41 ongoing election, you can log in to vote using your token here.</p>
42
43 <%= form_tag :controller => 'voter', :action => 'index' %>
44 <%= text_field :vote, :password %>
45 <%= submit_tag "Log In" %>
46 <%= end_form_tag %>
47
48 <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
49 <% if session[:user] %>
50   <%= render_partial 'user_summary' %> 
51 <% else %>
52   <h2>Vote Administrators</h2>
53   <p>You must have an account to start a new vote or to administer an
54   existing vote. You can log in or create a new account below.</p>
55
56   <%= render_partial 'basic_login' %>
57 <% end %>
58 </td>
59 </tr>
60 </table>

Benjamin Mako Hill || Want to submit a patch?