X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=377179c621c68c43bc153e0a5d71964dea999b96;hb=82ad8466cea54eb777e71bb1a74798461461598b;hp=f1c21e364d02fac36bc21e5067492682b6d1b2f8;hpb=eadf3c3a4e49086b24dd61ead8ea95cdada8b88a;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index f1c21e3..377179c 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -8,7 +8,7 @@ % else:

To balance the books, the following transfers need to be made:

- +
@@ -16,11 +16,23 @@ % for transfer in c.settle: - - - + + + % endfor + % if c.net != 0: + + + + + % endif
From To
${transfer[0].username}${transfer[1].username}${transfer[2]}${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)}
% endif @@ -30,41 +42,28 @@ - - - - - - - - - - - - - - - - - - + + + + % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'): + + + % for scope in ('all', 'mine'): + + % endfor + + % endfor
Total${c.total}
Past year${c.year_total}
Year to date${c.this_year_total}
Month to date${c.this_month_total}
Last month${c.last_month_total}EveryoneMy Share
${period}${c.totals[period][scope]}
-

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