Show the "add your link" dialog BEFORE hosted sites list
[hcoop/portal.git] / portal.mlt
1 <% val you = Init.getUser();
2 val bal = Balance.lookupBalance (#bal you);
3 val deposit = Balance.depositAmount (#id bal);
4 val showBal = Util.sub (#amount bal, deposit);
5 @header [] %>
6
7 <div style="border: 2px solid red; background-color: LightSalmon;">
8
9 <h3>Notice: Transition to Upgraded Servers in Progress</h3>
10
11 <p>We are now providing a more powerful shell server and web server
12 running Debian Squeeze. All members <strong>must take action</strong>
13 to run their services on the new machines. There are also changes to
14 mail routing that require action by most members. Read the <a
15 href="http://wiki.hcoop.net/NavajosBogMigrationGuide">migration
16 guide</a> for details on what you need to do to keep your account
17 working. We have also called a roll call, so check your spam folder
18 for recent mail from hcoop if you have not received it.
19 </div>
20
21 <% @payment [] %>
22
23 <h3><a href="money">Your recent account activity</a></h3>
24
25 <% ref running = showBal %>
26 <table>
27 <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr>
28 <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
29 <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td>
30 <td><% running %></tr>
31 <% running := Util.sub (running, amount)
32 end %>
33 </table>
34 <a href="money?lookback=inf">Show all transactions</a><br>
35 <b>Balance: $<% showBal %></b><br>
36 <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>)
37
38 <!--b>Balance: $<% #amount bal %></b-->
39
40 <% val polls = Poll.listCurrentPolls ();
41 switch polls of
42 _::_ => %>
43 <h3><a href="poll">Current polls</a></h3>
44
45 <% foreach pol in polls do %>
46 <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
47 <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
48 (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
49 <% end
50 end %>
51
52 <% val issues = Support.listOpenIssues (#id you);
53 switch issues of
54 _::_ => %>
55 <h3><a href="support">Open support issues</a></h3>
56
57 <% foreach (name, issue) in issues do %>
58 <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
59 <% switch #status issue of
60 Support.NEW => %>(New)<%
61 | Support.PENDING => %>(Pending)<%
62 | Support.CLOSED => %>(Closed)<%
63 end %>
64 <br>
65 <% end
66 end;
67
68 val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0};
69 switch vhosts of
70 _ :: _ =>
71 %><h3>Your web traffic this month</h3>
72 <table><tr><th>Site</th> <th>Data transferred (kB)</th></tr><%
73 foreach e in vhosts do %>
74 <tr><td align="right"><a href="<% if #ssl (#host e) then %>https<% else %>http<% end %>://<% #hostname (#host e) %>/"><% #hostname (#host e) %><% if #ssl (#host e) then %> (SSL)<% end %></a> <a href="/webalizer/<% #id (#host e) %>/">[detail]</a></td><td><% #size e %></td></tr>
75 <% end %>
76 </table>
77 <% end;
78
79 @footer [] %>