X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/13da3454faad5cbda89e1c30708f2adf741f3f50..5fd5cba6038d0ed97adb735cd24cc70c26335a3e:/app/views/account/summary.rhtml diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index d15e442..b53122e 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -1,4 +1,9 @@ -

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

+
+ Account Summary + +
+ +

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

E-mail: <%=h @user.email %>
@@ -8,34 +13,29 @@ 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 -%> + + <% 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 %> +