1 <h3>This is your user summary profile, <%=h @user.login.capitalize %></h3>
4 E-mail: <%=h @user.email %><br />
5 Member since: <%=h @user.created_at.strftime("%x") %>
9 <table class="voterbox" id="election">
11 <% Election.content_columns.each do |column| -%>
12 <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\
13 || column.name.eql?("active") || column.name.eql?("anonymous") %>
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>
29 <td><%=h election.startdate.strftime("%x") %></td>
30 <td><%=h election.enddate.strftime("%x") %></td>
32 <% if election.notices == 0 -%>
38 <td><%=h election.election_method %></td>
48 <table class="voterbox">
50 <% ["Name", "Description", "Start Date", "End Date", "Notices"].each do |column| %>
51 <th><%= column %></th>
55 <% @user.elections.select {|e| e.instance_of?(QuickVote)}.each do |quickvote|
59 <% if quickvote.active == 1 %>
60 <%= link_to "#{quickvote.name}",
61 quickaction_url( :ident => quickvote.name,
62 :action => 'results' ) %>
64 <%=h quickvote.name %>
67 <td><%=h quickvote.description %></td>
68 <td><%=h quickvote.startdate.strftime("%x") %></td>
69 <td><%=h quickvote.enddate.strftime("%x") %></td>
71 <% if quickvote.notices == 0 -%>