X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=12b4d2a3fbb745d873d8cb0c1f149ecf9cf0e6e5;hb=8b9b5748103994f0896d93d90537811abeb8213c;hp=9291b693069180c164d41c7343ed53b275338c93;hpb=60170128d2c7c9942ebc1b77d86404485be5212e;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 9291b69..12b4d2a 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,56 +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)} | -