From eed818c2f36f08638c65244ea79485b87cb7ddc8 Mon Sep 17 00:00:00 2001 From: Date: Mon, 25 Aug 2008 18:43:30 -0400 Subject: [PATCH] The account summary page has been updated, though the number of items displayed is still one too many. Choose one to eliminate if we want it all to fit within the colored area on the page. --- app/views/account/summary.rhtml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index e6d231f..5af431b 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -14,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 -%> @@ -33,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 %>
-- 2.39.5