X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ed271a9bc9a0ec6928e7276d645541db6e5cb7c6..5c62b1606f7f89efdd5a6c51308cd0212fe9a709:/app/views/account/summary.rhtml diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index e6d231f..4d79f5b 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -13,38 +13,30 @@ 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") || column.name.eql?("anonymous") %> - + <% ["Name", "Description", "Details"].each do |column| -%> + <% end -%> <% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %> - - - - - - + + + <% end -%>
<%= column.human_name %><%= column %>
- <% if election.active == 1 -%> + <%= link_to "#{election.name}", :controller => 'election', :action => 'show', :id => election %> - <% else -%> - <%=h election.name %> - <% end -%> <%=h election.description %><%=h election.startdate.strftime("%x") %><%=h election.enddate.strftime("%x") %> - <% if election.notices == 0 -%> - No - <% else -%> - Yes - <% end -%> - <%=h election.election_method %><%=h election.description %> + Start: <%=h election.startdate.strftime("%x") %>
+ End: <%=h election.enddate.strftime("%x") %>
+ Method: <%=h ELECTION_TYPES[election.election_method] %>
+ Open: <%= (not election.authenticated?).to_s.capitalize %> +

+

<%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.


@@ -82,3 +74,4 @@ Your Quickvotes: <% end %> +

<%= link_to( "Create a new QuickVote", :controller => 'quickvote', :action => 'create') %>.