1 <h2>This is your user summary profile, <%=h @user.login.capitalize %></h2>
4 E-mail: <%=h @user.email %><br />
5 Member since: <%=h @user.created_at.strftime("%x") %>
9 <table class="voterbox">
11 <% Election.content_columns.each do |column| -%>
12 <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\
13 || column.name.eql?("active") %>
14 <th><%= column.human_name %></th>
18 <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
21 <% if election.active == 1 -%>
22 <%= link_to "#{election.name}", :controller => 'election',
23 :action => 'show', :id => election %>
28 <td><%=h election.description %></td>
30 <% if election.anonymous == 0 -%>
36 <td><%=h election.startdate.strftime("%x") %></td>
37 <td><%=h election.enddate.strftime("%x") %></td>
39 <% if election.notices == 0 -%>
45 <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 -%>