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=b42b23a3437fa9fc7ee982489318c3447dca682e;hpb=6811597bfdbf2dfb83694c34655066a98e7915cd;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index b42b23a..12b4d2a 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,56 +1,63 @@ <%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 +
From To Amount
${transfer[0].username}${transfer[1].username}${transfer[2]}
+ % 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 + +
-

Totals

+
+

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

- - - - - - - - - - - - - - - - - - - - - -
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}
+

Expenditures

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

Add a new transaction

+

Transfers

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