Show the "add your link" dialog BEFORE hosted sites list
[hcoop/portal.git] / portal.mlt
index 7fb59ee..f41f567 100644 (file)
@@ -1,19 +1,38 @@
 <% val you = Init.getUser();
 val bal = Balance.lookupBalance (#bal you);
 val deposit = Balance.depositAmount (#id bal);
+val showBal = Util.sub (#amount bal, deposit);
 @header [] %>
 
+<div style="border: 2px solid red; background-color: LightSalmon;">
+
+<h3>Notice: Transition to Upgraded Servers in Progress</h3>
+
+<p>We are now providing a more powerful shell server and web server
+running Debian Squeeze. All members <strong>must take action</strong>
+to run their services on the new machines. There are also changes to
+mail routing that require action by most members. Read the <a
+href="http://wiki.hcoop.net/NavajosBogMigrationGuide">migration
+guide</a> for details on what you need to do to keep your account
+working. We have also called a roll call, so check your spam folder
+for recent mail from hcoop if you have not received it.
+</div>
+
 <% @payment [] %>
 
 <h3><a href="money">Your recent account activity</a></h3>
 
+<% ref running = showBal %>
 <table>
-<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
+<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr>
 <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
-<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr>
-<% end %>
+<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td>
+<td><% running %></tr>
+<% running := Util.sub (running, amount)
+end %>
 </table>
-<b>Balance: $<% Util.sub (#amount bal, deposit) %></b><br>
+<a href="money?lookback=inf">Show all transactions</a><br>
+<b>Balance: $<% showBal %></b><br>
 <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>)
 
 <!--b>Balance: $<% #amount bal %></b-->