]> projects.mako.cc - selectricity/blobdiff - app/views/account/summary.rhtml
fix bug with token generator
[selectricity] / app / views / account / summary.rhtml
index d15e4425b36e6abb3d0e48043900b577cbb705db..5af431b628651dfca826bef74c10b210fd7e962d 100644 (file)
@@ -1,4 +1,9 @@
-<h3>This is your user summary profile, <%=h @user.login.capitalize %></h3>
+<div id="title-header">
+  <span class="header">Account Summary</span>
+  <span class="subheader"></span>
+</div>
+
+<h3>This is your account summary profile, <%=h @user.login.capitalize %></h3>
 
 <p>
 E-mail: <%=h @user.email %><br />
@@ -9,8 +14,10 @@ Member since: <%=h @user.created_at.strftime("%x") %>
   <table class="voterbox" id="election">
     <tr>
          <% 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)%>
            <th><%= column.human_name %></th>
          <% end -%>
     </tr>
@@ -28,14 +35,15 @@ Member since: <%=h @user.created_at.strftime("%x") %>
          <td><%=h election.description %></td>
          <td><%=h election.startdate.strftime("%x") %></td>
       <td><%=h election.enddate.strftime("%x") %></td>
-      <td>
-         <% if election.notices == 0 -%>
-              No
-            <% else -%>
+      <td><%=h election.election_method %></td>   
+         <td>
+                 <% if election.authenticated? %>
               Yes
-            <% end -%>
-         </td>   
-         <td><%=h election.election_method %></td>
+             <% else -%>
+              No
+             <% end -%>
+         </td>
+         
     </tr>
     <% end -%>
   </table>

Benjamin Mako Hill || Want to submit a patch?