X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ffec26b00fc14b92f82137e1e3c62ce78c93ea24..b82ac70a3367072882aa259dae0b6a1b6e3288fa:/app/views/account/summary.rhtml?ds=sidebyside diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index 2f24e28..61a4b24 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -1,53 +1,50 @@ -

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 %>
Member since: <%=h @user.created_at.strftime("%x") %>

+

+ <%= link_to "Update Email Address", :action => 'change_contact', + :id => @user.id %> +

+ +

Your Elections: - +
- <% Election.content_columns.each do |column| -%> - <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\ - || column.name.eql?("active") %> - + <% ["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 %> - <% if election.anonymous == 0 -%> - No - <% else -%> - Yes - <% end -%> + <%=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 %>
<%=h election.startdate.strftime("%x") %><%=h election.enddate.strftime("%x") %> - <% if election.notices == 0 -%> - No - <% else -%> - Yes - <% end -%> - <%=h election.election_method %>

+
+

Your Quickvotes: