]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Add total debit/credit to mobile interface
authorAlejandro R. Sedeño <asedeno@mit.edu>
Mon, 22 Mar 2010 04:16:06 +0000 (00:16 -0400)
committerEvan Broder <broder@mit.edu>
Fri, 26 Mar 2010 14:32:06 +0000 (10:32 -0400)
bluechips/templates/mobile/status/index.mako

index 060d0b80d2c69fe5e005354f527f35e84e30894a..8f7ca0d07a5ec0d029ac859cadd9af57fe510a11 100644 (file)
@@ -21,6 +21,18 @@ ${self.tabs('status')}
           <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>${abs(c.net)}</th>
+        </tr>
+      % endif
     </table>
   % endif
 </div>