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 <table class="voterbox" id="election">
16 <% Election.content_columns.each do |column| -%>
17 <% dontPrint = ["viewable", "quickuser", "active", "anonymous", \
18 "early_results", "embed_custom_string", "embeddable", \
20 <% next if dontPrint.include?(column.name)%>
21 <th><%= column.human_name %></th>
25 <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
28 <% if election.active == 1 -%>
29 <%= link_to "#{election.name}", :controller => 'election',
30 :action => 'show', :id => election %>
35 <td><%=h election.description %></td>
36 <td><%=h election.startdate.strftime("%x") %></td>
37 <td><%=h election.enddate.strftime("%x") %></td>
38 <td><%=h election.election_method %></td>
40 <% if election.authenticated? %>
56 <table class="voterbox">
58 <% ["Name", "Description", "Start Date", "End Date", "Notices"].each do |column| %>
59 <th><%= column %></th>
63 <% @user.elections.select {|e| e.instance_of?(QuickVote)}.each do |quickvote|
67 <% if quickvote.active == 1 %>
68 <%= link_to "#{quickvote.name}",
69 quickaction_url( :ident => quickvote.name,
70 :action => 'results' ) %>
72 <%=h quickvote.name %>
75 <td><%=h quickvote.description %></td>
76 <td><%=h quickvote.startdate.strftime("%x") %></td>
77 <td><%=h quickvote.enddate.strftime("%x") %></td>
79 <% if quickvote.notices == 0 -%>