X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=377179c621c68c43bc153e0a5d71964dea999b96;hb=82ad8466cea54eb777e71bb1a74798461461598b;hp=cd851eec6062197f8f8e682d70ef3bc90125f5f3;hpb=c0cc786ed11a60845d1cd2a97c702f7f1d723409;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index cd851ee..377179c 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -16,11 +16,23 @@ % for transfer in c.settle: - ${transfer[0].username} - ${transfer[1].username} - ${transfer[2]} + ${transfer[0].name} + ${transfer[1].name} + ${transfer[2]} % endfor + % if c.net != 0: + + + % if c.net > 0: + The group owes you: + % elif c.net < 0: + You owe the group: + % endif + + ${abs(c.net)} + + % endif % endif @@ -46,18 +58,12 @@
-

Add a new transaction

- - -
- -
-

Your History

- - ${h.link_to('See all history', h.url_for(controller='history', action='index'))} +

+ Your History + + ${h.link_to('See all history', h.url_for(controller='history', action='index'))} + +

Expenditures