This is your user summary profile, <%=h @user.login.capitalize %>

E-mail: <%=h @user.email %>
Member since: <%=h @user.created_at.strftime("%x") %>

Your Elections: <% Election.content_columns.each do |column| -%> <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\ || column.name.eql?("active") %> <% end -%> <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %> <% end -%>
<%= column.human_name %>
<% if election.active == 1 -%> <%= link_to "#{election.name}", :controller => 'election', :action => 'show', :id => election %> <% else -%> <%=h election.name %> <% end -%> <%=h election.description %> <% if election.anonymous == 0 -%> No <% else -%> Yes <% end -%> <%=h election.startdate.strftime("%x") %> <%=h election.enddate.strftime("%x") %> <% if election.notices == 0 -%> No <% else -%> Yes <% end -%> <%=h election.election_method %>

Your Quickvotes: <% ["Name", "Description", "Start Date", "End Date", "Notices"].each do |column| %> <% end -%> <% @user.elections.select {|e| e.instance_of?(QuickVote)}.each do |quickvote| %> <% end %>
<%= column %>
<% if quickvote.active == 1 %> <%= link_to "#{quickvote.name}", quickaction_url( :ident => quickvote.name, :action => 'results' ) %> <% else %> <%=h quickvote.name %> <% end %> <%=h quickvote.description %> <%=h quickvote.startdate.strftime("%x") %> <%=h quickvote.enddate.strftime("%x") %> <% if quickvote.notices == 0 -%> No <% else -%> Yes <% end -%>