1 <div id="title-header">
2 <span class="header">Account Summary</span>
3 <span class="subheader"></span>
6 <h3>This is your account summary profile, <%=h @user.login.capitalize %></h3>
9 E-mail: <%=h @user.email %><br />
10 Member since: <%=h @user.created_at.strftime("%x") %>
14 <%= link_to "Update Email Address", :action => 'change_contact',
20 <table class="voterbox" id="election">
22 <% ["Name", "Description", "Details"].each do |column| -%>
23 <th><%= column %></th>
27 <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
29 <td style="text-align: left;">
30 <%= link_to "#{election.name}", :controller => 'election',
31 :action => 'show', :id => election %>
33 <td style="text-align: left;"><%=h election.description %></td>
34 <td style="text-align: left;">
35 <strong>Start:</strong> <%=h election.startdate.strftime("%x") %><br />
36 <strong>End:</strong> <%=h election.enddate.strftime("%x") %><br />
37 <strong>Method:</strong> <%=h ELECTION_TYPES[election.election_method] %><br />
38 <strong>Open:</strong> <%= (not election.authenticated?).to_s.capitalize %>
45 <p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.</p>
51 <table class="voterbox">
53 <% ["Name", "Description", "Start Date", "End Date", "Notices"].each do |column| %>
54 <th><%= column %></th>
58 <% @user.elections.select {|e| e.instance_of?(QuickVote)}.each do |quickvote|
62 <% if quickvote.active == 1 %>
63 <%= link_to "#{quickvote.name}",
64 quickaction_url( :ident => quickvote.name,
65 :action => 'results' ) %>
67 <%=h quickvote.name %>
70 <td><%=h quickvote.description %></td>
71 <td><%=h quickvote.startdate.strftime("%x") %></td>
72 <td><%=h quickvote.enddate.strftime("%x") %></td>
74 <% if quickvote.notices == 0 -%>
83 <p><%= link_to( "Create a new QuickVote", :controller => 'quickvote', :action => 'create') %>.</p>