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"/> -

Settling Transfers

+
+

Settling Transfers

-% if len(c.settle) == 0: -

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:

- - +
+ - - % for transfer in c.settle: + + % for transfer in c.settle: + + + + + + % endfor + % if c.net != 0: + + + + + % endif +
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)}
+ % endif +
+ +
+

Totals

+ + - - - + + + + % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'): + + + % for scope in ('all', 'mine'): + + % endfor + % endfor -
${transfer[0].username}${transfer[1].username}$${h.round_currency(transfer[2])}EveryoneMy Share
${period}${c.totals[period][scope]}
-% endif + +
+ +
+

+ Your History + + ${h.link_to('See all history', h.url_for(controller='history', action='index'))} + +

+ +

Expenditures

+ + ${self.listExpenditures(c.expenditures)} -

Add a new transaction

+

Transfers

- + ${self.listTransfers(c.transfers)} +