val bal = Balance.lookupBalance (#bal you);
@header [] %>
-<h3><b><a href="money">Your recent account activity</a></b></h3>
+<% @payment [] %>
+
+<h3><a href="money">Your recent account activity</a></h3>
<table>
<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
</table>
<b>Balance: $<% #amount bal %></b>
-<h3><b><a href="poll">Current polls</a></b></h3>
+<% val polls = Poll.listCurrentPolls ();
+switch polls of
+ _::_ => %>
+<h3><a href="poll">Current polls</a></h3>
-<% foreach pol in Poll.listCurrentPolls () do %>
+<% foreach pol in polls do %>
<li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
<% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
(<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
-<% end %>
+<% end
+end %>
+
+<% val issues = Support.listOpenIssues (#id you);
+switch issues of
+ _::_ => %>
+<h3><a href="support">Open support issues</a></h3>
+
+<% foreach (name, issue) in issues do %>
+<a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
+<% switch #status issue of
+ Support.NEW => %>(New)<%
+ | Support.PENDING => %>(Pending)<%
+ | Support.CLOSED => %>(Closed)<%
+end %>
+<br>
+<% end
+end;
-<% @footer [] %>
\ No newline at end of file
+@footer [] %>