projects
/
selectricity
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdc5549
)
The account summary page has been updated, though the number of items displayed is...
author
<jlsharps@mit.edu>
<>
Mon, 25 Aug 2008 22:43:30 +0000
(18:43 -0400)
committer
<jlsharps@mit.edu>
<>
Mon, 25 Aug 2008 22:43:30 +0000
(18:43 -0400)
app/views/account/summary.rhtml
patch
|
blob
|
history
diff --git
a/app/views/account/summary.rhtml
b/app/views/account/summary.rhtml
index e6d231f29fa1162fc3dfb0fed4be19cd67990ea9..5af431b628651dfca826bef74c10b210fd7e962d 100644
(file)
--- a/
app/views/account/summary.rhtml
+++ b/
app/views/account/summary.rhtml
@@
-14,8
+14,10
@@
Member since: <%=h @user.created_at.strftime("%x") %>
<table class="voterbox" id="election">
<tr>
<% Election.content_columns.each do |column| -%>
<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>
<th><%= column.human_name %></th>
<% end -%>
</tr>
@@
-33,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><%=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
Yes
- <% end -%>
- </td>
- <td><%=h election.election_method %></td>
+ <% else -%>
+ No
+ <% end -%>
+ </td>
+
</tr>
<% end -%>
</table>
</tr>
<% end -%>
</table>
Benjamin Mako Hill
||
Want to submit a patch?