X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bluechips%2Ftemplates%2Fstatus%2Findex.mako;h=cd851eec6062197f8f8e682d70ef3bc90125f5f3;hb=c0cc786ed11a60845d1cd2a97c702f7f1d723409;hp=5e9539dabf3f79565940f06f92a75e2e6d69cab4;hpb=3b864c81e804769f2be45b38c319895d1735aef9;p=bluechips.git diff --git a/bluechips/templates/status/index.mako b/bluechips/templates/status/index.mako index 5e9539d..cd851ee 100644 --- a/bluechips/templates/status/index.mako +++ b/bluechips/templates/status/index.mako @@ -1,69 +1,69 @@ <%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: - - - - - - % endfor -
From To Amount
${transfer[0].username}${transfer[1].username}${transfer[2]}
-% endif + + % for transfer in c.settle: + + ${transfer[0].username} + ${transfer[1].username} + ${transfer[2]} + + % endfor + + % endif +
-

Totals

+
+

Totals

- - - - - +
Total${c.total}
- - + + + - - - - - - - - - - - - -
Past year${c.year_total}EveryoneMy Share
Year to date${c.this_year_total}
Month to date${c.this_month_total}
Last month${c.last_month_total}
+ % for period in ('Total', 'Past year', 'Year to date', 'Month to date', 'Last month'): + + ${period} + % for scope in ('all', 'mine'): + ${c.totals[period][scope]} + % endfor + + % endfor + +
-

Add a new transaction

+
+

Add a new transaction

- +
-

Your History

+
+

Your History

-${h.link_to('See all history', h.url_for(controller='history', - action='index'))} + ${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)} +