]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/mobile/status/index.mako
Right align total debit/credit on status pages
[bluechips.git] / bluechips / templates / mobile / status / index.mako
index 4fc9af9aa02ead1e95d9c8bf5b827a2371432602..55dc7929cdec29a3c807d7d8ca00348c2240191a 100644 (file)
@@ -18,9 +18,21 @@ ${self.tabs('status')}
         <tr>
           <td>${transfer[0].name}</td>
           <td>${transfer[1].name}</td>
-          <td>${transfer[2]}</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>