app: add html5 doctype
[hcoop/portal.git] / portal.mlt
index c0f634e..9cda623 100644 (file)
@@ -4,29 +4,31 @@ val deposit = Balance.depositAmount (#id bal);
 val showBal = Util.sub (#amount bal, deposit);
 @header [] %>
 
-<div style="border: 1px solid goldenrod; background-color: palegoldenrod;">
+<!--
+<div class="news">
 
-<h3>Notice: Google Checkout Is Gone</h3>
+<h3>Welcome to the Portal On Navajos</h3>
 
-<p>Google Checkout shut down in November 2013 so we only have Paypal
-available for processing payments currently. We are in the process of
-selecting a second (and possibly third) payment processor; you can
-contribute to the discussion by <a
-href="http://wiki.hcoop.net/PaymentProcessor2014">visiting the wiki
-discussion</a>.
+<p><a href="https://wiki.hcoop.net/Hardware#deleuze">Deleuze</a>
+suffered a hardware failure, and the benefit is that the portal is now
+running on our Debian Wheezy web server. List preferences are
+temporarily non-functional, email <a
+href="mailto:admins@hcoop.net"><tt>admins@hcoop.net</tt></a> if you
+would like to change your hcoop list subscriptions.</p>
 
 </div>
+-->
 
 <% @payment [] %>
 
 <h3><a href="money">Your recent account activity</a></h3>
 
 <% ref running = showBal %>
-<table>
+<table class="data">
 <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>
-<td><% running %></tr>
+<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td style="text-align: right"><% amount %>/<% #amount trn %></td>
+<td style="text-align: right"><% running %></td></tr>
 <% running := Util.sub (running, amount)
 end %>
 </table>
@@ -42,7 +44,7 @@ end %>
        (Init.getUserId () ) do %>
 <tr>
   <td><% #paid_on stripePmt %></td>
-  <td>$<% #net stripePmt %></td>
+  <td style="text-align: right">$<% #net stripePmt %></td>
 </tr>
 <% end %>
 </table>
@@ -82,9 +84,9 @@ val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0};
 switch vhosts of
        _ :: _ =>
        %><h3>Your web traffic this month</h3>
-       <table><tr><th>Site</th> <th>Data transferred (kB)</th></tr><%
+       <table class="data"><tr><th>Site</th> <th>Data transferred (kB)</th></tr><%
        foreach e in vhosts do %>
-                      <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>
+                      <tr><td style="text-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 style="text-align: right"><% #size e %></td></tr>
        <% end %>
        </table>
 <% end;