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