]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/status/index.mako
big interface overhaul, doesn't really add any new features yet
[bluechips.git] / bluechips / templates / status / index.mako
index 5e9539dabf3f79565940f06f92a75e2e6d69cab4..f1c21e364d02fac36bc21e5067492682b6d1b2f8 100644 (file)
@@ -1,69 +1,76 @@
 <%inherit file="/base.mako"/>
 
-<h2>Settling Transfers</h2>
+<div class="block">
+  <h2>Settling Transfers</h2>
 
-% if len(c.settle) == 0:
-<p>No need! The books are balanced!</p>
-% else:
-<p>To balance the books, the following transfers need to be made:</p>
+  % if len(c.settle) == 0:
+    <p>No need! The books are balanced!</p>
+  % else:
+    <p>To balance the books, the following transfers need to be made:</p>
 
-<table>
-    <tr>
+    <table>
+      <tr>
         <th>From</th>
         <th>To</th>
         <th>Amount</th>
-    </tr>
-    % for transfer in c.settle:
-    <tr>
-        <td>${transfer[0].username}</td>
-        <td>${transfer[1].username}</td>
-        <td>${transfer[2]}</td>
-    </tr>
-    % endfor
-</table>
-% endif
+      </tr>
+      % for transfer in c.settle:
+        <tr>
+          <td>${transfer[0].username}</td>
+          <td>${transfer[1].username}</td>
+          <td>${transfer[2]}</td>
+        </tr>
+      % endfor
+    </table>
+  % endif
+</div>
 
-<h2>Totals</h2>
+<div class="block">
+  <h2>Totals</h2>
 
-<table>
+  <table id="totals">
     <tr>
-        <td>Total</td>
-        <td>${c.total}</td>
+      <th>Total</th>
+      <td>${c.total}</td>
     </tr>
     <tr>
-        <td>Past year</td>
-        <td>${c.year_total}</td>
+      <th>Past year</th>
+      <td>${c.year_total}</td>
     </tr>
     <tr>
-        <td>Year to date</td>
-        <td>${c.this_year_total}</td>
+      <th>Year to date</th>
+      <td>${c.this_year_total}</td>
     </tr>
     <tr>
-        <td>Month to date</td>
-        <td>${c.this_month_total}</td>
+      <th>Month to date</th>
+      <td>${c.this_month_total}</td>
     </tr>
     <tr>
-        <td>Last month</td>
-        <td>${c.last_month_total}</td>
+      <th>Last month</th>
+      <td>${c.last_month_total}</td>
     </tr>
-</table>
+  </table>
+</div>
 
-<h2>Add a new transaction</h2>
+<div class="block">
+  <h2>Add a new transaction</h2>
 
-<ul>
+  <ul>
     <li>${h.link_to('Expenditure for the group', h.url_for(controller='spend', action='index'))}</li>
     <li>${h.link_to('Transfer between two people', h.url_for(controller='transfer', action='index'))}</li>
-</ul>
+  </ul>
+</div>
 
-<h2>Your History</h2>
+<div class="block">
+  <h2>Your History</h2>
 
-${h.link_to('See all history', h.url_for(controller='history',
-                                         action='index'))}
+  ${h.link_to('See all history', h.url_for(controller='history', action='index'))}
 
-<h3>Expenditures</h3>
+  <h3>Expenditures</h3>
 
-${self.listExpenditures(c.expenditures)}
+  ${self.listExpenditures(c.expenditures)}
 
-<h3>Transfers</h3>
+  <h3>Transfers</h3>
 
-${self.listTransfers(c.transfers)}
+  ${self.listTransfers(c.transfers)}
+</div>