hcoop-sysadmin list subscription
[bpt/portal.git] / portal.mlt
CommitLineData
e68ddb80
AC
1<% val you = Init.getUser();
2val bal = Balance.lookupBalance (#bal you);
3@header [] %>
208e2cbc 4
b6dd1aaf 5<h3><a href="money">Your recent account activity</a></h3>
f49e1088
AC
6
7<table>
8<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
9<% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
10<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr>
11<% end %>
12</table>
e68ddb80 13<b>Balance: $<% #amount bal %></b>
208e2cbc 14
b6dd1aaf
AC
15<% val polls = Poll.listCurrentPolls ();
16switch polls of
17 _::_ => %>
18<h3><a href="poll">Current polls</a></h3>
56dbfc30 19
b6dd1aaf 20<% foreach pol in polls do %>
56dbfc30
AC
21<li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
22<% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
23(<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
b6dd1aaf
AC
24<% end
25end %>
56dbfc30 26
b6dd1aaf
AC
27<% val issues = Support.listOpenIssues (#id you);
28switch issues of
29 _::_ => %>
30<h3><a href="support">Open support issues</a></h3>
5d851d7c 31
b6dd1aaf 32<% foreach (name, issue) in issues do %>
5d851d7c
AC
33<a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
34<% switch #status issue of
35 Support.NEW => %>(New)<%
36 | Support.PENDING => %>(Pending)<%
37 | Support.CLOSED => %>(Closed)<%
38end %>
39<br>
b6dd1aaf
AC
40<% end
41end %>
eaa96514 42
208e2cbc 43<% @footer [] %>