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 <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\
18 || column.name.eql?("active") || column.name.eql?("anonymous") %>
19 <th><%= column.human_name %></th>
23 <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
26 <% if election.active == 1 -%>
27 <%= link_to "#{election.name}", :controller => 'election',
28 :action => 'show', :id => election %>
33 <td><%=h election.description %></td>
34 <td><%=h election.startdate.strftime("%x") %></td>
35 <td><%=h election.enddate.strftime("%x") %></td>
37 <% if election.notices == 0 -%>
43 <td><%=h election.election_method %></td>
53 <table class="voterbox">
55 <% ["Name", "Description", "Start Date", "End Date", "Notices"].each do |column| %>
56 <th><%= column %></th>
60 <% @user.elections.select {|e| e.instance_of?(QuickVote)}.each do |quickvote|
64 <% if quickvote.active == 1 %>
65 <%= link_to "#{quickvote.name}",
66 quickaction_url( :ident => quickvote.name,
67 :action => 'results' ) %>
69 <%=h quickvote.name %>
72 <td><%=h quickvote.description %></td>
73 <td><%=h quickvote.startdate.strftime("%x") %></td>
74 <td><%=h quickvote.enddate.strftime("%x") %></td>
76 <% if quickvote.notices == 0 -%>