<% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
<tr>
<td style="text-align: left;">
- <% if election.active == 1 -%>
<%= link_to "#{election.name}", :controller => 'election',
:action => 'show', :id => election %>
- <% else -%>
- <%=h election.name %>
- <% end -%>
</td>
<td style="text-align: left;"><%=h election.description %></td>
<td style="text-align: left;">
<% end -%>
</table>
</p>
+<p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.</p>
<br />
</tr>
<% end %>
</table>
+<p><%= link_to( "Create a new QuickVote", :controller => 'quickvote', :action => 'create') %>.</p>