Created a user "summary/profile page". Also corected several minor typos on election...
[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>Selectricity</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',
15                 :action => 'create') %></p>
16
17 <p>Take a look at the QuickVotes you've made recently: <br />
18 <%= link_to( "My Recent QuickVotes", :controller => 'quickvote',
19                 :action => 'my_quickvotes')%></p>
20 <p>Recent <em>QuickVotes</em> include:</p>
21
22 <ul>
23 <% for quickvote in @quickvotes %>
24 <li><%= link_to (h(quickvote.shortdesc) || "Unnamed"), quickvote_url(:ident => quickvote.name) %></li>
25 <% end %>
26 </ul>
27
28
29
30 <h2>Selectricity <em>Anywhere</em></h2>
31
32 <p>You can also access Selectricity entirely over email or via SMS/text
33 messages from your mobile phone using Selectricity anywhere. Email <%=
34 link_to "vote\@mako.cc", "mailto:vote@mako.cc" %> with <tt>help</tt> in
35 the body for more information or read the <%= link_to "documentation
36 online", "selectricity-anywhere.html"%>.</p>
37
38 </td>
39
40 <td width="6%"></td>
41
42 <td width="47%" valign="top">
43
44 <h2>Voters</h2>
45
46 <p>If you have received an email with a token inviting you to vote in an
47 ongoing election, you can log in to vote using your token here.</p>
48
49 <%= form_tag :controller => 'voter', :action => 'index' %>
50 <%= text_field :vote, :password %>
51 <%= submit_tag "Log In" %>
52
53
54 <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>
55 <% if session[:user] %>
56   <%= render :partial => 'user_summary' %> 
57 <% else %>
58   <h2>Vote Administrators</h2>
59   <p>You must have an account to start a new vote or to administer an
60   existing vote. You can log in or create a new account below.</p>
61
62   <%= render_partial 'basic_login' %>
63 <% end %>
64 </td>
65 </tr>
66 </table>

Benjamin Mako Hill || Want to submit a patch?