X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/796d33df26fa2f591a405810ae4958a26cf060a4..d8daddcc6426e1ca5f3d09fd62004f6cc1050357:/app/views/account/summary.rhtml?ds=inline diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index 2f24e28..5af431b 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 %>
@@ -6,11 +11,13 @@ 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") %> + <% dontPrint = ["viewable", "quickuser", "active", "anonymous", \ + "early_results", "embed_custom_string", "embeddable", \ + "notices"]%> + <% next if dontPrint.include?(column.name)%> <% end -%> @@ -26,28 +33,24 @@ Member since: <%=h @user.created_at.strftime("%x") %> <% end -%> - - + - + <% else -%> + No + <% end -%> + + <% end -%>
<%= column.human_name %>
<%=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 -%> + <%=h election.election_method %> + <% if election.authenticated? %> Yes - <% end -%> - <%=h election.election_method %>

+
+

Your Quickvotes: