]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/status/index.mako
Right align total debit/credit on status pages
[bluechips.git] / bluechips / templates / status / index.mako
index cd851eec6062197f8f8e682d70ef3bc90125f5f3..377179c621c68c43bc153e0a5d71964dea999b96 100644 (file)
       </tr>
       % for transfer in c.settle:
         <tr>
-          <td>${transfer[0].username}</td>
-          <td>${transfer[1].username}</td>
-          <td>${transfer[2]}</td>
+          <td>${transfer[0].name}</td>
+          <td>${transfer[1].name}</td>
+          <td class="amount">${transfer[2]}</td>
         </tr>
       % endfor
+      % if c.net != 0:
+        <tr>
+          <th colspan="2">
+            % if c.net > 0:
+              The group owes you:
+            % elif c.net < 0:
+              You owe the group:
+            % endif
+          </th>
+          <th class="amount">${abs(c.net)}</th>
+        </tr>
+      % endif
     </table>
   % endif
 </div>
 </div>
 
 <div class="block">
-  <h2>Add a new transaction</h2>
-
-  <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>
-</div>
-
-<div class="block">
-  <h2>Your History</h2>
-
-  ${h.link_to('See all history', h.url_for(controller='history', action='index'))}
+  <h2>
+    Your History
+    <span class="see-all">
+      ${h.link_to('See all history', h.url_for(controller='history', action='index'))}
+    </span>
+  </h2>
 
   <h3>Expenditures</h3>