X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=12b4d2a3fbb745d873d8cb0c1f149ecf9cf0e6e5;hb=8b9b5748103994f0896d93d90537811abeb8213c;hp=060bd4e48471f8182da875020273e49f43700ffe;hpb=46b297349fdb6313d34a4128caf6e5b64b57bfa8;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 060bd4e..12b4d2a 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,69 +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

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

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

+

Expenditures

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

Transfers

+

Transfers

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