X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/85e3fa6d1b4627157bf6ef456b46dc6ceafe54c0..05ebed925ae2b5e7bf2a599536ba7d7ac15ffbf7:/app/views/account/summary.rhtml diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index d15e442..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 %>
@@ -9,8 +14,10 @@ Member since: <%=h @user.created_at.strftime("%x") %> <% Election.content_columns.each do |column| -%> - <% next if column.name.eql?("viewable") || column.name.eql?("quickuser")\ - || column.name.eql?("active") || column.name.eql?("anonymous") %> + <% dontPrint = ["viewable", "quickuser", "active", "anonymous", \ + "early_results", "embed_custom_string", "embeddable", \ + "notices"]%> + <% next if dontPrint.include?(column.name)%> <% end -%> @@ -28,14 +35,15 @@ Member since: <%=h @user.created_at.strftime("%x") %> - + - + <% else -%> + No + <% end -%> + + <% end -%>
<%= column.human_name %>
<%=h election.description %> <%=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 %>