X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=377179c621c68c43bc153e0a5d71964dea999b96;hb=4d724b5efd7fd7c2c38a25e9d9210fe869aa0441;hp=777d09f33a608c0d5d07d2bf4ab5aa48b053a5c4;hpb=1d2e4f3e0f545547c37833445927569e5554fc2f;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 777d09f..377179c 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,31 +1,75 @@ <%inherit file="/base.mako"/> -
No need! The books are balanced!
-% else: -To balance the books, the following transfers need to be made:
+ % if len(c.settle) == 0: +No need! The books are balanced!
+ % else: +To balance the books, the following transfers need to be made:
-From | To | Amount | -
---|---|---|
${transfer[0].name} | +${transfer[1].name} | +${transfer[2]} | +
+ % if c.net > 0: + The group owes you: + % elif c.net < 0: + You owe the group: + % endif + | +${abs(c.net)} | +
${transfer[0].username} | -${transfer[1].username} | -$${h.round_currency(transfer[2])} | ++ | Everyone | +My Share |
---|---|---|---|---|---|
${period} | + % for scope in ('all', 'mine'): +${c.totals[period][scope]} | + % endfor +