Streamlined and made more consistent the code that checks for custom skin uploads...
[selectricity-live] / app / views / front / index.rhtml
1 <div id="voters" class="main-section">
2   <div id="voters-content">
3   <h2>Voters</h2>
4
5   <p>If you have received an email with a token inviting you to vote in
6   an ongoing election, you can log in to vote using your token below.</p>
7
8   <% form_tag(:controller => 'voter', :action => 'login') do %>
9   <p><%= text_field :vote, :password %></p>
10   <p><%= submit_tag "Log In" %></p>
11   <% end %>
12
13   <p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'reminder' %></p>
14
15   <h3>SMS Interface</h3>
16   <p>For information on accessing Selectricity over email or via SMS/text messages from your mobile phone, email <%= link_to "vote\@selectricity.org", "mailto:vote@selectricity.org" %> with "help" in the body or read the <%= link_to "Selectricity Anywhere documentation", :controller => 'about', :action => 'anywhere' %>.</p>
17
18   </div>
19 </div>
20
21 <div id="control-room" class="main-section">
22   <div id="control-room-content">
23   <h2>Control Room</h2>
24   <% if session[:user] %>
25     <%= render :partial => 'user_summary' %> 
26   <% else %>
27     
28     <p>You must have an account to start a new vote or to administer an
29     existing vote. You can log in <!-- or create a new account -->below.</p>
30     
31     <%= render :partial => 'basic_login' %>
32   
33     <p>Full elections creation is not yet public. <a
34     href="mailto:team@selectricity.org">Contact us</a> for access.</p>
35     
36     <!-- <p>If you do not yet have an account, you should <%= link_to "create
37     one", :controller => 'account', :action => 'signup' %>.</p> -->
38   <% end %>
39
40
41   </div>
42 </div>
43
44 <div id="quickvotes" class="main-section">
45   <div id="quickvotes-content">
46
47   <h2>QuickVotes</h2>
48   <p><em>QuickVotes</em> are like polls: unstructured, non-anonymous and
49   without the complex features of <em>Selectricity</em>. They are the
50   quickest way to make a decision or to compare between voting
51   methods.</p>
52
53   <ul>
54    <li><%= link_to( "Create a QuickVote", :controller => 'quickvote', :action => 'create') %></li>
55    <li><%= link_to( "My Recent QuickVotes", :controller => 'quickvote', :action => 'my_quickvotes')%></li>
56   </ul>
57
58   <p>Recently created <em>QuickVotes</em> include:</p>
59   <ul>
60   <% for quickvote in @quickvotes %>
61     <li><%= link_to (h(quickvote.shortdesc) || "Unnamed"), quickvote_url(:ident => quickvote.name) %></li>
62   <% end %>
63   </ul>
64
65   </div>
66 </div>
67

Benjamin Mako Hill || Want to submit a patch?