]> projects.mako.cc - selectricity/blobdiff - app/views/account/summary.rhtml
added first full working version of embeddable elections
[selectricity] / app / views / account / summary.rhtml
index 2f24e2801f165c51de6d7b37d9f2c7dd28839e3a..e6d231f29fa1162fc3dfb0fed4be19cd67990ea9 100644 (file)
@@ -1,4 +1,9 @@
-<h2>This is your user summary profile, <%=h @user.login.capitalize %></h2>
+<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 />
@@ -6,11 +11,11 @@ Member since: <%=h @user.created_at.strftime("%x") %>
 </p>
 
 <p>Your Elections:
-  <table class="voterbox">
+  <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?("active") || column.name.eql?("anonymous") %>
            <th><%= column.human_name %></th>
          <% end -%>
     </tr>
@@ -26,13 +31,6 @@ Member since: <%=h @user.created_at.strftime("%x") %>
                <% end -%>
          </td>
          <td><%=h election.description %></td>
-         <td>
-         <% if election.anonymous == 0 -%>
-              No
-            <% else -%>
-              Yes
-            <% end -%>
-         </td>
          <td><%=h election.startdate.strftime("%x") %></td>
       <td><%=h election.enddate.strftime("%x") %></td>
       <td>
@@ -48,6 +46,8 @@ Member since: <%=h @user.created_at.strftime("%x") %>
   </table>
 </p>
 
+<br />
+
 <p>
 Your Quickvotes:
 <table class="voterbox">

Benjamin Mako Hill || Want to submit a patch?