X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=12b4d2a3fbb745d873d8cb0c1f149ecf9cf0e6e5;hb=8b9b5748103994f0896d93d90537811abeb8213c;hp=060bd4e48471f8182da875020273e49f43700ffe;hpb=46b297349fdb6313d34a4128caf6e5b64b57bfa8;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 060bd4e..12b4d2a 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,69 +1,63 @@ <%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].username} | +${transfer[1].username} | +${transfer[2]} | +
${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 +
Total | -$${h.round_currency(c.total)} | -
Past year | -$${h.round_currency(c.year_total)} | -
Year to date | -$${h.round_currency(c.this_year_total)} | -
Month to date | -$${h.round_currency(c.this_month_total)} | -
Last month | -$${h.round_currency(c.last_month_total)} | -