X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=f1c21e364d02fac36bc21e5067492682b6d1b2f8;hb=eadf3c3a4e49086b24dd61ead8ea95cdada8b88a;hp=5e9539dabf3f79565940f06f92a75e2e6d69cab4;hpb=d5ca54a2f614baff95c0b6c485352af4dd0fcbc1;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 5e9539d..f1c21e3 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,69 +1,76 @@ <%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]} | -
Total | -${c.total} | +Total | +${c.total} |
---|---|---|---|
Past year | -${c.year_total} | +Past year | +${c.year_total} |
Year to date | -${c.this_year_total} | +Year to date | +${c.this_year_total} |
Month to date | -${c.this_month_total} | +Month to date | +${c.this_month_total} |
Last month | -${c.last_month_total} | +Last month | +${c.last_month_total} |